Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 25 of 25) 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/exfat/
Dnls.c651 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()
Ddir.c70 sector_t sector; in exfat_readdir() local
121 ep = exfat_get_dentry(sb, &clu, i, &bh, &sector); in exfat_readdir()
441 sector_t sector; in exfat_init_dir_entry() local
449 ep = exfat_get_dentry(sb, p_dir, entry, &bh, &sector); in exfat_init_dir_entry()
473 ep = exfat_get_dentry(sb, p_dir, entry + 1, &bh, &sector); in exfat_init_dir_entry()
492 sector_t sector; in exfat_update_dir_chksum() local
497 fep = exfat_get_dentry(sb, p_dir, entry, &fbh, &sector); in exfat_update_dir_chksum()
527 sector_t sector; in exfat_init_ext_entry() local
533 ep = exfat_get_dentry(sb, p_dir, entry, &bh, &sector); in exfat_init_ext_entry()
541 ep = exfat_get_dentry(sb, p_dir, entry + 1, &bh, &sector); in exfat_init_ext_entry()
[all …]
Dballoc.c54 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()
Dnamei.c309 sector_t sector; in exfat_find_empty_entry() local
393 &(ei->dir), ei->entry + 1, &bh, &sector); in exfat_find_empty_entry()
793 sector_t sector; in exfat_unlink() local
805 ep = exfat_get_dentry(sb, &cdir, entry, &bh, &sector); in exfat_unlink()
948 sector_t sector; in exfat_rmdir() local
973 ep = exfat_get_dentry(sb, &cdir, entry, &bh, &sector); in exfat_rmdir()
Dexfat_fs.h467 int entry, sector_t *sector, int *offset);
470 sector_t *sector);
/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.h534 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_linux.h198 int xfs_rw_bdev(struct block_device *bdev, sector_t sector, unsigned int count,
Dxfs_buf.c1486 sector_t sector = bp->b_maps[map].bm_bn; in xfs_buf_ioapply_map() local
1512 bio->bi_iter.bi_sector = sector; in xfs_buf_ioapply_map()
1529 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
Dxfs_bmap_util.c62 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/
Ddax.c713 sector_t sector, struct page *to, unsigned long vaddr) in copy_cow_page_dax() argument
720 rc = bdev_dax_pgoff(bdev, sector, PAGE_SIZE, &pgoff); in copy_cow_page_dax()
1017 const sector_t sector = dax_iomap_sector(iomap, pos); in dax_iomap_pfn() local
1022 rc = bdev_dax_pgoff(iomap->bdev, sector, size, &pgoff); in dax_iomap_pfn()
1072 sector_t sector = iomap_sector(iomap, pos & PAGE_MASK); in dax_iomap_zero() local
1080 if (IS_ALIGNED(sector << SECTOR_SHIFT, PAGE_SIZE) && in dax_iomap_zero()
1084 rc = bdev_dax_pgoff(iomap->bdev, sector, PAGE_SIZE, &pgoff); in dax_iomap_zero()
1146 const sector_t sector = dax_iomap_sector(iomap, pos); in dax_iomap_actor() local
1156 ret = bdev_dax_pgoff(bdev, sector, size, &pgoff); in dax_iomap_actor()
1328 sector_t sector = dax_iomap_sector(&iomap, pos); in dax_iomap_pte_fault() local
[all …]
Ddirect-io.c694 sector_t sector; in dio_new_bio() local
700 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio()
703 dio_bio_alloc(dio, sdio, map_bh->b_bdev, sector, nr_pages); in dio_new_bio()
Dblock_dev.c730 int bdev_read_page(struct block_device *bdev, sector_t sector, in bdev_read_page() argument
742 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, in bdev_read_page()
767 int bdev_write_page(struct block_device *bdev, sector_t sector, in bdev_write_page() argument
780 result = ops->rw_page(bdev, sector + get_start_sect(bdev), page, in bdev_write_page()
/fs/iomap/
Dbuffered-io.c246 sector_t sector; in iomap_readpage_actor() local
270 sector = iomap_sector(iomap, pos); in iomap_readpage_actor()
271 if (ctx->bio && bio_end_sector(ctx->bio) == sector) { in iomap_readpage_actor()
299 ctx->bio->bi_iter.bi_sector = sector; in iomap_readpage_actor()
1220 loff_t offset, sector_t sector, struct writeback_control *wbc) in iomap_alloc_ioend() argument
1227 bio->bi_iter.bi_sector = sector; in iomap_alloc_ioend()
1270 sector_t sector) in iomap_can_add_to_ioend() argument
1279 if (sector != bio_end_sector(wpc->ioend->io_bio)) in iomap_can_add_to_ioend()
1293 sector_t sector = iomap_sector(&wpc->iomap, offset); in iomap_add_to_ioend() local
1298 if (!wpc->ioend || !iomap_can_add_to_ioend(wpc, offset, sector)) { in iomap_add_to_ioend()
[all …]
/fs/udf/
Dsuper.c705 loff_t sector = VSD_FIRST_SECTOR_OFFSET; in udf_check_vsd() local
719 sector += session_offset; in udf_check_vsd()
722 (unsigned int)(sector >> sb->s_blocksize_bits), in udf_check_vsd()
734 for (; !nsr && sector < VSD_MAX_SECTOR_OFFSET; sector += sectorsize) { in udf_check_vsd()
736 bh = udf_tread(sb, sector >> sb->s_blocksize_bits); in udf_check_vsd()
741 (sector & (sb->s_blocksize - 1))); in udf_check_vsd()
764 else if (!bh && sector - session_offset == VSD_FIRST_SECTOR_OFFSET) in udf_check_vsd()
/fs/gfs2/
Dlops.c542 sector_t sector = dblock << sdp->sd_fsb2bb_shift; in gfs2_find_jhead() local
544 if (bio_end_sector(bio) == sector) { in gfs2_find_jhead()
Dops_fstype.c245 static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) in gfs2_read_super() argument
261 bio->bi_iter.bi_sector = sector * (sb->s_blocksize >> 9); in gfs2_read_super()
/fs/btrfs/
Dextent_io.c2260 u64 sector; in repair_io_failure() local
2303 sector = bbio->stripes[bbio->mirror_num - 1].physical >> 9; in repair_io_failure()
2304 bio->bi_iter.bi_sector = sector; in repair_io_failure()
2328 rcu_str_deref(dev->name), sector); in repair_io_failure()
3040 sector_t sector = offset >> 9; in submit_extent_page() local
3051 contig = bio->bi_iter.bi_sector == sector; in submit_extent_page()
3053 contig = bio_end_sector(bio) == sector; in submit_extent_page()
/fs/f2fs/
Dsegment.c1831 sector_t sector, nr_sects; in __f2fs_issue_discard_zone() local
1847 sector = SECTOR_FROM_BLOCK(blkstart); in __f2fs_issue_discard_zone()
1850 if (sector & (bdev_zone_sectors(bdev) - 1) || in __f2fs_issue_discard_zone()
1859 sector, nr_sects, GFP_NOFS); in __f2fs_issue_discard_zone()
Dfile.c3808 sector_t sector = SECTOR_FROM_BLOCK(block); in f2fs_secure_erase() local
3816 ret = blkdev_issue_discard(bdev, sector, nr_sects, GFP_NOFS, in f2fs_secure_erase()
3824 ret = blkdev_issue_zeroout(bdev, sector, nr_sects, in f2fs_secure_erase()
/fs/befs/
DChangeLog244 * Fixed a problem with reading the superblock on devices with large sector