summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf.h
diff options
context:
space:
mode:
authorChandan Babu R <chandanrlinux@gmail.com>2021-04-06 06:59:18 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-04-07 14:37:06 -0700
commitae7bae68ea4943318e3014d4a6d4a2a289e16aab (patch)
tree4343402b914680350be4bc7846a7533b040bf090 /fs/xfs/xfs_buf.h
parentb6785e279d53ca5c4fa6be1146e85000870d73ef (diff)
downloadlinux-ae7bae68ea4943318e3014d4a6d4a2a289e16aab.tar.gz
linux-ae7bae68ea4943318e3014d4a6d4a2a289e16aab.tar.bz2
linux-ae7bae68ea4943318e3014d4a6d4a2a289e16aab.zip
xfs: scrub: Disable check for unoptimized data fork bmbt node
xchk_btree_check_minrecs() checks if the contents of the immediate child of a bmbt root block can fit within the root block. This check could fail on inodes with an attr fork since xfs_bmap_add_attrfork_btree() used to demote the current root node of the data fork as the child of a newly allocated root node if it found that the size of "struct xfs_btree_block" along with the space required for records exceeded that of space available in the data fork. xfs_bmap_add_attrfork_btree() should have used "struct xfs_bmdr_block" instead of "struct xfs_btree_block" for the above mentioned space requirement calculation. This commit disables the check for unoptimized (in terms of disk space usage) data fork bmbt trees since there could be filesystems in use that already have such a layout. Suggested-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_buf.h')
0 files changed, 0 insertions, 0 deletions