]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix setting empty extended attribute
authorYan, Zheng <zyan@redhat.com>
Wed, 17 Dec 2014 13:26:47 +0000 (21:26 +0800)
committerIlya Dryomov <idryomov@redhat.com>
Wed, 17 Dec 2014 17:18:49 +0000 (20:18 +0300)
commit90b5d627092560cea86ddd3e39781cde72bf39ff
tree14b8ff5b4ab77f20fc9bf068923079b8b169ecb5
parentaba59107cffa2d3e2d0f5017604faa29e6588436
ceph: fix setting empty extended attribute

make sure 'value' is not null. otherwise __ceph_setxattr will remove
the extended attribute.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
fs/ceph/xattr.c