diff options
author | Christoph Hellwig <hch@lst.de> | 2016-10-20 06:53:50 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-10-20 06:53:50 +0200 |
commit | 3ba020befef030aaabbd5eb82a09f6ddf02a9542 (patch) | |
tree | b9f3d3f21209f5a875b51e4427d9b46141c77d08 /fs/squashfs/squashfs.h | |
parent | xfs: don't bother looking at the refcount tree for reads (diff) | |
download | linux-3ba020befef030aaabbd5eb82a09f6ddf02a9542.tar.xz linux-3ba020befef030aaabbd5eb82a09f6ddf02a9542.zip |
xfs: optimize writes to reflink files
Instead of reserving space as the first thing in write_begin move it past
reading the extent in the data fork. That way we only have to read from
the data fork once and can reuse that information for trimming the extent
to the shared/unshared boundary. Additionally this allows to easily
limit the actual write size to said boundary, and avoid a roundtrip on the
ilock.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/squashfs/squashfs.h')
0 files changed, 0 insertions, 0 deletions