X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fopen.c;h=d6fd3acde134d9669391cd064960790dea586042;hb=489f50be56185fa3492690caedc099d507bf7c98;hp=36662d0362379698fcb5764fbb142337732b3919;hpb=bb18b526a9d8d4a3fe56f234d5013b9f6036978d;p=cascardo%2Flinux.git diff --git a/fs/open.c b/fs/open.c index 36662d036237..d6fd3acde134 100644 --- a/fs/open.c +++ b/fs/open.c @@ -263,11 +263,10 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) return -EPERM; /* - * We can not allow to do any fallocate operation on an active - * swapfile + * We cannot allow any fallocate operation on an active swapfile */ if (IS_SWAPFILE(inode)) - ret = -ETXTBSY; + return -ETXTBSY; /* * Revalidate the write permissions, in case security policy has