aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index f870aefc59dd..a3798a3aa0d2 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -7115,6 +7115,10 @@ static long btrfs_fallocate(struct inode *inode, int mode,
7115 alloc_start = offset & ~mask; 7115 alloc_start = offset & ~mask;
7116 alloc_end = (offset + len + mask) & ~mask; 7116 alloc_end = (offset + len + mask) & ~mask;
7117 7117
7118 /* We only support the FALLOC_FL_KEEP_SIZE mode */
7119 if (mode && (mode != FALLOC_FL_KEEP_SIZE))
7120 return -EOPNOTSUPP;
7121
7118 /* 7122 /*
7119 * wait for ordered IO before we have any locks. We'll loop again 7123 * wait for ordered IO before we have any locks. We'll loop again
7120 * below with the locks held. 7124 * below with the locks held.