diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-07-25 16:54:49 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-08-22 00:58:27 +0200 |
commit | e87e953bb20629ca1f008f8146c38e313e5ed319 (patch) | |
tree | b7587daa1d3df93797179f9ba03ff46e42b4ea84 /scripts/bpf_doc.py | |
parent | 2b3979624c3e34dcdd77d910c6490939727d91b2 (diff) |
btrfs: fix inode leak on failure to add link to inode
If we fail to update the inode or delete the orphan item we leak the inode
since we update its refcount with the ihold() call to account for the
d_instantiate() call which never happens in case we fail those steps. Fix
this by setting 'drop_inode' to true in case we fail those steps.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions