Message ID | 20240827100313.171877-1-sergii.boryshchenko@globallogic.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v2] ufs: Remove redundant inode number check from ufs_nfs_get_inode | expand |
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index bc625788589c..3511d35b7b21 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c @@ -98,12 +98,8 @@ static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) { - struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; struct inode *inode; - if (ino < UFS_ROOTINO || ino > (u64)uspi->s_ncg * uspi->s_ipg) - return ERR_PTR(-ESTALE); - inode = ufs_iget(sb, ino); if (IS_ERR(inode)) return ERR_CAST(inode);