提交 5297e0f0 编写于 作者: D Darrick J. Wong 提交者: Linus Torvalds

vfs: fix return type of ioctl_file_dedupe_range

All the VFS functions in the dedupe ioctl path return int status, so
the ioctl handler ought to as well.

Found by Coverity, CID 1350952.
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 46626600
...@@ -568,7 +568,7 @@ static int ioctl_fsthaw(struct file *filp) ...@@ -568,7 +568,7 @@ static int ioctl_fsthaw(struct file *filp)
return thaw_super(sb); return thaw_super(sb);
} }
static long ioctl_file_dedupe_range(struct file *file, void __user *arg) static int ioctl_file_dedupe_range(struct file *file, void __user *arg)
{ {
struct file_dedupe_range __user *argp = arg; struct file_dedupe_range __user *argp = arg;
struct file_dedupe_range *same = NULL; struct file_dedupe_range *same = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册