aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/dir.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2018-05-15 11:30:43 +0800
committerIlya Dryomov <idryomov@gmail.com>2018-06-04 20:45:56 +0200
commit597817ddbbf27af5986d1f3df20390b2738411c6 (patch)
tree088427f5ca112a2d713b4114c56e9629cb00691f /fs/ceph/dir.c
parentceph: show wsize only if non-default (diff)
downloadlinux-dev-597817ddbbf27af5986d1f3df20390b2738411c6.tar.xz
linux-dev-597817ddbbf27af5986d1f3df20390b2738411c6.zip
ceph: support file lock on directory
Link: http://tracker.ceph.com/issues/24028 Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r--fs/ceph/dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 1a78dd6f8bf2..036ac0f3a393 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -1486,6 +1486,8 @@ const struct file_operations ceph_dir_fops = {
.release = ceph_release,
.unlocked_ioctl = ceph_ioctl,
.fsync = ceph_fsync,
+ .lock = ceph_lock,
+ .flock = ceph_flock,
};
const struct file_operations ceph_snapdir_fops = {