Unionfs: stop using iget() and read_inode()
authorDavid Howells <dhowells@redhat.com>
Fri, 15 Feb 2008 22:18:48 +0000 (17:18 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 17:22:37 +0000 (12:22 -0500)
commitdb5d691505f86baec25d784fb3f187620f1e9fe9
tree9ac6a0cb9bcb0d8cab362dab687b2ccefa6d815a
parent36736f3d7c9f4b05936ef42f2ccdc0dfd30bd47a
Unionfs: stop using iget() and read_inode()

Replace unionfs_read_inode() with unionfs_iget(), and call that instead of
iget().  unionfs_iget() then uses iget_locked() directly and returns a
proper error code instead of an inode in the event of an error.

unionfs_fill_super() returns any error incurred when getting the root inode
instead of EINVAL.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/main.c
fs/unionfs/super.c
fs/unionfs/union.h