Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 19 of 19) sorted by relevance

/fs/fat/
Dcache.c310 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 …]
Dfat.h317 extern int fat_get_mapped_cluster(struct inode *inode, sector_t sector,
320 extern int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys,
/fs/hfsplus/
Dwrapper.c48 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()
Dextents.c233 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()
Dhfsplus_fs.h532 int hfsplus_submit_bio(struct super_block *sb, sector_t sector, void *buf,
/fs/xfs/
Dxfs_bio_io.c15 sector_t sector, in xfs_rw_bdev() argument
31 bio->bi_iter.bi_sector = sector; in xfs_rw_bdev()
Dxfs_aops.c700 sector_t sector, in xfs_alloc_ioend() argument
708 bio->bi_iter.bi_sector = sector; in xfs_alloc_ioend()
770 sector_t sector; in xfs_add_to_ioend() local
772 sector = xfs_fsb_to_db(ip, wpc->imap.br_startblock) + in xfs_add_to_ioend()
778 sector != bio_end_sector(wpc->ioend->io_bio) || in xfs_add_to_ioend()
783 wpc->imap.br_state, offset, bdev, sector, wbc); in xfs_add_to_ioend()
Dxfs_linux.h222 int xfs_rw_bdev(struct block_device *bdev, sector_t sector, unsigned int count,
Dxfs_buf.c1271 sector_t sector = bp->b_maps[map].bm_bn; in xfs_buf_ioapply_map() local
1297 bio->bi_iter.bi_sector = sector; in xfs_buf_ioapply_map()
1314 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
Dxfs_bmap_util.c61 xfs_daddr_t sector = xfs_fsb_to_db(ip, start_fsb); in xfs_zero_extent() local
62 sector_t block = XFS_BB_TO_FSBT(mp, sector); in xfs_zero_extent()
/fs/
Ddax.c684 sector_t sector, size_t size, struct page *to, in copy_user_dax() argument
692 rc = bdev_dax_pgoff(bdev, sector, size, &pgoff); in copy_user_dax()
994 const sector_t sector = dax_iomap_sector(iomap, pos); in dax_iomap_pfn() local
999 rc = bdev_dax_pgoff(iomap->bdev, sector, size, &pgoff); in dax_iomap_pfn()
1061 struct dax_device *dax_dev, sector_t sector, in __dax_zero_page_range() argument
1065 sector_t start_sector = sector + (offset >> 9); in __dax_zero_page_range()
1074 rc = bdev_dax_pgoff(bdev, sector, PAGE_SIZE, &pgoff); in __dax_zero_page_range()
1131 const sector_t sector = dax_iomap_sector(iomap, pos); in dax_iomap_actor() local
1141 ret = bdev_dax_pgoff(bdev, sector, size, &pgoff); in dax_iomap_actor()
1309 sector_t sector = dax_iomap_sector(&iomap, pos); in dax_iomap_pte_fault() local
[all …]
Ddirect-io.c732 sector_t sector; in dio_new_bio() local
738 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio()
741 dio_bio_alloc(dio, sdio, map_bh->b_bdev, sector, nr_pages); in dio_new_bio()
Dblock_dev.c699 int bdev_read_page(struct block_device *bdev, sector_t sector, in bdev_read_page() argument
711 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, in bdev_read_page()
737 int bdev_write_page(struct block_device *bdev, sector_t sector, in bdev_write_page() argument
750 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, in bdev_write_page()
/fs/udf/
Dsuper.c703 loff_t sector = VSD_FIRST_SECTOR_OFFSET; in udf_check_vsd() local
715 sector += (((loff_t)sbi->s_session) << sb->s_blocksize_bits); in udf_check_vsd()
718 (unsigned int)(sector >> sb->s_blocksize_bits), in udf_check_vsd()
730 for (; !nsr && sector < VSD_MAX_SECTOR_OFFSET; sector += sectorsize) { in udf_check_vsd()
732 bh = udf_tread(sb, sector >> sb->s_blocksize_bits); in udf_check_vsd()
737 (sector & (sb->s_blocksize - 1))); in udf_check_vsd()
760 else if (!bh && sector - (sbi->s_session << sb->s_blocksize_bits) == in udf_check_vsd()
/fs/iomap/
Dbuffered-io.c216 sector_t sector; in iomap_readpage_actor() local
240 sector = iomap_sector(iomap, pos); in iomap_readpage_actor()
241 if (ctx->bio && bio_end_sector(ctx->bio) == sector) in iomap_readpage_actor()
272 ctx->bio->bi_iter.bi_sector = sector; in iomap_readpage_actor()
/fs/btrfs/
Dextent_io.c2182 u64 sector; in repair_io_failure() local
2225 sector = bbio->stripes[bbio->mirror_num - 1].physical >> 9; in repair_io_failure()
2226 bio->bi_iter.bi_sector = sector; in repair_io_failure()
2250 rcu_str_deref(dev->name), sector); in repair_io_failure()
2945 sector_t sector = offset >> 9; in submit_extent_page() local
2955 contig = bio->bi_iter.bi_sector == sector; in submit_extent_page()
2957 contig = bio_end_sector(bio) == sector; in submit_extent_page()
/fs/gfs2/
Dops_fstype.c236 static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) in gfs2_read_super() argument
252 bio->bi_iter.bi_sector = sector * (sb->s_blocksize >> 9); in gfs2_read_super()
/fs/f2fs/
Dsegment.c1757 sector_t sector, nr_sects; in __f2fs_issue_discard_zone() local
1773 sector = SECTOR_FROM_BLOCK(blkstart); in __f2fs_issue_discard_zone()
1776 if (sector & (bdev_zone_sectors(bdev) - 1) || in __f2fs_issue_discard_zone()
1785 sector, nr_sects, GFP_NOFS); in __f2fs_issue_discard_zone()
/fs/befs/
DChangeLog244 * Fixed a problem with reading the superblock on devices with large sector