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>
Sat, 16 Aug 2014 02:30:08 +0000 (22:30 -0400)
commitc436c2e692f1c7b69c1bf25f22b08091a77d1024
treea2c95e644d81389f3c68c7b215a84afd8323a025
parentc65c18a05ce730ab17635b704aa93a44e0489a48
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