diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 09:11:34 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-04 18:06:41 -0700 |
commit | ef4736678fc3ea426968bc82f907798ed5f51e85 (patch) | |
tree | 8a1525ef991d72cf833030e0ff081a91f27cbeed /fs/xfs/xfs_ondisk.h | |
parent | 60b4984fc3924bff292ec46b95a3e98b34b8e259 (diff) |
xfs: allocate delayed extents in CoW fork
Modify the writepage handler to find and convert pending delalloc
extents to real allocations. Furthermore, when we're doing non-cow
writes to a part of a file that already has a CoW reservation (the
cowextsz hint that we set up in a subsequent patch facilitates this),
promote the write to copy-on-write so that the entire extent can get
written out as a single extent on disk, thereby reducing post-CoW
fragmentation.
Christoph moved the CoW support code in _map_blocks to a separate helper
function, refactored other functions, and reduced the number of CoW fork
lookups, so I merged those changes here to reduce churn.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_ondisk.h')
0 files changed, 0 insertions, 0 deletions