Home
last modified time | relevance | path

Searched refs:sector_nr (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/md/
Draid1.c46 static void allow_barrier(struct r1conf *conf, sector_t sector_nr);
47 static void lower_barrier(struct r1conf *conf, sector_t sector_nr);
873 static int raise_barrier(struct r1conf *conf, sector_t sector_nr) in raise_barrier() argument
875 int idx = sector_to_idx(sector_nr); in raise_barrier()
923 static void lower_barrier(struct r1conf *conf, sector_t sector_nr) in lower_barrier() argument
925 int idx = sector_to_idx(sector_nr); in lower_barrier()
1003 static bool wait_read_barrier(struct r1conf *conf, sector_t sector_nr, bool nowait) in wait_read_barrier() argument
1005 int idx = sector_to_idx(sector_nr); in wait_read_barrier()
1046 static bool wait_barrier(struct r1conf *conf, sector_t sector_nr, bool nowait) in wait_barrier() argument
1048 int idx = sector_to_idx(sector_nr); in wait_barrier()
[all …]
Draid10.c71 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr,
3277 static sector_t raid10_sync_request(struct mddev *mddev, sector_t sector_nr, in raid10_sync_request() argument
3308 return mddev->dev_sectors - sector_nr; in raid10_sync_request()
3316 if (sector_nr >= max_sector) { in raid10_sync_request()
3371 return reshape_request(mddev, sector_nr, skipped); in raid10_sync_request()
3378 return (max_sector - sector_nr) + sectors_skipped; in raid10_sync_request()
3388 max_sector > (sector_nr | chunk_mask)) in raid10_sync_request()
3389 max_sector = (sector_nr | chunk_mask) + 1; in raid10_sync_request()
3450 sect = raid10_find_virt(conf, sector_nr, i); in raid10_sync_request()
3682 md_bitmap_cond_end_sync(mddev->bitmap, sector_nr, in raid10_sync_request()
[all …]
Draid5.c6201 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped) in reshape_request() argument
6227 if (sector_nr == 0) { in reshape_request()
6231 sector_nr = raid5_size(mddev, 0, 0) in reshape_request()
6236 sector_nr = MaxSector; in reshape_request()
6239 sector_nr = conf->reshape_progress; in reshape_request()
6240 sector_div(sector_nr, new_data_disks); in reshape_request()
6241 if (sector_nr) { in reshape_request()
6242 mddev->curr_resync_completed = sector_nr; in reshape_request()
6245 retn = sector_nr; in reshape_request()
6293 != sector_nr); in reshape_request()
[all …]
Dmd.h610 sector_t (*sync_request)(struct mddev *mddev, sector_t sector_nr, int *skipped);
/linux-6.1.9/fs/btrfs/
Draid56.c556 unsigned int sector_nr) in rbio_stripe_sector_index() argument
559 ASSERT(sector_nr < rbio->stripe_nsectors); in rbio_stripe_sector_index()
561 return stripe_nr * rbio->stripe_nsectors + sector_nr; in rbio_stripe_sector_index()
567 unsigned int sector_nr) in rbio_stripe_sector() argument
570 sector_nr)]; in rbio_stripe_sector()
575 unsigned int sector_nr) in rbio_pstripe_sector() argument
577 return rbio_stripe_sector(rbio, rbio->nr_data, sector_nr); in rbio_pstripe_sector()
582 unsigned int sector_nr) in rbio_qstripe_sector() argument
586 return rbio_stripe_sector(rbio, rbio->nr_data + 1, sector_nr); in rbio_qstripe_sector()
882 int stripe_nr, int sector_nr, in sector_in_rbio() argument
[all …]