]> git.baikalelectronics.ru Git - kernel.git/commitdiff
btrfs: remove unused parameter bio_flags from btrfs_wq_submit_bio
authorDavid Sterba <dsterba@suse.com>
Tue, 27 Jul 2021 12:19:02 +0000 (14:19 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:31 +0000 (17:17 +0200)
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/inode.c

index 7787ac83ec2fd7cb1f0ae11dccded3cee0cfec37..26446d6215c71d93d7bc793e2044f22fb50035de 100644 (file)
@@ -849,8 +849,7 @@ static void run_one_async_free(struct btrfs_work *work)
 }
 
 blk_status_t btrfs_wq_submit_bio(struct inode *inode, struct bio *bio,
-                                int mirror_num, unsigned long bio_flags,
-                                u64 dio_file_offset,
+                                int mirror_num, u64 dio_file_offset,
                                 extent_submit_bio_start_t *submit_bio_start)
 {
        struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info;
@@ -943,7 +942,7 @@ void btrfs_submit_metadata_bio(struct inode *inode, struct bio *bio, int mirror_
                 * checksumming can happen in parallel across all CPUs
                 */
                ret = btrfs_wq_submit_bio(inode, bio, mirror_num, 0,
-                                         0, btree_submit_bio_start);
+                                         btree_submit_bio_start);
        }
 
        if (ret) {
index 9340e3266e0ac4fc9a2e621f614d9531b24450ea..4ee8c42c9f783579a349be47aba2217e5fdfb448 100644 (file)
@@ -124,8 +124,7 @@ int btrfs_read_extent_buffer(struct extent_buffer *buf, u64 parent_transid,
 blk_status_t btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio,
                        enum btrfs_wq_endio_type metadata);
 blk_status_t btrfs_wq_submit_bio(struct inode *inode, struct bio *bio,
-                                int mirror_num, unsigned long bio_flags,
-                                u64 dio_file_offset,
+                                int mirror_num, u64 dio_file_offset,
                                 extent_submit_bio_start_t *submit_bio_start);
 blk_status_t btrfs_submit_bio_done(void *private_data, struct bio *bio,
                          int mirror_num);
index 9cd12760e9dd03600538c83cb2f7b52c69bf332a..6a4ca1a0ddf33ef2d03b20d84fc95e6e6dc90dd2 100644 (file)
@@ -2626,7 +2626,7 @@ void btrfs_submit_data_bio(struct inode *inode, struct bio *bio,
                if (btrfs_is_data_reloc_root(root))
                        goto mapit;
                /* we're doing a write, do the async checksumming */
-               ret = btrfs_wq_submit_bio(inode, bio, mirror_num, bio_flags,
+               ret = btrfs_wq_submit_bio(inode, bio, mirror_num,
                                          0, btrfs_submit_bio_start);
                goto out;
        } else if (!skip_sum) {
@@ -7961,7 +7961,7 @@ static inline blk_status_t btrfs_submit_dio_bio(struct bio *bio,
                goto map;
 
        if (write && async_submit) {
-               ret = btrfs_wq_submit_bio(inode, bio, 0, 0, file_offset,
+               ret = btrfs_wq_submit_bio(inode, bio, 0, file_offset,
                                          btrfs_submit_bio_start_direct_io);
                goto err;
        } else if (write) {