| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 001/119] vfs: fix return type of ioctl_file_dedupe_range |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 16 Jun 2016 18:17:59 -0700 |
| Cc: | linux-fsdevel@xxxxxxxxxxxxxxx, vishal.l.verma@xxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <146612627129.12839.3827886950949809165.stgit@xxxxxxxxxxxxxxxx> |
| References: | <146612627129.12839.3827886950949809165.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
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: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
fs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 116a333..db3d033 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -568,7 +568,7 @@ static int ioctl_fsthaw(struct file *filp)
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 *same = NULL;
|
| Previous by Date: | [PATCH v6 000/119] xfs: add reverse mapping, reflink, dedupe, and online scrub support, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 1/3] block: invalidate the page cache when issuing BLKZEROOUT., Darrick J. Wong |
| Previous by Thread: | [PATCH v6 000/119] xfs: add reverse mapping, reflink, dedupe, and online scrub support, Darrick J. Wong |
| Next by Thread: | Re: [PATCH 001/119] vfs: fix return type of ioctl_file_dedupe_range, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |