From: Trond Myklebust Date: Sat, 29 Sep 2007 21:14:03 +0000 (-0400) Subject: NFS: Fix the sign of the return value of nfs_save_change_attribute() X-Git-Tag: v2.6.24-rc1~1285^2~39 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8edb01828837302055a8f0afddb2256659480bc5;p=linux-2.6 NFS: Fix the sign of the return value of nfs_save_change_attribute() Also fix up the comments. Signed-off-by: Trond Myklebust --- diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 9449286c58..a765dd4569 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; } /**