Skip to content

Commit 0abb43d

Browse files
ukernelliewegas
authored andcommitted
ceph: fix llistxattr on symlink
only regular file and directory have vxattrs. Signed-off-by: Yan, Zheng <zyan@redhat.com>
1 parent dbd0c8b commit 0abb43d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/ceph/xattr.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ static size_t ceph_vxattrs_name_size(struct ceph_vxattr *vxattrs)
284284
return ceph_dir_vxattrs_name_size;
285285
if (vxattrs == ceph_file_vxattrs)
286286
return ceph_file_vxattrs_name_size;
287-
BUG();
288-
287+
BUG_ON(vxattrs);
289288
return 0;
290289
}
291290

0 commit comments

Comments
 (0)