Message ID | 20180910232118.14424-3-mfasheh@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] vfs: allow dedupe of user owned read-only files | expand |
diff --git a/fs/read_write.c b/fs/read_write.c index be0e8723a049..c734bc2880a5 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -1991,7 +1991,7 @@ int vfs_dedupe_file_range_one(struct file *src_file, loff_t src_pos, if (ret < 0) goto out_drop_write; - ret = -EINVAL; + ret = -EPERM; if (!allow_file_dedupe(dst_file)) goto out_drop_write;