diff options
author | Yan, Zheng <zyan@redhat.com> | 2014-09-18 04:11:12 -0400 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2014-10-14 15:56:48 -0400 |
commit | 0abb43dcacb52145aa265f82c914375d59dfe2da (patch) | |
tree | ae2259f4e76425168aac32fbad69b7bd791e23ec /fs/ceph/xattr.c | |
parent | dbd0c8bf79b2c73d11d47bdf2496e7ebf0948f02 (diff) |
ceph: fix llistxattr on symlink
only regular file and directory have vxattrs.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r-- | fs/ceph/xattr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index a87510f89ade..19da5026c38f 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c | |||
@@ -284,8 +284,7 @@ static size_t ceph_vxattrs_name_size(struct ceph_vxattr *vxattrs) | |||
284 | return ceph_dir_vxattrs_name_size; | 284 | return ceph_dir_vxattrs_name_size; |
285 | if (vxattrs == ceph_file_vxattrs) | 285 | if (vxattrs == ceph_file_vxattrs) |
286 | return ceph_file_vxattrs_name_size; | 286 | return ceph_file_vxattrs_name_size; |
287 | BUG(); | 287 | BUG_ON(vxattrs); |
288 | |||
289 | return 0; | 288 | return 0; |
290 | } | 289 | } |
291 | 290 | ||