]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: revert "xfs: factor rmap btree size into the indlen calculations"
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 18 Sep 2017 16:41:17 +0000 (09:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 26 Sep 2017 17:55:20 +0000 (10:55 -0700)
commit30681fd33b6e919b44793b5b8358cc8c7b0b97f4
treea87997840935d874ad356b36b4d63d8a6fe2faae
parent70531fcd3bb2515104e31c3853ed9f48bf6ae077
xfs: revert "xfs: factor rmap btree size into the indlen calculations"

In commit 50eeef4ea74a we added a worst case estimate for rmapbt blocks
needed to satisfy the block mapping request.  Since then, we added the
ability to reserve enough space in each AG such that we should never run
out of blocks to grow the rmapbt, which makes this calculation
unnecessary.  Revert the commit because it makes the extra delalloc
indlen accounting unnecessary and incorrect.

Reported-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c