Commit 2b6a5ec
Darrick J. Wong
xfs: fix xfs_bunmapi to allow unmapping of partial rt extents
When XFS_BMAPI_REMAP is passed to bunmapi, that means that we want to
remove part of a block mapping without touching the allocator. For
realtime files with rtextsize > 1, that also means that we should skip
all the code that changes a partial remove request into an unwritten
extent conversion. IOWs, bunmapi in this mode should handle removing
the mapping from the rt file and nothing else.
Note that XFS_BMAPI_REMAP callers are required to decrement the
reference count and/or free the space manually.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>1 parent c75f1a2 commit 2b6a5ec
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5459 | 5459 | | |
5460 | 5460 | | |
5461 | 5461 | | |
5462 | | - | |
| 5462 | + | |
5463 | 5463 | | |
5464 | 5464 | | |
5465 | 5465 | | |
| |||
5477 | 5477 | | |
5478 | 5478 | | |
5479 | 5479 | | |
5480 | | - | |
| 5480 | + | |
5481 | 5481 | | |
5482 | 5482 | | |
5483 | 5483 | | |
| |||
0 commit comments