mqueue doesn't need make_bad_inode()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 28 May 2010 23:06:15 +0000 (19:06 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 4 Jun 2010 21:16:27 +0000 (17:16 -0400)
It never hashes them anyway and does final iput() immediately
afterwards.  With ->drop_inode() being generic_delete_inode()...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
ipc/mqueue.c

index 5108232f93d48ec008f0418737238c50e810ba15..c93fd3faac2d288e7d87db2642df7b167e15ddc0 100644 (file)
@@ -176,7 +176,6 @@ static struct inode *mqueue_get_inode(struct super_block *sb,
        }
        return inode;
 out_inode:
-       make_bad_inode(inode);
        iput(inode);
        return NULL;
 }