diff options
author | Christoph Hellwig <hch@lst.de> | 2018-07-17 16:51:52 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-07-31 13:18:09 -0700 |
commit | e666aa37f4330cb93a5004a89b7a938312e74e36 (patch) | |
tree | 321bb7db899b5c9f76b6164f8aeaa0ae4f0dad55 /fs/xfs/xfs_iomap.h | |
parent | 745b3f76d1c889d738a1c4537a3c491bc1ecac4d (diff) | |
download | linux-stable-e666aa37f4330cb93a5004a89b7a938312e74e36.tar.gz linux-stable-e666aa37f4330cb93a5004a89b7a938312e74e36.tar.bz2 linux-stable-e666aa37f4330cb93a5004a89b7a938312e74e36.zip |
xfs: avoid COW fork extent lookups in writeback if the fork didn't change
Used the per-fork sequence counter to avoid lookups in the writeback code
unless the COW fork actually changed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.h')
-rw-r--r-- | fs/xfs/xfs_iomap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iomap.h b/fs/xfs/xfs_iomap.h index 83474c9cede9..c6170548831b 100644 --- a/fs/xfs/xfs_iomap.h +++ b/fs/xfs/xfs_iomap.h @@ -14,7 +14,7 @@ struct xfs_bmbt_irec; int xfs_iomap_write_direct(struct xfs_inode *, xfs_off_t, size_t, struct xfs_bmbt_irec *, int); int xfs_iomap_write_allocate(struct xfs_inode *, int, xfs_off_t, - struct xfs_bmbt_irec *); + struct xfs_bmbt_irec *, unsigned int *); int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t, bool); void xfs_bmbt_to_iomap(struct xfs_inode *, struct iomap *, |