diff options
| -rw-r--r-- | fs/open.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -263,11 +263,10 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) | |||
| 263 | return -EPERM; | 263 | return -EPERM; |
| 264 | 264 | ||
| 265 | /* | 265 | /* |
| 266 | * We can not allow to do any fallocate operation on an active | 266 | * We cannot allow any fallocate operation on an active swapfile |
| 267 | * swapfile | ||
| 268 | */ | 267 | */ |
| 269 | if (IS_SWAPFILE(inode)) | 268 | if (IS_SWAPFILE(inode)) |
| 270 | ret = -ETXTBSY; | 269 | return -ETXTBSY; |
| 271 | 270 | ||
| 272 | /* | 271 | /* |
| 273 | * Revalidate the write permissions, in case security policy has | 272 | * Revalidate the write permissions, in case security policy has |
