/fs/fat/ |
D | cache.c | 309 int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys, in fat_bmap() argument 322 if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) { in fat_bmap() 323 *phys = sector + sbi->dir_start; in fat_bmap() 330 if (sector >= last_block) { in fat_bmap() 340 if (sector >= last_block) in fat_bmap() 344 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_bmap() 345 offset = sector & (sbi->sec_per_clus - 1); in fat_bmap() 352 if (*mapped_blocks > last_block - sector) in fat_bmap() 353 *mapped_blocks = last_block - sector; in fat_bmap()
|
D | fat.h | 288 extern int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys,
|
/fs/ |
D | dax.c | 40 sector_t sector = block << (inode->i_blkbits - 9); in dax_clear_blocks() local 48 count = bdev_direct_access(bdev, sector, &addr, &pfn, size); in dax_clear_blocks() 61 sector += pgsz / 512; in dax_clear_blocks() 75 sector_t sector = bh->b_blocknr << (blkbits - 9); in dax_get_addr() local 76 return bdev_direct_access(bh->b_bdev, sector, addr, &pfn, bh->b_size); in dax_get_addr() 296 sector_t sector = bh->b_blocknr << (inode->i_blkbits - 9); in dax_insert_mapping() local 318 error = bdev_direct_access(bh->b_bdev, sector, &addr, &pfn, bh->b_size); in dax_insert_mapping() 540 sector_t block, sector; in __dax_pmd_fault() local 626 sector = bh.b_blocknr << (blkbits - 9); in __dax_pmd_fault() 627 length = bdev_direct_access(bh.b_bdev, sector, &kaddr, &pfn, in __dax_pmd_fault()
|
D | block_dev.c | 388 int bdev_read_page(struct block_device *bdev, sector_t sector, in bdev_read_page() argument 400 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, READ); in bdev_read_page() 425 int bdev_write_page(struct block_device *bdev, sector_t sector, in bdev_write_page() argument 439 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, rw); in bdev_write_page() 466 long bdev_direct_access(struct block_device *bdev, sector_t sector, in bdev_direct_access() argument 482 if ((sector + DIV_ROUND_UP(size, 512)) > in bdev_direct_access() 485 sector += get_start_sect(bdev); in bdev_direct_access() 486 if (sector % (PAGE_SIZE / 512)) in bdev_direct_access() 488 avail = ops->direct_access(bdev, sector, addr, pfn); in bdev_direct_access()
|
D | direct-io.c | 659 sector_t sector; in dio_new_bio() local 665 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio() 668 dio_bio_alloc(dio, sdio, map_bh->b_bdev, sector, nr_pages); in dio_new_bio()
|
/fs/hfsplus/ |
D | wrapper.c | 46 int hfsplus_submit_bio(struct super_block *sb, sector_t sector, in hfsplus_submit_bio() argument 61 start = (loff_t)sector << HFSPLUS_SECTOR_SHIFT; in hfsplus_submit_bio() 63 sector &= ~((io_size >> HFSPLUS_SECTOR_SHIFT) - 1); in hfsplus_submit_bio() 66 bio->bi_iter.bi_sector = sector; in hfsplus_submit_bio()
|
D | extents.c | 232 sector_t sector; in hfsplus_get_block() local 281 sector = ((sector_t)dblock << sbi->fs_shift) + in hfsplus_get_block() 283 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/udf/ |
D | super.c | 695 loff_t sector = VSD_FIRST_SECTOR_OFFSET; in udf_check_vsd() local 708 sector += (((loff_t)sbi->s_session) << sb->s_blocksize_bits); in udf_check_vsd() 711 (unsigned int)(sector >> sb->s_blocksize_bits), in udf_check_vsd() 723 for (; !nsr02 && !nsr03 && sector < VSD_MAX_SECTOR_OFFSET; in udf_check_vsd() 724 sector += sectorsize) { in udf_check_vsd() 726 bh = udf_tread(sb, sector >> sb->s_blocksize_bits); in udf_check_vsd() 732 (sector & (sb->s_blocksize - 1))); in udf_check_vsd() 766 nsr02 = sector; in udf_check_vsd() 769 nsr03 = sector; in udf_check_vsd() 788 else if (!bh && sector - (sbi->s_session << sb->s_blocksize_bits) == in udf_check_vsd()
|
/fs/btrfs/ |
D | extent_io.c | 2101 u64 sector; in repair_io_failure() local 2126 sector = bbio->stripes[mirror_num-1].physical >> 9; in repair_io_failure() 2127 bio->bi_iter.bi_sector = sector; in repair_io_failure() 2147 rcu_str_deref(dev->name), sector); in repair_io_failure() 2850 struct page *page, sector_t sector, in submit_extent_page() argument 2870 contig = bio->bi_iter.bi_sector == sector; in submit_extent_page() 2872 contig = bio_end_sector(bio) == sector; in submit_extent_page() 2892 bio = btrfs_bio_alloc(bdev, sector, BIO_MAX_PAGES, in submit_extent_page() 2984 sector_t sector; in __do_readpage() local 3063 sector = em->block_start >> 9; in __do_readpage() [all …]
|
D | scrub.c | 238 sector_t sector; member 582 (unsigned long long)swarn->sector, root, inum, offset, in scrub_print_warning_inode() 594 (unsigned long long)swarn->sector, root, inum, offset, ret); in scrub_print_warning_inode() 625 swarn.sector = (sblock->pagev[0]->physical) >> 9; in scrub_print_warning() 652 (unsigned long long)swarn.sector, in scrub_print_warning()
|
/fs/f2fs/ |
D | segment.c | 895 static int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() argument 919 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard() 937 end_sect = sector + req_sects; in __blkdev_issue_discard() 944 req_sects = end_sect - sector; in __blkdev_issue_discard() 954 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard() 960 sector = end_sect; in __blkdev_issue_discard() 1507 sector_t sector, nr_sects; in __f2fs_issue_discard_zone() local 1529 sector = SECTOR_FROM_BLOCK(blkstart); in __f2fs_issue_discard_zone() 1532 if (sector & (bdev_zone_sectors(bdev) - 1) || in __f2fs_issue_discard_zone() 1541 return blkdev_reset_zones(bdev, sector, in __f2fs_issue_discard_zone()
|
D | super.c | 2390 sector_t sector = 0; in init_blkz_info() local 2425 while (zones && sector < nr_sectors) { in init_blkz_info() 2428 err = blkdev_report_zones(bdev, sector, in init_blkz_info() 2440 sector += zones[i].len; in init_blkz_info()
|
/fs/xfs/ |
D | xfs_buf.c | 1143 sector_t sector = bp->b_maps[map].bm_bn; in xfs_buf_ioapply_map() local 1173 bio->bi_iter.bi_sector = sector; in xfs_buf_ioapply_map() 1190 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
|
D | xfs_bmap_util.c | 73 xfs_daddr_t sector = xfs_fsb_to_db(ip, start_fsb); in xfs_zero_extent() local 74 sector_t block = XFS_BB_TO_FSBT(mp, sector); in xfs_zero_extent()
|
/fs/gfs2/ |
D | ops_fstype.c | 231 static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) in gfs2_read_super() argument 247 bio->bi_iter.bi_sector = sector * (sb->s_blocksize >> 9); in gfs2_read_super()
|
/fs/ocfs2/ |
D | aops.c | 701 sector_t sector = ((u64)p_cpos << (osb->s_clustersize_bits - 9)) + in ocfs2_direct_IO_zero_extend() local 704 ret = blkdev_issue_zeroout(osb->sb->s_bdev, sector, in ocfs2_direct_IO_zero_extend()
|
/fs/befs/ |
D | ChangeLog | 244 * Fixed a problem with reading the superblock on devices with large sector
|