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)
commit0aeff37abada9f8c08d2b10481a43d3ae406c823
tree14b8ff5b4ab77f20fc9bf068923079b8b169ecb5
parent275dd19ea4e84c34f985ba097f9cddb539f54a50
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