summaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-05-09 16:22:55 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-05-20 08:28:34 -0700
commit676a659b60afb13166371580f3f6f434e9ba6f21 (patch)
tree975e58f1184d64945983a3f883a78bb28ab6e612 /fs/locks.c
parent9d5e8492eee017ffdaa9f0957e91d39d83163197 (diff)
downloadlinux-676a659b60afb13166371580f3f6f434e9ba6f21.tar.gz
linux-676a659b60afb13166371580f3f6f434e9ba6f21.tar.bz2
linux-676a659b60afb13166371580f3f6f434e9ba6f21.zip
xfs: retry allocations when locality-based search fails
If a realtime allocation fails because we can't find a sufficiently large free extent satisfying locality rules, relax the locality rules and try again. This reduces the occurrence of short writes to realtime files when the write size is large and the free space is fragmented. This was originally discovered by running generic/186 with the realtime reflink patchset and a 128k cow extent size hint, but the short write symptoms can manifest with a 128k extent size hint and no reflink, so apply the fix now. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions