ceph: use fl->fl_type to decide flock operation
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 4 Mar 2014 07:42:24 +0000 (15:42 +0800)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:08 +0000 (21:07 -0700)
commit0e8e95d6d74b2326e32274bb0401404cf3486038
tree84a3e03837ae18b98c38cb98b364dc22b10617a9
parent8c93cd610c6c5a4c0dddfc6fe906814331b3af87
ceph: use fl->fl_type to decide flock operation

VFS does not directly pass flock's operation code to filesystem's
flock callback. It translates the operation code to the form how
posix lock's parameters are presented.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/locks.c