Skip to content

Commit

Permalink
nfsd: convert to new i_version API
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jtlayton committed Jan 29, 2018
1 parent 1eb5d98 commit 1f15a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/nfsd/nfsfh.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/crc32.h>
#include <linux/sunrpc/svc.h>
#include <uapi/linux/nfsd/nfsfh.h>
#include <linux/iversion.h>

static inline __u32 ino_t_to_u32(ino_t ino)
{
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 1f15a55

Please sign in to comment.