Commit 5b545a5
Frantisek Hrbata
Merge: fs: allow cross-vfsmount reflink/dedupe
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1373
Bugzilla: http://bugzilla.redhat.com/2088133
Tested: fstests generic/373
commit 9f5710b
Author: Josef Bacik <josef@toxicpanda.com>
Date: Fri Feb 18 09:38:14 2022 -0500
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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik's avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
Approved-by: Bill O'Donnell <bodonnel@redhat.com>
Approved-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>2 files changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 239 | | |
243 | 240 | | |
244 | 241 | | |
| |||
247 | 244 | | |
248 | 245 | | |
249 | 246 | | |
250 | | - | |
251 | 247 | | |
252 | 248 | | |
253 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | 365 | | |
371 | 366 | | |
372 | 367 | | |
| |||
458 | 453 | | |
459 | 454 | | |
460 | 455 | | |
461 | | - | |
| 456 | + | |
462 | 457 | | |
463 | 458 | | |
464 | 459 | | |
| |||
0 commit comments