Skip to content

Commit 17f95a7

Browse files
dhowellsLinus Torvalds
authored andcommitted
iget: stop FAT from using iget() and read_inode()
Stop the FAT filesystem from using iget() and read_inode(). Replace the call to iget() with a call to ilookup(). Signed-off-by: David Howells <[email protected]> Cc: OGAWA Hirofumi <[email protected]> Acked-by: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1d1fe1e commit 17f95a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/fat/inode.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,6 @@ static const struct super_operations fat_sops = {
634634
.clear_inode = fat_clear_inode,
635635
.remount_fs = fat_remount,
636636

637-
.read_inode = make_bad_inode,
638-
639637
.show_options = fat_show_options,
640638
};
641639

@@ -663,8 +661,8 @@ static struct dentry *fat_fh_to_dentry(struct super_block *sb,
663661
if (fh_len < 5 || fh_type != 3)
664662
return NULL;
665663

666-
inode = iget(sb, fh[0]);
667-
if (!inode || is_bad_inode(inode) || inode->i_generation != fh[1]) {
664+
inode = ilookup(sb, fh[0]);
665+
if (!inode || inode->i_generation != fh[1]) {
668666
if (inode)
669667
iput(inode);
670668
inode = NULL;

0 commit comments

Comments
 (0)