mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-06 08:06:56 +00:00
scoutfs: release item cleanup needs transaction
Release tries to re-instate extents if it sees an error during release. Those item manipulations need to be covered by the transaction. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
+3
-3
@@ -632,9 +632,6 @@ int scoutfs_data_truncate_items(struct super_block *sb, u64 ino, u64 iblock,
|
||||
holding = false;
|
||||
}
|
||||
|
||||
if (holding)
|
||||
scoutfs_release_trans(sb);
|
||||
|
||||
if (ret) {
|
||||
if (ins_ext) {
|
||||
err = insert_extent(sb, &ext, ino,
|
||||
@@ -648,6 +645,9 @@ int scoutfs_data_truncate_items(struct super_block *sb, u64 ino, u64 iblock,
|
||||
}
|
||||
}
|
||||
|
||||
if (holding)
|
||||
scoutfs_release_trans(sb);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user