aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 59983b28a93c..e204d8aabe7d 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -4104,6 +4104,13 @@ bad_inode:
4104 return ERR_PTR(ret); 4104 return ERR_PTR(ret);
4105} 4105}
4106 4106
4107struct inode *ext4_iget_normal(struct super_block *sb, unsigned long ino)
4108{
4109 if (ino < EXT4_FIRST_INO(sb) && ino != EXT4_ROOT_INO)
4110 return ERR_PTR(-EIO);
4111 return ext4_iget(sb, ino);
4112}
4113
4107static int ext4_inode_blocks_set(handle_t *handle, 4114static int ext4_inode_blocks_set(handle_t *handle,
4108 struct ext4_inode *raw_inode, 4115 struct ext4_inode *raw_inode,
4109 struct ext4_inode_info *ei) 4116 struct ext4_inode_info *ei)