summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust2007-09-29 23:14:03 +0200
committerTrond Myklebust2007-10-09 23:19:18 +0200
commit8edb01828837302055a8f0afddb2256659480bc5 (patch)
tree2364320f7afa0d41011f2e7824b4ca5865d56924 /include/linux/nfs_fs.h
parentNFS: Fake up 'wcc' attributes to prevent cache invalidation after write (diff)
downloadkernel-qcow2-linux-8edb01828837302055a8f0afddb2256659480bc5.tar.gz
kernel-qcow2-linux-8edb01828837302055a8f0afddb2256659480bc5.tar.xz
kernel-qcow2-linux-8edb01828837302055a8f0afddb2256659480bc5.zip
NFS: Fix the sign of the return value of nfs_save_change_attribute()
Also fix up the comments. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 9449286c5867..a765dd456922 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -260,13 +260,13 @@ static inline int NFS_USE_READDIRPLUS(struct inode *inode)
/**
* 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
* 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;
}
/**