diff options
author | Jeff Layton <jlayton@kernel.org> | 2022-10-05 06:32:23 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@kernel.org> | 2023-01-26 07:00:06 -0500 |
commit | 58a033c9a3e003e048a0431a296e58c6b363b02b (patch) | |
tree | 5d2a19fcb2939c3d52f51ea9ccaf8b238bcd42a1 /fs/nfsd/nfsfh.c | |
parent | 638e3e7d9493dadca16cac7ea66e7cf368d4065a (diff) |
nfsd: remove fetch_iversion export operation
Now that the i_version counter is reported in struct kstat, there is no
need for this export operation.
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/nfsd/nfsfh.c')
-rw-r--r-- | fs/nfsd/nfsfh.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index 3a01c8601712..76ea268dc420 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c @@ -778,11 +778,8 @@ u64 nfsd4_change_attribute(struct kstat *stat, struct inode *inode) { u64 chattr; - if (inode->i_sb->s_export_op->fetch_iversion) - return inode->i_sb->s_export_op->fetch_iversion(inode); if (stat->result_mask & STATX_CHANGE_COOKIE) { chattr = stat->change_cookie; - if (S_ISREG(inode->i_mode) && !(stat->attributes & STATX_ATTR_CHANGE_MONOTONIC)) { chattr += (u64)stat->ctime.tv_sec << 30; |