btrfs: use on-stack variable for block reserve in btrfs_evict_inode()
authorDavid Sterba <dsterba@suse.com>
Wed, 4 Jun 2025 09:29:23 +0000 (11:29 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:31 +0000 (23:53 +0200)
commitec41c345477fe81a17f0c0a95957ce5bc9bd07b8
tree5c2bd74cf8063be57cb0db48ff4c832d4ee5f43c
parent8811ace43947768d7d05a29b8ac055c70bb1a084
btrfs: use on-stack variable for block reserve in btrfs_evict_inode()

We can avoid potential memory allocation failure in btrfs_evict_inode()
as the block reserve lifetime is limited to the scope of the function.
This requires +48 bytes on stack.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c