Skip to contentSkip to conversation

ceph: Document that dentry is unused in xattr ->get

PATCH In review Andreas Gruenbacher 2 participants 2 messages May 25, 2016 Ceph client

lore
Share & tools
lore
#0 lore raw

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.

---
 fs/ceph/xattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/xattr.c +1 -1
index 0d66722..223f567 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Andreas Gruenbacher

For consistency with the other filesystems, rename the dentry argument to "unused" here.

---
 fs/ceph/xattr.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/xattr.c +0 -0
index 0d66722..223f567 100644
@@ -1042,7 +1042,7 @@ out:
  }


 static int ceph_get_xattr_handler(const struct xattr_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_t size) {
  if (!ceph_is_valid_xattr(name))

...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