aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-01-10 14:56:39 +0000
committerDavid Sterba <[email protected]>2023-02-06 23:08:17 +0100
commit6afaed53cc9adde69d8a76ff5b4d740d5efbc54c (patch)
treeeb1819c0f2d59f6228f5fa7977db7c2c400094c7 /tools/lib/api
parenta9ad4d87aa263de36895402b66115a3a4b88bf1c (diff)
btrfs: simplify update of last_dir_index_offset when logging a directory
When logging a directory, we always set the inode's last_dir_index_offset to the offset of the last dir index item we found. This is using an extra field in the log context structure, and it makes more sense to update it only after we insert dir index items, and we could directly update the inode's last_dir_index_offset field instead. So make this simpler by updating the inode's last_dir_index_offset only when we actually insert dir index keys in the log tree, and getting rid of the last_dir_item_offset field in the log context structure. Reported-by: David Arendt <[email protected]> Link: https://lore.kernel.org/linux-btrfs/[email protected]/ Reported-by: Maxim Mikityanskiy <[email protected]> Link: https://lore.kernel.org/linux-btrfs/[email protected]/ Reported-by: Hunter Wardlaw <[email protected]> Link: https://bugzilla.suse.com/show_bug.cgi?id=1207231 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216851 CC: [email protected] # 6.1+ Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/lib/api')
0 files changed, 0 insertions, 0 deletions