Skip to content

Commit

Permalink
ceph: fix llistxattr on symlink
Browse files Browse the repository at this point in the history
only regular file and directory have vxattrs.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
  • Loading branch information
ukernel authored and liewegas committed Oct 14, 2014
1 parent dbd0c8b commit 0abb43d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ceph/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ static size_t ceph_vxattrs_name_size(struct ceph_vxattr *vxattrs)
return ceph_dir_vxattrs_name_size;
if (vxattrs == ceph_file_vxattrs)
return ceph_file_vxattrs_name_size;
BUG();

BUG_ON(vxattrs);
return 0;
}

Expand Down

0 comments on commit 0abb43d

Please sign in to comment.