/fs/btrfs/ |
D | raid56.c | 885 struct sector_ptr *sector; in sector_in_rbio() local 895 sector = &rbio->bio_sectors[index]; in sector_in_rbio() 896 if (sector->page || bio_list_only) { in sector_in_rbio() 898 if (!sector->page) in sector_in_rbio() 899 sector = NULL; in sector_in_rbio() 901 return sector; in sector_in_rbio() 1016 struct sector_ptr *sector, in rbio_add_io_sector() argument 1035 ASSERT(sector->page); in rbio_add_io_sector() 1055 ret = bio_add_page(last, sector->page, sectorsize, in rbio_add_io_sector() 1056 sector->pgoff); in rbio_add_io_sector() [all …]
|
D | scrub.c | 401 static void scrub_sector_get(struct scrub_sector *sector); 402 static void scrub_sector_put(struct scrub_sector *sector); 418 struct scrub_sector *sector); 424 static inline int scrub_is_page_on_raid56(struct scrub_sector *sector) in scrub_is_page_on_raid56() argument 426 return sector->recover && in scrub_is_page_on_raid56() 427 (sector->recover->bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK); in scrub_is_page_on_raid56() 1501 struct scrub_sector *sector; in scrub_setup_recheck_block() local 1506 sector = alloc_scrub_sector(sblock, logical, GFP_NOFS); in scrub_setup_recheck_block() 1507 if (!sector) { in scrub_setup_recheck_block() 1514 sector->flags = flags; in scrub_setup_recheck_block() [all …]
|
D | zoned.c | 84 sector_t sector; in sb_write_pointer() local 138 sector = zones[1].start; in sb_write_pointer() 140 sector = zones[0].start; in sb_write_pointer() 145 sector = zones[0].wp; in sb_write_pointer() 147 sector = zones[1].wp; in sb_write_pointer() 151 *wp_ret = sector << SECTOR_SHIFT; in sb_write_pointer() 358 sector_t sector = 0; in btrfs_get_dev_zone_info() local 494 while (sector < nr_sectors) { in btrfs_get_dev_zone_info() 496 ret = btrfs_get_dev_zones(device, sector << SECTOR_SHIFT, zones, in btrfs_get_dev_zone_info() 517 sector = zones[nr_zones - 1].start + zones[nr_zones - 1].len; in btrfs_get_dev_zone_info()
|
D | extent_io.c | 549 u64 sector; in repair_io_failure() local 596 sector = bioc->stripes[bioc->mirror_num - 1].physical >> 9; in repair_io_failure() 607 bio.bi_iter.bi_sector = sector; in repair_io_failure() 621 rcu_str_deref(dev->name), sector); in repair_io_failure() 1371 const sector_t sector = disk_bytenr >> SECTOR_SHIFT; in btrfs_bio_add_page() local 1398 if (bio_end_sector(bio) == sector && in btrfs_bio_add_page() 1407 contig = bio->bi_iter.bi_sector == sector; in btrfs_bio_add_page()
|
/fs/fat/ |
D | cache.c | 310 int fat_get_mapped_cluster(struct inode *inode, sector_t sector, in fat_get_mapped_cluster() argument 318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster() 319 offset = sector & (sbi->sec_per_clus - 1); in fat_get_mapped_cluster() 326 if (*mapped_blocks > last_block - sector) in fat_get_mapped_cluster() 327 *mapped_blocks = last_block - sector; in fat_get_mapped_cluster() 333 static int is_exceed_eof(struct inode *inode, sector_t sector, in is_exceed_eof() argument 341 if (sector >= *last_block) { in is_exceed_eof() 351 if (sector >= *last_block) in is_exceed_eof() 358 int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys, in fat_bmap() argument 367 if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) { in fat_bmap() [all …]
|
D | fat.h | 318 extern int fat_get_mapped_cluster(struct inode *inode, sector_t sector, 321 extern int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys,
|
/fs/zonefs/ |
D | trace.h | 30 __field(sector_t, sector) 38 __entry->sector = z->z_sector; 43 blk_op_str(__entry->op), __entry->sector, 54 __field(sector_t, sector) 62 __entry->sector = zonefs_inode_zone(inode)->z_sector; 70 __entry->sector, __entry->size, __entry->wpoffset,
|
/fs/exfat/ |
D | nls.c | 651 sector_t sector, unsigned long long num_sectors, in exfat_load_upcase_table() argument 667 num_sectors += sector; in exfat_load_upcase_table() 669 while (sector < num_sectors) { in exfat_load_upcase_table() 672 bh = sb_bread(sb, sector); in exfat_load_upcase_table() 675 (unsigned long long)sector); in exfat_load_upcase_table() 679 sector++; in exfat_load_upcase_table() 751 sector_t sector; in exfat_create_upcase_table() local 782 sector = exfat_cluster_to_sector(sbi, tbl_clu); in exfat_create_upcase_table() 784 ret = exfat_load_upcase_table(sb, sector, num_sectors, in exfat_create_upcase_table()
|
D | balloc.c | 54 sector_t sector; in exfat_allocate_bitmap() local 77 sector = exfat_cluster_to_sector(sbi, sbi->map_clu); in exfat_allocate_bitmap() 79 sbi->vol_amap[i] = sb_bread(sb, sector + i); in exfat_allocate_bitmap()
|
D | dir.c | 653 int entry, sector_t *sector, int *offset) in exfat_find_location() argument 672 *sector = EXFAT_B_TO_BLK(off, sb); in exfat_find_location() 673 *sector += exfat_cluster_to_sector(sbi, clu); in exfat_find_location()
|
/fs/hfsplus/ |
D | wrapper.c | 47 int hfsplus_submit_bio(struct super_block *sb, sector_t sector, in hfsplus_submit_bio() argument 63 start = (loff_t)sector << HFSPLUS_SECTOR_SHIFT; in hfsplus_submit_bio() 65 sector &= ~((io_size >> HFSPLUS_SECTOR_SHIFT) - 1); in hfsplus_submit_bio() 68 bio->bi_iter.bi_sector = sector; in hfsplus_submit_bio()
|
D | extents.c | 233 sector_t sector; in hfsplus_get_block() local 282 sector = ((sector_t)dblock << sbi->fs_shift) + in hfsplus_get_block() 284 map_bh(bh_result, sb, sector); in hfsplus_get_block()
|
D | hfsplus_fs.h | 529 int hfsplus_submit_bio(struct super_block *sb, sector_t sector, void *buf,
|
/fs/crypto/ |
D | bio.c | 121 sector_t sector = pblk << (inode->i_blkbits - SECTOR_SHIFT); in fscrypt_zeroout_range() local 161 bio->bi_iter.bi_sector = sector; in fscrypt_zeroout_range() 173 sector += 1U << (du_bits - SECTOR_SHIFT); in fscrypt_zeroout_range()
|
/fs/xfs/ |
D | xfs_bio_io.c | 15 sector_t sector, in xfs_rw_bdev() argument 31 bio->bi_iter.bi_sector = sector; in xfs_rw_bdev()
|
D | xfs_linux.h | 198 int xfs_rw_bdev(struct block_device *bdev, sector_t sector, unsigned int count,
|
D | xfs_buf.c | 1459 sector_t sector = bp->b_maps[map].bm_bn; in xfs_buf_ioapply_map() local 1484 bio->bi_iter.bi_sector = sector; in xfs_buf_ioapply_map() 1500 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
|
D | xfs_mount.h | 327 __XFS_HAS_FEAT(sector, SECTOR) in __XFS_ADD_FEAT()
|
D | xfs_bmap_util.c | 62 xfs_daddr_t sector = xfs_fsb_to_db(ip, start_fsb); in xfs_zero_extent() local 63 sector_t block = XFS_BB_TO_FSBT(mp, sector); in xfs_zero_extent()
|
/fs/iomap/ |
D | buffered-io.c | 266 sector_t sector; in iomap_readpage_iter() local 287 sector = iomap_sector(iomap, pos); in iomap_readpage_iter() 289 bio_end_sector(ctx->bio) != sector || in iomap_readpage_iter() 313 ctx->bio->bi_iter.bi_sector = sector; in iomap_readpage_iter() 1216 loff_t offset, sector_t sector, struct writeback_control *wbc) in iomap_alloc_ioend() argument 1224 bio->bi_iter.bi_sector = sector; in iomap_alloc_ioend() 1236 ioend->io_sector = sector; in iomap_alloc_ioend() 1264 sector_t sector) in iomap_can_add_to_ioend() argument 1273 if (sector != bio_end_sector(wpc->ioend->io_bio)) in iomap_can_add_to_ioend() 1294 sector_t sector = iomap_sector(&wpc->iomap, pos); in iomap_add_to_ioend() local [all …]
|
/fs/udf/ |
D | super.c | 706 loff_t sector = VSD_FIRST_SECTOR_OFFSET; in udf_check_vsd() local 720 sector += session_offset; in udf_check_vsd() 723 (unsigned int)(sector >> sb->s_blocksize_bits), in udf_check_vsd() 735 for (; !nsr && sector < VSD_MAX_SECTOR_OFFSET; sector += sectorsize) { in udf_check_vsd() 737 bh = udf_tread(sb, sector >> sb->s_blocksize_bits); in udf_check_vsd() 742 (sector & (sb->s_blocksize - 1))); in udf_check_vsd() 765 else if (!bh && sector - session_offset == VSD_FIRST_SECTOR_OFFSET) in udf_check_vsd()
|
/fs/ |
D | direct-io.c | 683 sector_t sector; in dio_new_bio() local 689 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio() 692 dio_bio_alloc(dio, sdio, map_bh->b_bdev, sector, nr_pages); in dio_new_bio()
|
/fs/f2fs/ |
D | data.c | 397 block_t blk_addr, sector_t *sector) in f2fs_target_device() argument 413 if (sector) in f2fs_target_device() 414 *sector = SECTOR_FROM_BLOCK(blk_addr); in f2fs_target_device() 466 sector_t sector; in __bio_alloc() local 469 bdev = f2fs_target_device(sbi, fio->new_blkaddr, §or); in __bio_alloc() 473 bio->bi_iter.bi_sector = sector; in __bio_alloc() 1119 sector_t sector; in f2fs_grab_read_bio() local 1120 struct block_device *bdev = f2fs_target_device(sbi, blkaddr, §or); in f2fs_grab_read_bio() 1127 bio->bi_iter.bi_sector = sector; in f2fs_grab_read_bio()
|
/fs/gfs2/ |
D | lops.c | 548 sector_t sector = dblock << sdp->sd_fsb2bb_shift; in gfs2_find_jhead() local 550 if (bio_end_sector(bio) == sector) { in gfs2_find_jhead()
|
D | ops_fstype.c | 240 static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) in gfs2_read_super() argument 256 bio->bi_iter.bi_sector = sector * (sb->s_blocksize >> 9); in gfs2_read_super()
|