]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: make ceph file layout helpers take a pointer
authorAlex Elder <elder@dreamhost.com>
Thu, 8 Mar 2012 22:51:28 +0000 (16:51 -0600)
committerAlex Elder <elder@dreamhost.com>
Mon, 9 Apr 2012 15:15:16 +0000 (10:15 -0500)
commit1f581e0826162fe7d64d9c5ec885e4d3b9fab46b
tree97609e87b8c080caed449d8a4a2c1073b33af02b
parent4d697ff87f8628d9207b62d0338d3593cdf523c8
ceph: make ceph file layout helpers take a pointer

Make the helpers for accessing the fields of an on-disk ceph file
layout structure take the address of a layout structure rather than
the structure itself.  It's more useful (and to my eye a bit more
normal).

Use the result in ceph_file_layout_stripe_width() and
ceph_file_layout_period(), since it's now possible/natural.

Rename ceph_file_layout_su() to be ceph_file_layout_stripe_unit().

Signed-off-by: Alex Elder <elder@dreamhost.com>
fs/ceph/ioctl.c
fs/ceph/xattr.c
include/linux/ceph/ceph_fs.h