aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-06-21 23:26:56 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-24 12:00:12 -0700
commitd8cb5e42378918e00eda58792f3ab86dd1e7d214 (patch)
treea6b91979eb68dab9cbfe3415068f8be9b358bfd5 /net/dccp
parentxfs: ensure post-EOF zeroing happens after zeroing part of a file (diff)
downloadlinux-dev-d8cb5e42378918e00eda58792f3ab86dd1e7d214.tar.xz
linux-dev-d8cb5e42378918e00eda58792f3ab86dd1e7d214.zip
xfs: fix fdblocks accounting w/ RMAPBT per-AG reservation
In __xfs_ag_resv_init we incorrectly calculate the amount by which to decrease fdblocks when reserving blocks for the rmapbt. Because rmapbt allocations do not decrease fdblocks, we must decrease fdblocks by the entire size of the requested reservation in order to achieve our goal of always having enough free blocks to satisfy an rmapbt expansion. This is in contrast to the refcountbt/finobt, which /do/ subtract from fdblocks whenever they allocate a block. For this allocation type we preserve the existing behavior where we decrease fdblocks only by the requested reservation minus the size of the existing tree. This fixes the problem where the available block counts reported by statfs change across a remount if there had been an rmapbt size change since mount time. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions