aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ceph/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 302085100c28..19af25dff644 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -1177,6 +1177,9 @@ static long ceph_fallocate(struct file *file, int mode,
1177 loff_t endoff = 0; 1177 loff_t endoff = 0;
1178 loff_t size; 1178 loff_t size;
1179 1179
1180 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE))
1181 return -EOPNOTSUPP;
1182
1180 if (!S_ISREG(inode->i_mode)) 1183 if (!S_ISREG(inode->i_mode))
1181 return -EOPNOTSUPP; 1184 return -EOPNOTSUPP;
1182 1185