summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/squashfs/dir.c2
-rw-r--r--fs/squashfs/file.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/fs/squashfs/dir.c b/fs/squashfs/dir.c
index a2ade63eccdf..cd3598bd034f 100644
--- a/fs/squashfs/dir.c
+++ b/fs/squashfs/dir.c
@@ -15,6 +15,7 @@
*/
#include <linux/fs.h>
+#include <linux/filelock.h>
#include <linux/vfs.h>
#include <linux/slab.h>
@@ -220,4 +221,5 @@ const struct file_operations squashfs_dir_ops = {
.read = generic_read_dir,
.iterate_shared = squashfs_readdir,
.llseek = generic_file_llseek,
+ .setlease = generic_setlease,
};
diff --git a/fs/squashfs/file.c b/fs/squashfs/file.c
index 1582e0637a7e..4be92206e755 100644
--- a/fs/squashfs/file.c
+++ b/fs/squashfs/file.c
@@ -28,6 +28,7 @@
*/
#include <linux/fs.h>
+#include <linux/filelock.h>
#include <linux/vfs.h>
#include <linux/kernel.h>
#include <linux/slab.h>
@@ -775,5 +776,6 @@ const struct file_operations squashfs_file_operations = {
.llseek = squashfs_llseek,
.read_iter = generic_file_read_iter,
.mmap_prepare = generic_file_readonly_mmap_prepare,
- .splice_read = filemap_splice_read
+ .splice_read = filemap_splice_read,
+ .setlease = generic_setlease,
};