diff options
author | Josef Bacik <[email protected]> | 2022-02-18 09:38:14 -0500 |
---|---|---|
committer | David Sterba <[email protected]> | 2022-03-14 13:13:53 +0100 |
commit | 9f5710bbfd3031dd7ce244fa26fba896d35f5342 (patch) | |
tree | 2836476e968e4d92f8f45aa59ceafa57d2049721 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
parent | ae460f058e9ff31946cc393bf897fc44483f0876 (diff) |
fs: allow cross-vfsmount reflink/dedupe
Currently we disallow reflink and dedupe if the two files aren't on the
same vfsmount. However we really only need to disallow it if they're
not on the same super block. It is very common for btrfs to have a main
subvolume that is mounted and then different subvolumes mounted at
different locations. It's allowed to reflink between these volumes, but
the vfsmount check disallows this. Instead fix dedupe to check for the
same superblock, and simply remove the vfsmount check for reflink as it
already does the superblock check.
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions