OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f23c404
)
xfs: check that CoW fork extents are not shared
author
Darrick J. Wong
<djwong@kernel.org>
Mon, 7 Nov 2022 01:03:21 +0000
(17:03 -0800)
committer
Darrick J. Wong
<djwong@kernel.org>
Wed, 16 Nov 2022 23:25:04 +0000
(15:25 -0800)
Ensure that extents in an inode's CoW fork are not marked as shared in
the refcount btree.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/bmap.c
patch
|
blob
|
history
diff --git
a/fs/xfs/scrub/bmap.c
b/fs/xfs/scrub/bmap.c
index
fa8f22e
..
4bb6672
100644
(file)
--- a/
fs/xfs/scrub/bmap.c
+++ b/
fs/xfs/scrub/bmap.c
@@
-335,6
+335,8
@@
xchk_bmap_iextent_xref(
case XFS_COW_FORK:
xchk_xref_is_cow_staging(info->sc, agbno,
irec->br_blockcount);
+ xchk_xref_is_not_shared(info->sc, agbno,
+ irec->br_blockcount);
break;
}