]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: remove noinline attribute from btrfs_cow_block()
authorFilipe Manana <fdmanana@suse.com>
Wed, 27 Sep 2023 11:09:24 +0000 (12:09 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:14 +0000 (16:44 +0200)
It's pointless to have the noiline attribute for btrfs_cow_block(), as the
function is exported and widely used. So remove it.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c

index 2d29a488d67df62382bdb125b0d7705d3d3fa26a..49232b52639017d8bc9ae45a124e984e9365c481 100644 (file)
@@ -678,7 +678,7 @@ static inline int should_cow_block(struct btrfs_trans_handle *trans,
  * This version of it has extra checks so that a block isn't COWed more than
  * once per transaction, as long as it hasn't been written yet
  */
-noinline int btrfs_cow_block(struct btrfs_trans_handle *trans,
+int btrfs_cow_block(struct btrfs_trans_handle *trans,
                    struct btrfs_root *root, struct extent_buffer *buf,
                    struct extent_buffer *parent, int parent_slot,
                    struct extent_buffer **cow_ret,