summaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-10-03 18:11:38 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2016-10-06 01:26:04 +0200
commitaa8968f227a8c6c7468c9d498daf06f8dbc30af0 (patch)
tree071be2c909a770fa97f3ed97ecb856046e72fa49 /fs/pnode.c
parentxfs: implement CoW for directio writes (diff)
downloadlinux-aa8968f227a8c6c7468c9d498daf06f8dbc30af0.tar.xz
linux-aa8968f227a8c6c7468c9d498daf06f8dbc30af0.zip
xfs: cancel CoW reservations and clear inode reflink flag when freeing blocks
When we're freeing blocks (truncate, punch, etc.), clear all CoW reservations in the range being freed. If the file block count drops to zero, also clear the inode reflink flag. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/pnode.c')
0 files changed, 0 insertions, 0 deletions