]> git.baikalelectronics.ru Git - kernel.git/commitdiff
fs/affs: remove node generation check
authorFabian Frederick <fabf@skynet.be>
Sat, 15 Apr 2017 06:55:11 +0000 (08:55 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Apr 2017 03:54:05 +0000 (23:54 -0400)
node generation has to be stored on disk.
AFAICS we won't be able to manage it on AFFS.
This patch removes relevant check in affs_nfs_get_inode()

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/affs/namei.c

index b02da4d421cc1e008d0ba9dc46d03679df367b2d..d9a40b5ca4d397564300bb73c5ab941b035f7735 100644 (file)
@@ -478,11 +478,6 @@ static struct inode *affs_nfs_get_inode(struct super_block *sb, u64 ino,
        if (IS_ERR(inode))
                return ERR_CAST(inode);
 
-       if (generation && inode->i_generation != generation) {
-               iput(inode);
-               return ERR_PTR(-ESTALE);
-       }
-
        return inode;
 }