|
@@ -1724,6 +1724,9 @@ static long shmem_fallocate(struct file *file, int mode, loff_t offset,
|
|
pgoff_t start, index, end;
|
|
pgoff_t start, index, end;
|
|
int error;
|
|
int error;
|
|
|
|
|
|
|
|
+ if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE))
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
+
|
|
mutex_lock(&inode->i_mutex);
|
|
mutex_lock(&inode->i_mutex);
|
|
|
|
|
|
if (mode & FALLOC_FL_PUNCH_HOLE) {
|
|
if (mode & FALLOC_FL_PUNCH_HOLE) {
|