tmpfs: ZERO_RANGE and COLLAPSE_RANGE not currently supported
[deliverable/linux.git] / mm / shmem.c
index f484c276e994923a5c05577b42d5a9dcc58ae7cc..91b912b37b8caaa51bcfffb2c0563372116c4d1e 100644 (file)
@@ -1724,6 +1724,9 @@ static long shmem_fallocate(struct file *file, int mode, loff_t offset,
        pgoff_t start, index, end;
        int error;
 
+       if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE))
+               return -EOPNOTSUPP;
+
        mutex_lock(&inode->i_mutex);
 
        if (mode & FALLOC_FL_PUNCH_HOLE) {
This page took 0.023752 seconds and 5 git commands to generate.