ceph: refactor SETLAYOUT and SETDIRLAYOUT ioctl checks into common helper
authorSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:34:35 +0000 (15:34 -0700)
committerSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:34:35 +0000 (15:34 -0700)
commite49bf4c51cbe27439c00516d4297193d45dd4097
tree5be5727f0828f74719e7f0783fb1fba829658b47
parent3469ac1aa3a2f1e2586a412923c414779a0af854
ceph: refactor SETLAYOUT and SETDIRLAYOUT ioctl checks into common helper

Both of these methods perform similar checks; move that code to a helper
so that we can ensure the checks are consistent.

Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/ioctl.c