summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_rmap_btree.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-10-14 00:11:02 +0200
committerDarrick J. Wong <djwong@kernel.org>2021-10-19 20:45:13 +0200
commit94a14cfd3b6e639c3fb90994ea24e8513f1b0cce (patch)
tree3bf86d8cbab1285deea2102162b94a6fe782bdc9 /fs/xfs/libxfs/xfs_rmap_btree.c
parentxfs: fix perag reference leak on iteration race with growfs (diff)
downloadlinux-94a14cfd3b6e639c3fb90994ea24e8513f1b0cce.tar.xz
linux-94a14cfd3b6e639c3fb90994ea24e8513f1b0cce.zip
xfs: fix incorrect decoding in xchk_btree_cur_fsbno
During review of subsequent patches, Dave and I noticed that this function doesn't work quite right -- accessing cur->bc_ino depends on the ROOT_IN_INODE flag, not LONG_PTRS. Fix that and the parentheses isssue. While we're at it, remove the piece that accesses cur->bc_ag, because block 0 of an AG is never part of a btree. Note: This changes the btree scrubber tracepoints behavior -- if the cursor has no buffer for a certain level, it will always report NULLFSBLOCK. It is assumed that anyone tracing the online fsck code will also be tracing xchk_start/xchk_done or otherwise be aware of what exactly is being scrubbed. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions