summaryrefslogtreecommitdiff
path: root/scripts/extract-fwblobs
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-02-15 14:04:15 +0300
committerDavid Sterba <dsterba@suse.com>2025-02-21 11:32:07 +0300
commitc6c9c4d56483d941f567eb921434c25fc6086dfa (patch)
tree4bab4bc4c6182f29e2075e1cd0e34aff382b6987 /scripts/extract-fwblobs
parent59f37036bb7ab3d554c24abc856aabca01126414 (diff)
downloadlinux-c6c9c4d56483d941f567eb921434c25fc6086dfa.tar.xz
btrfs: skip inodes without loaded extent maps when shrinking extent maps
If there are inodes that don't have any loaded extent maps, we end up grabbing a reference on them and later adding a delayed iput, which wakes up the cleaner and makes it do unnecessary work. This is common when for example the inodes were open only to run stat(2) or all their extent maps were already released through the folio release callback (btrfs_release_folio()) or released by a previous run of the shrinker, or directories which never have extent maps. Reported-by: Ivan Shapovalov <intelfx@intelfx.name> Tested-by: Ivan Shapovalov <intelfx@intelfx.name> Link: https://lore.kernel.org/linux-btrfs/0414d690ac5680d0d77dfc930606cdc36e42e12f.camel@intelfx.name/ CC: stable@vger.kernel.org # 6.13+ Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions