diff options
author | 2021-01-22 16:48:14 -0800 | |
---|---|---|
committer | 2021-01-22 16:54:48 -0800 | |
commit | c442f3086d5a108b7ff086c8ade1923a8f389db5 (patch) | |
tree | 25464ffb363d5d2d092acb124d61feb885c6c8c7 /fs/xfs/libxfs/xfs_inode_fork.c | |
parent | xfs: Check for extent overflow when adding/removing xattrs (diff) | |
download | wireguard-linux-c442f3086d5a108b7ff086c8ade1923a8f389db5.tar.xz wireguard-linux-c442f3086d5a108b7ff086c8ade1923a8f389db5.zip |
xfs: Check for extent overflow when writing to unwritten extent
A write to a sub-interval of an existing unwritten extent causes
the original extent to be split into 3 extents
i.e. | Unwritten | Real | Unwritten |
Hence extent count can increase by 2.
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_fork.c')
0 files changed, 0 insertions, 0 deletions