]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: reflink find shared should take a transaction
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 16 Jun 2017 18:00:10 +0000 (11:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Jun 2017 21:11:35 +0000 (14:11 -0700)
commit2565ade92986cde4fa258f516d1516531452d47b
tree04b79c0aebd610d50efd687961c1b004bb65cd73
parentbfa9aa96c6cbc8ea6115c8b11a08cd7d30eba9b7
xfs: reflink find shared should take a transaction

Adapt _reflink_find_shared to take an optional transaction pointer.  The
inode scrubber code will need to decide (within transaction context) if
a file has shared blocks.  To avoid buffer deadlocks, we must pass the
tp through to this function's utility calls.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h