diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-11-30 23:32:38 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-12-04 19:50:49 +0300 |
commit | 6744557b53a2b710ebce3736a5c27a0119685fcc (patch) | |
tree | 0ac2f8aa8dbdb860b34faa7274e723004fff2b00 /net/ipv4/tcp_metrics.c | |
parent | 7d048df4e9b05ba89b74d062df59498aa81f3785 (diff) | |
download | linux-6744557b53a2b710ebce3736a5c27a0119685fcc.tar.xz |
vfs: allow some remap flags to be passed to vfs_clone_file_range
In overlayfs, ovl_remap_file_range calls vfs_clone_file_range on the
lower filesystem's inode, passing through whatever remap flags it got
from its caller. Since vfs_copy_file_range first tries a filesystem's
remap function with REMAP_FILE_CAN_SHORTEN, this can get passed through
to the second vfs_copy_file_range call, and this isn't an issue.
Change the WARN_ON to look only for the DEDUP flag.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net/ipv4/tcp_metrics.c')
0 files changed, 0 insertions, 0 deletions