btrfs: return void from btrfs_add_inode_defrag()
authorDavid Sterba <dsterba@suse.com>
Tue, 27 Aug 2024 02:10:11 +0000 (04:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 10 Sep 2024 14:51:19 +0000 (16:51 +0200)
commit91c9f2855ead841b27eefb8968079290725d4f2e
tree288f8fd3fa4946a7bf741da042af9e94132b7e55
parent276940915f232f8569124811fd8a9524f27f5748
btrfs: return void from btrfs_add_inode_defrag()

The potential memory allocation failure is not a fatal error, skipping
autodefrag is fine and the caller inode_should_defrag() does not care
about the errors.  Further writes can attempt to add the inode back to
the defragmentation list again.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/defrag.c
fs/btrfs/defrag.h