You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
NTFS: Change ntfs_cluster_free() to require a write locked runlist on entry
since we otherwise get into a lock reversal deadlock if a read locked
runlist is passed in. In the process also change it to take an ntfs
inode instead of a vfs inode as parameter.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
This commit is contained in:
+1
-1
@@ -1953,7 +1953,7 @@ restore_undo_alloc:
|
||||
a = ctx->attr;
|
||||
a->data.non_resident.highest_vcn = cpu_to_sle64(old_last_vcn - 1);
|
||||
undo_alloc:
|
||||
if (ntfs_cluster_free(vol->mft_ino, old_last_vcn, -1, TRUE) < 0) {
|
||||
if (ntfs_cluster_free(mft_ni, old_last_vcn, -1) < 0) {
|
||||
ntfs_error(vol->sb, "Failed to free clusters from mft data "
|
||||
"attribute.%s", es);
|
||||
NVolSetErrors(vol);
|
||||
|
||||
Reference in New Issue
Block a user