raid56.c (ebcc326316f3d798e9715e5ca1451c3e457b95dd) | raid56.c (ac63885907ee25bf277fa39ba66a0d85dec20786) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2012 Fusion-io All rights reserved. 4 * Copyright (C) 2012 Intel Corp. All rights reserved. 5 */ 6 7#include <linux/sched.h> 8#include <linux/bio.h> --- 160 unchanged lines hidden (view full) --- 169static void __free_raid_bio(struct btrfs_raid_bio *rbio); 170static void index_rbio_pages(struct btrfs_raid_bio *rbio); 171static int alloc_rbio_pages(struct btrfs_raid_bio *rbio); 172 173static noinline void finish_parity_scrub(struct btrfs_raid_bio *rbio, 174 int need_check); 175static void async_scrub_parity(struct btrfs_raid_bio *rbio); 176 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2012 Fusion-io All rights reserved. 4 * Copyright (C) 2012 Intel Corp. All rights reserved. 5 */ 6 7#include <linux/sched.h> 8#include <linux/bio.h> --- 160 unchanged lines hidden (view full) --- 169static void __free_raid_bio(struct btrfs_raid_bio *rbio); 170static void index_rbio_pages(struct btrfs_raid_bio *rbio); 171static int alloc_rbio_pages(struct btrfs_raid_bio *rbio); 172 173static noinline void finish_parity_scrub(struct btrfs_raid_bio *rbio, 174 int need_check); 175static void async_scrub_parity(struct btrfs_raid_bio *rbio); 176 |
177static void start_async_work(struct btrfs_raid_bio *rbio, btrfs_func_t work_func) 178{ 179 btrfs_init_work(&rbio->work, btrfs_rmw_helper, work_func, NULL, NULL); 180 btrfs_queue_work(rbio->fs_info->rmw_workers, &rbio->work); 181} 182 |
|
177/* 178 * the stripe hash table is used for locking, and to collect 179 * bios in hopes of making a full stripe 180 */ 181int btrfs_alloc_stripe_hash_table(struct btrfs_fs_info *info) 182{ 183 struct btrfs_stripe_hash_table *table; 184 struct btrfs_stripe_hash_table *x; --- 2586 unchanged lines hidden --- | 183/* 184 * the stripe hash table is used for locking, and to collect 185 * bios in hopes of making a full stripe 186 */ 187int btrfs_alloc_stripe_hash_table(struct btrfs_fs_info *info) 188{ 189 struct btrfs_stripe_hash_table *table; 190 struct btrfs_stripe_hash_table *x; --- 2586 unchanged lines hidden --- |