Commit 0fba7be
btrfs: check folio mapping after unlock in put_file_data()
When we call btrfs_read_folio() we get an unlocked folio, so it is possible
for a different thread to concurrently modify folio->mapping. We must
check that this hasn't happened once we do have the lock.
CC: [email protected] # 6.12+
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Boris Burkov <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent 3e74859 commit 0fba7be
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5280 | 5280 | | |
5281 | 5281 | | |
5282 | 5282 | | |
| 5283 | + | |
5283 | 5284 | | |
5284 | 5285 | | |
5285 | 5286 | | |
| |||
5312 | 5313 | | |
5313 | 5314 | | |
5314 | 5315 | | |
| 5316 | + | |
| 5317 | + | |
| 5318 | + | |
| 5319 | + | |
| 5320 | + | |
5315 | 5321 | | |
5316 | 5322 | | |
5317 | 5323 | | |
| |||
0 commit comments