summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/jfs/file.c2
-rw-r--r--fs/jfs/namei.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/jfs/file.c b/fs/jfs/file.c
index 87ad042221e7..246568cb9a6e 100644
--- a/fs/jfs/file.c
+++ b/fs/jfs/file.c
@@ -6,6 +6,7 @@
#include <linux/mm.h>
#include <linux/fs.h>
+#include <linux/filelock.h>
#include <linux/posix_acl.h>
#include <linux/quotaops.h>
#include "jfs_incore.h"
@@ -153,4 +154,5 @@ const struct file_operations jfs_file_operations = {
.release = jfs_release,
.unlocked_ioctl = jfs_ioctl,
.compat_ioctl = compat_ptr_ioctl,
+ .setlease = generic_setlease,
};
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 65a218eba8fa..f7e2ae7a4c37 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -5,6 +5,7 @@
*/
#include <linux/fs.h>
+#include <linux/filelock.h>
#include <linux/namei.h>
#include <linux/ctype.h>
#include <linux/quotaops.h>
@@ -1545,6 +1546,7 @@ const struct file_operations jfs_dir_operations = {
.unlocked_ioctl = jfs_ioctl,
.compat_ioctl = compat_ptr_ioctl,
.llseek = generic_file_llseek,
+ .setlease = generic_setlease,
};
static int jfs_ci_hash(const struct dentry *dir, struct qstr *this)