diff options
author | Yan, Zheng <zyan@redhat.com> | 2018-05-14 23:30:43 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-06-04 14:45:56 -0400 |
commit | 597817ddbbf27af5986d1f3df20390b2738411c6 (patch) | |
tree | 088427f5ca112a2d713b4114c56e9629cb00691f | |
parent | 6dd4940ba5f96270ad428351cd88daf9ab871a97 (diff) |
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>
-rw-r--r-- | fs/ceph/dir.c | 2 |
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 = { | |||
1486 | .release = ceph_release, | 1486 | .release = ceph_release, |
1487 | .unlocked_ioctl = ceph_ioctl, | 1487 | .unlocked_ioctl = ceph_ioctl, |
1488 | .fsync = ceph_fsync, | 1488 | .fsync = ceph_fsync, |
1489 | .lock = ceph_lock, | ||
1490 | .flock = ceph_flock, | ||
1489 | }; | 1491 | }; |
1490 | 1492 | ||
1491 | const struct file_operations ceph_snapdir_fops = { | 1493 | const struct file_operations ceph_snapdir_fops = { |