]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: drop freeze protection when running GETFSMAP
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Mar 2021 16:51:50 +0000 (09:51 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 24 Mar 2021 17:36:05 +0000 (10:36 -0700)
commita084785daf4166a6d1479ad13159ed2bf1543407
tree5b0c117f316b0e8e442b6e285778fef6fbf3fa16
parenta123a92a85a64b2b0aa97706608092508241de7b
xfs: drop freeze protection when running GETFSMAP

A recent log refactoring patchset from Brian Foster relaxed fsfreeze
behavior with regards to the buffer cache -- now freeze only waits for
pending buffer IO to finish, and does not try to drain the buffer cache
LRU.  As a result, fsfreeze should no longer stall indefinitely while
fsmap runs.  Drop the sb_start_write calls around fsmap invocations.

While we're cleaning things, add a comment to the xfs_trans_alloc_empty
call explaining why we're running around with empty transactions.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_fsmap.c