diff options
author | David Howells <dhowells@redhat.com> | 2008-02-07 03:15:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:27 -0500 |
commit | 473043dcee1874aab99f66b0362b344618eb3790 (patch) | |
tree | bc329501ec6cd0d31dfe11d4587347093dca4ccf /include/linux/ext3_fs.h | |
parent | 52fcf7032935b33158e3998ed399cac97447ab8d (diff) |
iget: stop EXT3 from using iget() and read_inode()
Stop the EXT3 filesystem from using iget() and read_inode(). Replace
ext3_read_inode() with ext3_iget(), and call that instead of iget().
ext3_iget() then uses iget_locked() directly and returns a proper error code
instead of an inode in the event of an error.
ext3_fill_super() returns any error incurred when getting the root inode
instead of EINVAL.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Acked-by: Jan Kara <jack@suse.cz>
Cc: <linux-ext4@vger.kernel.org>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/ext3_fs.h')
-rw-r--r-- | include/linux/ext3_fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index 241c01cb92b2..36c540396377 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h | |||
@@ -823,7 +823,7 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode, | |||
823 | sector_t iblock, unsigned long maxblocks, struct buffer_head *bh_result, | 823 | sector_t iblock, unsigned long maxblocks, struct buffer_head *bh_result, |
824 | int create, int extend_disksize); | 824 | int create, int extend_disksize); |
825 | 825 | ||
826 | extern void ext3_read_inode (struct inode *); | 826 | extern struct inode *ext3_iget(struct super_block *, unsigned long); |
827 | extern int ext3_write_inode (struct inode *, int); | 827 | extern int ext3_write_inode (struct inode *, int); |
828 | extern int ext3_setattr (struct dentry *, struct iattr *); | 828 | extern int ext3_setattr (struct dentry *, struct iattr *); |
829 | extern void ext3_delete_inode (struct inode *); | 829 | extern void ext3_delete_inode (struct inode *); |