提交 8edb0182 编写于 作者: T Trond Myklebust

NFS: Fix the sign of the return value of nfs_save_change_attribute()

Also fix up the comments.
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 70ca8852
...@@ -260,13 +260,13 @@ static inline int NFS_USE_READDIRPLUS(struct inode *inode) ...@@ -260,13 +260,13 @@ static inline int NFS_USE_READDIRPLUS(struct inode *inode)
/** /**
* nfs_save_change_attribute - Returns the inode attribute change cookie * nfs_save_change_attribute - Returns the inode attribute change cookie
* @inode - pointer to inode * @dir - pointer to parent directory inode
* The "change attribute" is updated every time we finish an operation * The "change attribute" is updated every time we finish an operation
* that will result in a metadata change on the server. * that will result in a metadata change on the server.
*/ */
static inline long nfs_save_change_attribute(struct inode *inode) static inline unsigned long nfs_save_change_attribute(struct inode *dir)
{ {
return NFS_I(inode)->cache_change_attribute; return NFS_I(dir)->cache_change_attribute;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册