From: Jeff Layton Date: Mon, 11 Dec 2017 11:35:16 +0000 (-0500) Subject: nfsd: convert to new i_version API X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1f15a550f5f3e328b7693f664ae21f5a71a7a636;p=openwrt%2Fstaging%2Fblogic.git nfsd: convert to new i_version API Mostly just making sure we use the "get" wrappers so we know when it is being fetched for later use. Signed-off-by: Jeff Layton --- diff --git a/fs/nfsd/nfsfh.h b/fs/nfsd/nfsfh.h index 43f31cf49bae..b8444189223b 100644 --- a/fs/nfsd/nfsfh.h +++ b/fs/nfsd/nfsfh.h @@ -11,6 +11,7 @@ #include #include #include +#include static inline __u32 ino_t_to_u32(ino_t ino) { @@ -259,7 +260,7 @@ static inline u64 nfsd4_change_attribute(struct inode *inode) chattr = inode->i_ctime.tv_sec; chattr <<= 30; chattr += inode->i_ctime.tv_nsec; - chattr += inode->i_version; + chattr += inode_query_iversion(inode); return chattr; }