diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2018-03-02 16:10:39 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:43 +0200 |
commit | d6a691350b5d5381fad04a6dbf31bb6f393089b5 (patch) | |
tree | cac2ccc304353806d199f6ce682b45a9da49fcc8 /fs/btrfs/raid56.c | |
parent | 005d67127fa9dfb3382f2c9e918feed7a243a7fe (diff) |
Btrfs: raid56: remove redundant async_missing_raid56
async_missing_raid56() is identical to async_read_rebuild().
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.c')
-rw-r--r-- | fs/btrfs/raid56.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index fcfc20de2df3..002bddc7fa09 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c @@ -2768,24 +2768,8 @@ raid56_alloc_missing_rbio(struct btrfs_fs_info *fs_info, struct bio *bio, return rbio; } -static void missing_raid56_work(struct btrfs_work *work) -{ - struct btrfs_raid_bio *rbio; - - rbio = container_of(work, struct btrfs_raid_bio, work); - __raid56_parity_recover(rbio); -} - -static void async_missing_raid56(struct btrfs_raid_bio *rbio) -{ - btrfs_init_work(&rbio->work, btrfs_rmw_helper, - missing_raid56_work, NULL, NULL); - - btrfs_queue_work(rbio->fs_info->rmw_workers, &rbio->work); -} - void raid56_submit_missing_rbio(struct btrfs_raid_bio *rbio) { if (!lock_stripe_add(rbio)) - async_missing_raid56(rbio); + async_read_rebuild(rbio); } |