summaryrefslogtreecommitdiff
path: root/fs/ceph/dir.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2018-05-15 06:30:43 +0300
committerIlya Dryomov <idryomov@gmail.com>2018-06-04 21:45:56 +0300
commit597817ddbbf27af5986d1f3df20390b2738411c6 (patch)
tree088427f5ca112a2d713b4114c56e9629cb00691f /fs/ceph/dir.c
parent6dd4940ba5f96270ad428351cd88daf9ab871a97 (diff)
downloadlinux-597817ddbbf27af5986d1f3df20390b2738411c6.tar.xz
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 = {