diff options
author | Yan, Zheng <zyan@redhat.com> | 2018-05-15 11:30:43 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-06-04 20:45:56 +0200 |
commit | 597817ddbbf27af5986d1f3df20390b2738411c6 (patch) | |
tree | 088427f5ca112a2d713b4114c56e9629cb00691f /fs/ceph | |
parent | 6dd4940ba5f96270ad428351cd88daf9ab871a97 (diff) | |
download | linux-next-597817ddbbf27af5986d1f3df20390b2738411c6.tar.gz |
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')
-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 = { .release = ceph_release, .unlocked_ioctl = ceph_ioctl, .fsync = ceph_fsync, + .lock = ceph_lock, + .flock = ceph_flock, }; const struct file_operations ceph_snapdir_fops = { |