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)
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

diff --cc fs/ceph/xattr.c
Simple merge