Home
last modified time | relevance | path

Searched refs:bd_mapping (Results 1 – 22 of 22) sorted by relevance

/linux/block/
H A Dbdev.c85 struct address_space *mapping = bdev->bd_mapping; in kill_bdev()
97 struct address_space *mapping = bdev->bd_mapping; in invalidate_bdev()
125 truncate_inode_pages_range(bdev->bd_mapping, lstart, lend); in truncate_bdev_range()
135 return invalidate_inode_pages2_range(bdev->bd_mapping, in truncate_bdev_range()
207 return filemap_flush(bdev->bd_mapping); in sync_blockdev_nowait()
219 return filemap_write_and_wait(bdev->bd_mapping); in sync_blockdev()
225 return filemap_write_and_wait_range(bdev->bd_mapping, in sync_blockdev_range()
433 bdev->bd_mapping = &inode->i_data; in bdev_alloc()
458 mapping_set_stable_writes(bdev->bd_mapping); in bdev_add()
948 bdev_file->f_mapping = bdev->bd_mapping; in bdev_open()
H A Dioctl.c144 filemap_invalidate_lock(bdev->bd_mapping); in blk_ioctl_discard()
175 filemap_invalidate_unlock(bdev->bd_mapping); in blk_ioctl_discard()
201 filemap_invalidate_lock(bdev->bd_mapping); in blk_ioctl_secure_erase()
206 filemap_invalidate_unlock(bdev->bd_mapping); in blk_ioctl_secure_erase()
238 filemap_invalidate_lock(bdev->bd_mapping); in blk_ioctl_zeroout()
247 filemap_invalidate_unlock(bdev->bd_mapping); in blk_ioctl_zeroout()
803 err = filemap_invalidate_pages(bdev->bd_mapping, start, in blkdev_cmd_discard()
H A Dblk-zoned.c324 filemap_invalidate_lock(bdev->bd_mapping); in blkdev_zone_mgmt_ioctl()
346 filemap_invalidate_unlock(bdev->bd_mapping); in blkdev_zone_mgmt_ioctl()
H A Dgenhd.c746 bdev->bd_mapping->wb_err = 0; in invalidate_disk()
/linux/fs/
H A Dbuffer.c192 struct address_space *bd_mapping = bdev->bd_mapping; in __find_get_block_slow() local
193 const int blkbits = bd_mapping->host->i_blkbits; in __find_get_block_slow()
203 folio = __filemap_get_folio(bd_mapping, index, FGP_ACCESSED, 0); in __find_get_block_slow()
207 spin_lock(&bd_mapping->i_private_lock); in __find_get_block_slow()
239 spin_unlock(&bd_mapping->i_private_lock); in __find_get_block_slow()
1038 struct address_space *mapping = bdev->bd_mapping; in grow_dev_folio()
1483 gfp |= mapping_gfp_constraint(bdev->bd_mapping, ~__GFP_FS); in __bread_gfp()
1716 struct address_space *bd_mapping = bdev->bd_mapping; in clean_bdev_aliases() local
1717 const int blkbits = bd_mapping->host->i_blkbits; in clean_bdev_aliases()
1727 while (filemap_get_folios(bd_mapping, &index, end, &fbatch)) { in clean_bdev_aliases()
/linux/drivers/scsi/
H A Dscsicam.c35 struct address_space *mapping = bdev_whole(dev)->bd_mapping; in scsi_bios_ptable()
/linux/include/linux/
H A Dbuffer_head.h366 gfp = mapping_gfp_constraint(bdev->bd_mapping, ~__GFP_FS); in getblk_unmovable()
377 gfp = mapping_gfp_constraint(bdev->bd_mapping, ~__GFP_FS); in __getblk()
H A Dblk_types.h58 struct address_space *bd_mapping; /* page cache */ member
H A Djbd2.h1709 struct address_space *mapping = journal->j_fs_dev->bd_mapping; in jbd2_init_fs_dev_write_error()
1720 struct address_space *mapping = journal->j_fs_dev->bd_mapping; in jbd2_check_fs_dev_write_error()
/linux/fs/erofs/
H A Ddata.c69 buf->mapping = sb->s_bdev->bd_mapping; in erofs_init_metabuf()
/linux/block/partitions/
H A Dcore.c706 struct address_space *mapping = state->disk->part0->bd_mapping; in read_part_sector()
/linux/fs/ext4/
H A Ddir.c196 sb->s_bdev->bd_mapping, in ext4_readdir()
H A Dsuper.c247 gfp_t gfp = mapping_gfp_constraint(sb->s_bdev->bd_mapping, in ext4_sb_bread()
256 gfp_t gfp = mapping_gfp_constraint(sb->s_bdev->bd_mapping, in ext4_sb_bread_unmovable()
5560 errseq_check_and_advance(&sb->s_bdev->bd_mapping->wb_err, in __ext4_fill_super()
/linux/fs/cramfs/
H A Dinode.c186 struct address_space *mapping = sb->s_bdev->bd_mapping; in cramfs_blkdev_read()
/linux/fs/btrfs/
H A Ddisk-io.c3651 struct address_space *mapping = bdev->bd_mapping; in btrfs_read_dev_one_super()
3738 struct address_space *mapping = device->bdev->bd_mapping; in write_dev_supers()
3856 folio = filemap_get_folio(device->bdev->bd_mapping, in wait_dev_supers()
H A Dzoned.c120 struct address_space *mapping = bdev->bd_mapping; in sb_write_pointer()
H A Dvolumes.c1296 page = read_cache_page_gfp(bdev->bd_mapping, index, GFP_KERNEL); in btrfs_read_disk_super()
/linux/fs/f2fs/
H A Dsuper.c3973 folio = read_mapping_folio(sb->s_bdev->bd_mapping, block, NULL); in read_raw_super_block()
4032 folio = read_mapping_folio(sbi->sb->s_bdev->bd_mapping, index, NULL); in f2fs_commit_super()
4044 folio = read_mapping_folio(sbi->sb->s_bdev->bd_mapping, index, NULL); in f2fs_commit_super()
/linux/fs/gfs2/
H A Dops_fstype.c116 mapping->host = sb->s_bdev->bd_mapping->host; in init_sbd()
H A Dglock.c1243 mapping->host = s->s_bdev->bd_mapping->host; in gfs2_glock_get()
/linux/fs/jbd2/
H A Djournal.c2015 truncate_inode_pages_range(journal->j_dev->bd_mapping, in __jbd2_journal_erase()
/linux/drivers/md/bcache/
H A Dsuper.c174 page = read_cache_page_gfp(bdev->bd_mapping, in read_super()