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)
commite424aa5f547d2510f8ea1199e7b4ed8ef2d9439d
tree5b0c117f316b0e8e442b6e285778fef6fbf3fa16
parent0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b
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