summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-02-15 17:02:50 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2019-02-17 20:55:54 +0100
commit7588cbeec6df925ef6142a7e48762896c06007a8 (patch)
treede5220928e6b1aad600a3218840ffa854f2c27cb /fs/reiserfs
parentxfs: remove the truncate short cut in xfs_map_blocks (diff)
downloadlinux-7588cbeec6df925ef6142a7e48762896c06007a8.tar.xz
linux-7588cbeec6df925ef6142a7e48762896c06007a8.zip
xfs: retry COW fork delalloc conversion when no extent was found
While we can only truncate a block under the page lock for the current page, there is no high-level synchronization for moving extents from the COW to the data fork. This means that for example we can have another thread doing a direct I/O completion that moves extents from the COW to the data fork race with writeback. While this race is very hard to hit the always_cow seems to reproduce it reasonably well, and it also exists without that. Because of that there is a chance that a delalloc conversion for the COW fork might not find any extents to convert. In that case we should retry the whole block lookup and now find the blocks in the data fork. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions