]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9929bc8331678134d8cbb24b042092db333b6872
tree5be5727f0828f74719e7f0783fb1fba829658b47
parente1edd2d9cd2e173cbf2b5d48f92d7a5a0d86060f
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