]> 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)
commit4cff5966a3e925370f64663b0fcae685ea2cf084
tree14b8ff5b4ab77f20fc9bf068923079b8b169ecb5
parent790eeaf41dc0d0bd5b4e441ceb87224605a5970e
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