Lines Matching refs:bdev
190 __find_get_block_slow(struct block_device *bdev, sector_t block) in __find_get_block_slow() argument
192 struct inode *bd_inode = bdev->bd_inode; in __find_get_block_slow()
235 bh->b_state, bh->b_size, bdev, in __find_get_block_slow()
602 void write_boundary_block(struct block_device *bdev, in write_boundary_block() argument
605 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
918 static sector_t blkdev_max_block(struct block_device *bdev, unsigned int size) in blkdev_max_block() argument
921 loff_t sz = bdev_nr_bytes(bdev); in blkdev_max_block()
934 init_page_buffers(struct page *page, struct block_device *bdev, in init_page_buffers() argument
940 sector_t end_block = blkdev_max_block(bdev, size); in init_page_buffers()
946 bh->b_bdev = bdev; in init_page_buffers()
969 grow_dev_page(struct block_device *bdev, sector_t block, in grow_dev_page() argument
972 struct inode *inode = bdev->bd_inode; in grow_dev_page()
996 end_block = init_page_buffers(page, bdev, in grow_dev_page()
1017 end_block = init_page_buffers(page, bdev, (sector_t)index << sizebits, in grow_dev_page()
1033 grow_buffers(struct block_device *bdev, sector_t block, int size, gfp_t gfp) in grow_buffers() argument
1049 bdev); in grow_buffers()
1054 return grow_dev_page(bdev, block, index, size, sizebits, gfp); in grow_buffers()
1058 __getblk_slow(struct block_device *bdev, sector_t block, in __getblk_slow() argument
1062 if (unlikely(size & (bdev_logical_block_size(bdev)-1) || in __getblk_slow()
1067 bdev_logical_block_size(bdev)); in __getblk_slow()
1077 bh = __find_get_block(bdev, block, size); in __getblk_slow()
1081 ret = grow_buffers(bdev, block, size, gfp); in __getblk_slow()
1309 lookup_bh_lru(struct block_device *bdev, sector_t block, unsigned size) in lookup_bh_lru() argument
1319 if (bh && bh->b_blocknr == block && bh->b_bdev == bdev && in lookup_bh_lru()
1344 __find_get_block(struct block_device *bdev, sector_t block, unsigned size) in __find_get_block() argument
1346 struct buffer_head *bh = lookup_bh_lru(bdev, block, size); in __find_get_block()
1350 bh = __find_get_block_slow(bdev, block); in __find_get_block()
1369 __getblk_gfp(struct block_device *bdev, sector_t block, in __getblk_gfp() argument
1372 struct buffer_head *bh = __find_get_block(bdev, block, size); in __getblk_gfp()
1376 bh = __getblk_slow(bdev, block, size, gfp); in __getblk_gfp()
1384 void __breadahead(struct block_device *bdev, sector_t block, unsigned size) in __breadahead() argument
1386 struct buffer_head *bh = __getblk(bdev, block, size); in __breadahead()
1407 __bread_gfp(struct block_device *bdev, sector_t block, in __bread_gfp() argument
1410 struct buffer_head *bh = __getblk_gfp(bdev, block, size, gfp); in __bread_gfp()
1631 void clean_bdev_aliases(struct block_device *bdev, sector_t block, sector_t len) in clean_bdev_aliases() argument
1633 struct inode *bd_inode = bdev->bd_inode; in clean_bdev_aliases()
1947 bh->b_bdev = iomap->bdev; in iomap_to_bh()