Commit 7bd6f89
xfs: don't free rt blocks when we're doing a REMAP bunmapi call
[ Upstream commit 8df0fa3 ]
When callers pass XFS_BMAPI_REMAP into xfs_bunmapi, they want the extent
to be unmapped from the given file fork without the extent being freed.
We do this for non-rt files, but we forgot to do this for realtime
files. So far this isn't a big deal since nobody makes a bunmapi call
to a rt file with the REMAP flag set, but don't leave a logic bomb.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 66b70f6 commit 7bd6f89
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5046 | 5046 | | |
5047 | 5047 | | |
5048 | 5048 | | |
5049 | | - | |
5050 | 5049 | | |
5051 | 5050 | | |
5052 | 5051 | | |
5053 | | - | |
5054 | | - | |
5055 | | - | |
5056 | 5052 | | |
5057 | 5053 | | |
5058 | 5054 | | |
5059 | 5055 | | |
5060 | | - | |
5061 | | - | |
5062 | | - | |
| 5056 | + | |
| 5057 | + | |
| 5058 | + | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
| 5062 | + | |
| 5063 | + | |
| 5064 | + | |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
5063 | 5068 | | |
5064 | 5069 | | |
5065 | 5070 | | |
| |||
0 commit comments