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>
Fri, 12 Aug 2011 02:37:41 +0000 (22:37 -0400)
commit03e91db8c02f192e2e8a1530735f02226ecbb8c7
tree3b3d08d13507141a8524c6893171058d0c9c3347
parent19f6e21236c2cdf7e70d76d983bc2394ce8c997e
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