diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2015-12-19 03:55:52 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-01 02:36:02 -0500 |
commit | d79bdd52d8be70d0e7024ac6715eee860a19834a (patch) | |
tree | 42925fd7b132336675c8857e916856ebe0a434b9 /fs/read_write.c | |
parent | 8c36e9dfe7527665e286c3ac970c3fb327e6ab24 (diff) |
vfs: wire up compat ioctl for CLONE/CLONE_RANGE
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index c75d02cb13ec..60ee26941231 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
@@ -1489,7 +1489,7 @@ int vfs_clone_file_range(struct file *file_in, loff_t pos_in, | |||
1489 | if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode)) | 1489 | if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode)) |
1490 | return -EISDIR; | 1490 | return -EISDIR; |
1491 | if (!S_ISREG(inode_in->i_mode) || !S_ISREG(inode_out->i_mode)) | 1491 | if (!S_ISREG(inode_in->i_mode) || !S_ISREG(inode_out->i_mode)) |
1492 | return -EOPNOTSUPP; | 1492 | return -EINVAL; |
1493 | 1493 | ||
1494 | if (!(file_in->f_mode & FMODE_READ) || | 1494 | if (!(file_in->f_mode & FMODE_READ) || |
1495 | !(file_out->f_mode & FMODE_WRITE) || | 1495 | !(file_out->f_mode & FMODE_WRITE) || |