]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: drop unused parameter ctx from batch_delete_dir_index_items()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:30:59 +0000 (16:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:15 +0000 (14:34 +0100)
The ctx parameter is not used, we can drop it.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c

index 9637c7cdc0cf92cd57b0ad634df7739bb97364c3..c8d6587688b3dde966c0b0f354576ee60a8dac93 100644 (file)
@@ -6204,7 +6204,6 @@ static int log_delayed_deletions_full(struct btrfs_trans_handle *trans,
 static int batch_delete_dir_index_items(struct btrfs_trans_handle *trans,
                                        struct btrfs_inode *inode,
                                        struct btrfs_path *path,
-                                       struct btrfs_log_ctx *ctx,
                                        const struct list_head *delayed_del_list,
                                        const struct btrfs_delayed_item *first,
                                        const struct btrfs_delayed_item **last_ret)
@@ -6265,7 +6264,7 @@ static int log_delayed_deletions_incremental(struct btrfs_trans_handle *trans,
                if (ret < 0) {
                        return ret;
                } else if (ret == 0) {
-                       ret = batch_delete_dir_index_items(trans, inode, path, ctx,
+                       ret = batch_delete_dir_index_items(trans, inode, path,
                                                           delayed_del_list, curr,
                                                           &last);
                        if (ret)