aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2019-04-18 08:15:45 -0400
committerIlya Dryomov <idryomov@gmail.com>2019-07-08 08:01:40 -0400
commite1b814391440b65df0836cef8c7b641fb83f4bf6 (patch)
tree549c9e40339e21c773530b8d5b3ec2a10639c15c /fs/ceph
parent13c41737b912a6f6354369c9b20a02c3868ab304 (diff)
ceph: clean up ceph.dir.pin vxattr name sizeof()
.name_size should use the same string as .name. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index 0cc42c8879e9..2cbb9c239183 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -327,7 +327,7 @@ static struct ceph_vxattr ceph_dir_vxattrs[] = {
327 XATTR_RSTAT_FIELD(dir, rctime), 327 XATTR_RSTAT_FIELD(dir, rctime),
328 { 328 {
329 .name = "ceph.dir.pin", 329 .name = "ceph.dir.pin",
330 .name_size = sizeof("ceph.dir_pin"), 330 .name_size = sizeof("ceph.dir.pin"),
331 .getxattr_cb = ceph_vxattrcb_dir_pin, 331 .getxattr_cb = ceph_vxattrcb_dir_pin,
332 .exists_cb = ceph_vxattrcb_dir_pin_exists, 332 .exists_cb = ceph_vxattrcb_dir_pin_exists,
333 .flags = VXATTR_FLAG_HIDDEN, 333 .flags = VXATTR_FLAG_HIDDEN,