From: Fabian Frederick Date: Sat, 15 Apr 2017 06:55:11 +0000 (+0200) Subject: fs/affs: remove node generation check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9d6cfb70f71e3d7fb4fe90db40f965e7096bdab;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fs/affs: remove node generation check 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 Signed-off-by: Al Viro --- diff --git a/fs/affs/namei.c b/fs/affs/namei.c index b02da4d421cc..d9a40b5ca4d3 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c @@ -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; }