ceph: Document that dentry is unused in xattr ->get
PATCH 1/1 ceph: Document that dentry is unused in xattr ->get
For consistency with the other filesystems, rename the dentry argument to "unused" here.
Signed-off-by Andreas Gruenbacher <[email protected]>
--- fs/ceph/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/xattr.c +1 -1
@@ -1042,7 +1042,7 @@ out: }static int ceph_get_xattr_handler (const struct xattr_handler *handler, -struct dentry *dentry,struct inode *inode, +struct dentry *unused,struct inode *inode,const char *name,void *value,size_t size) {if (!ceph_is_valid_xattr (name))
Signature · 1 line
2.5.5
Quoted 18 lines · Andreas Gruenbacher
For consistency with the other filesystems, rename the dentry argument to "unused" here.
Signed-off-by Andreas Gruenbacher <[email protected]>---
fs/ceph/xattr.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)fs/ceph/xattr.c +0
-0@@ -1042,7 +1042,7 @@ out: }
static int ceph_get_xattr_handler(const structxattr_handler*handler,fs/ceph/xattr.c +1
-1- struct dentry *dentry, struct inode *inode, + struct dentry *unused, struct inode *inode,
Quoted 3 lines
const char *name, void *value,
size_tsize) {
if (!ceph_is_valid_xattr(name))
Acked-by Jeff Layton <[email protected]>
...that said, it'd be even better to just __always_unused attribute on the variable. That gives the same hint to the compiler as well... --
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html