ceph: clean up ceph.dir.pin vxattr name sizeof()
authorDavid Disseldorp <ddiss@suse.de>
Thu, 18 Apr 2019 12:15:45 +0000 (14:15 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:40 +0000 (14:01 +0200)
.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>
fs/ceph/xattr.c

index 0cc42c8..2cbb9c2 100644 (file)
@@ -327,7 +327,7 @@ static struct ceph_vxattr ceph_dir_vxattrs[] = {
        XATTR_RSTAT_FIELD(dir, rctime),
        {
                .name = "ceph.dir.pin",
-               .name_size = sizeof("ceph.dir_pin"),
+               .name_size = sizeof("ceph.dir.pin"),
                .getxattr_cb = ceph_vxattrcb_dir_pin,
                .exists_cb = ceph_vxattrcb_dir_pin_exists,
                .flags = VXATTR_FLAG_HIDDEN,