diff options
author | Darrick J. Wong | 2018-03-07 02:08:31 +0100 |
---|---|---|
committer | Darrick J. Wong | 2018-03-12 04:27:56 +0100 |
commit | 6231848c3aa5c7378fb0dd7a7fff53e9db7edd09 (patch) | |
tree | 748319f4f4cc850389eb207aa9021c53e2498bdb /fs/xfs/xfs_fsops.c | |
parent | xfs: convert a few more directory asserts to corruption (diff) | |
download | kernel-qcow2-linux-6231848c3aa5c7378fb0dd7a7fff53e9db7edd09.tar.gz kernel-qcow2-linux-6231848c3aa5c7378fb0dd7a7fff53e9db7edd09.tar.xz kernel-qcow2-linux-6231848c3aa5c7378fb0dd7a7fff53e9db7edd09.zip |
xfs: check for cow blocks before trying to clear them
There's no point in allocating a transaction and locking the inode in
preparation to clear cow blocks if there actually are any cow fork
extents. Therefore, move the xfs_reflink_cancel_cow_range hunk to
xfs_inactive and check the cow ifp first. This makes inode reclamation
run faster.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
0 files changed, 0 insertions, 0 deletions