/linux/fs/reiserfs/ |
H A D | inode.c | 379 if (!bh_result->b_page || PageUptodate(bh_result->b_page)) { in _get_block_create_0() 443 kunmap(bh_result->b_page); in _get_block_create_0() 513 bh_result->b_page = NULL; in reiserfs_get_blocks_direct_io() 528 if (buffer_mapped(bh_result) && bh_result->b_blocknr == 0) { in reiserfs_get_blocks_direct_io() 895 unbh = bh_result; in reiserfs_get_block() 2228 *bh_result = bh; in grab_tail_page() 2377 kmap(bh_result->b_page); in map_block_for_writepage() 2486 kunmap(bh_result->b_page); in map_block_for_writepage() 2488 if (!retval && buffer_mapped(bh_result) && bh_result->b_blocknr == 0) { in map_block_for_writepage() 2493 lock_buffer(bh_result); in map_block_for_writepage() [all …]
|
/linux/fs/bfs/ |
H A D | file.c | 66 struct buffer_head *bh_result, int create) in bfs_get_block() argument 79 map_bh(bh_result, sb, phys); in bfs_get_block() 91 map_bh(bh_result, sb, phys); in bfs_get_block() 110 map_bh(bh_result, sb, phys); in bfs_get_block() 148 map_bh(bh_result, sb, phys); in bfs_get_block()
|
/linux/fs/jfs/ |
H A D | inode.c | 200 struct buffer_head *bh_result, int create) in jfs_get_block() argument 207 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block() 233 set_buffer_new(bh_result); in jfs_get_block() 236 map_bh(bh_result, ip->i_sb, xaddr); in jfs_get_block() 237 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block() 252 set_buffer_new(bh_result); in jfs_get_block() 253 map_bh(bh_result, ip->i_sb, addressXAD(&xad)); in jfs_get_block() 254 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
|
/linux/fs/exfat/ |
H A D | inode.c | 265 struct buffer_head *bh_result, int create) in exfat_get_block() argument 304 map_bh(bh_result, sb, phys); in exfat_get_block() 305 if (buffer_delay(bh_result)) in exfat_get_block() 306 clear_buffer_delay(bh_result); in exfat_get_block() 324 set_buffer_new(bh_result); in exfat_get_block() 355 if (!bh_result->b_folio) in exfat_get_block() 362 folio_set_bh(bh_result, bh_result->b_folio, off); in exfat_get_block() 363 err = bh_read(bh_result, 0); in exfat_get_block() 367 folio_zero_segment(bh_result->b_folio, off + size, in exfat_get_block() 374 clear_buffer_mapped(bh_result); in exfat_get_block() [all …]
|
/linux/fs/hpfs/ |
H A D | file.c | 79 static int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int … in hpfs_get_block() argument 87 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block() 88 n_secs = bh_result->b_size >> 9; in hpfs_get_block() 94 map_bh(bh_result, inode->i_sb, s); in hpfs_get_block() 95 bh_result->b_size = n_secs << 9; in hpfs_get_block() 111 set_buffer_new(bh_result); in hpfs_get_block() 112 map_bh(bh_result, inode->i_sb, hpfs_search_hotfix_map(inode->i_sb, s)); in hpfs_get_block()
|
/linux/fs/ocfs2/ |
H A D | aops.c | 103 bh_result->b_size); in ocfs2_symlink_get_block() 105 set_buffer_uptodate(bh_result); in ocfs2_symlink_get_block() 110 map_bh(bh_result, inode->i_sb, in ocfs2_symlink_get_block() 179 clear_buffer_dirty(bh_result); in ocfs2_get_block() 180 clear_buffer_uptodate(bh_result); in ocfs2_get_block() 209 set_buffer_new(bh_result); in ocfs2_get_block() 2186 !buffer_new(bh_result) && in ocfs2_dio_wr_get_block() 2191 bh_result->b_state = 0; in ocfs2_dio_wr_get_block() 2252 bh_result->b_size = len; in ocfs2_dio_wr_get_block() 2254 set_buffer_new(bh_result); in ocfs2_dio_wr_get_block() [all …]
|
H A D | aops.h | 49 struct buffer_head *bh_result, int create);
|
H A D | ocfs2_trace.h | 1127 void *bh_result, int create), 1128 TP_ARGS(ino, iblock, bh_result, create), 1132 __field(void *, bh_result) 1138 __entry->bh_result = bh_result; 1143 __entry->bh_result, __entry->create) 1149 void *bh_result, int create), \ 1150 TP_ARGS(ino, iblock, bh_result, create))
|
/linux/fs/efs/ |
H A D | file.c | 14 struct buffer_head *bh_result, int create) in efs_get_block() argument 33 map_bh(bh_result, inode->i_sb, phys); in efs_get_block()
|
/linux/fs/minix/ |
H A D | itree_v1.c | 54 struct buffer_head *bh_result, int create) in V1_minix_get_block() argument 56 return get_block(inode, block, bh_result, create); in V1_minix_get_block()
|
H A D | itree_v2.c | 62 struct buffer_head *bh_result, int create) in V2_minix_get_block() argument 64 return get_block(inode, block, bh_result, create); in V2_minix_get_block()
|
H A D | inode.c | 411 struct buffer_head *bh_result, int create) in minix_get_block() argument 414 return V1_minix_get_block(inode, block, bh_result, create); in minix_get_block() 416 return V2_minix_get_block(inode, block, bh_result, create); in minix_get_block()
|
/linux/fs/omfs/ |
H A D | file.c | 218 struct buffer_head *bh_result, int create) in omfs_get_block() argument 229 int max_blocks = bh_result->b_size >> inode->i_blkbits; in omfs_get_block() 256 map_bh(bh_result, inode->i_sb, offset); in omfs_get_block() 259 bh_result->b_size = (remain << inode->i_blkbits); in omfs_get_block() 277 map_bh(bh_result, inode->i_sb, in omfs_get_block()
|
/linux/fs/nilfs2/ |
H A D | inode.c | 73 struct buffer_head *bh_result, int create) in nilfs_get_block() argument 79 unsigned int maxblocks = bh_result->b_size >> inode->i_blkbits; in nilfs_get_block() 85 map_bh(bh_result, inode->i_sb, blknum); in nilfs_get_block() 87 bh_result->b_size = (ret << inode->i_blkbits); in nilfs_get_block() 94 bh_result->b_blocknr = 0; in nilfs_get_block() 99 (unsigned long)bh_result); in nilfs_get_block() 120 set_buffer_new(bh_result); in nilfs_get_block() 121 set_buffer_delay(bh_result); in nilfs_get_block() 122 map_bh(bh_result, inode->i_sb, 0); in nilfs_get_block()
|
/linux/fs/affs/ |
H A D | file.c | 297 affs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh_result, int create) in affs_get_block() argument 322 map_bh(bh_result, sb, (sector_t)be32_to_cpu(AFFS_BLOCK(sb, ext_bh, block))); in affs_get_block() 328 set_buffer_new(bh_result); in affs_get_block() 333 if (bh_result->b_blocknr) in affs_get_block() 336 (unsigned long long)bh_result->b_blocknr); in affs_get_block() 339 affs_adjust_checksum(ext_bh, blocknr - bh_result->b_blocknr + 1); in affs_get_block() 340 bh_result->b_blocknr = blocknr; in affs_get_block() 367 clear_buffer_mapped(bh_result); in affs_get_block() 368 bh_result->b_bdev = NULL; in affs_get_block()
|
/linux/fs/fat/ |
H A D | inode.c | 120 struct buffer_head *bh_result, int create) in __fat_get_block() argument 132 map_bh(bh_result, sb, phys); in __fat_get_block() 176 set_buffer_new(bh_result); in __fat_get_block() 177 map_bh(bh_result, sb, phys); in __fat_get_block() 183 struct buffer_head *bh_result, int create) in fat_get_block() argument 186 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block() 192 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in fat_get_block() 289 struct buffer_head *bh_result, int create) in fat_get_block_bmap() argument 292 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block_bmap() 304 map_bh(bh_result, sb, bmap); in fat_get_block_bmap() [all …]
|
/linux/fs/ufs/ |
H A D | inode.c | 397 static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buffer_head *bh_result,… in ufs_getfrag_block() argument 437 &err, bh_result->b_page)) in ufs_getfrag_block() 444 &err, &new, bh_result->b_page); in ufs_getfrag_block() 453 fragment, &err, &new, bh_result->b_page); in ufs_getfrag_block() 458 map_bh(bh_result, sb, phys64); in ufs_getfrag_block() 460 set_buffer_new(bh_result); in ufs_getfrag_block() 467 map_bh(bh_result, sb, phys64 + frag); in ufs_getfrag_block()
|
/linux/fs/gfs2/ |
H A D | aops.c | 72 struct buffer_head *bh_result, int create) in gfs2_get_block_noalloc() argument 76 error = gfs2_block_map(inode, lblock, bh_result, 0); in gfs2_get_block_noalloc() 79 if (!buffer_mapped(bh_result)) in gfs2_get_block_noalloc()
|
/linux/fs/sysv/ |
H A D | itree.c | 208 static int get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int creat… in get_block() argument 227 map_bh(bh_result, sb, block_to_cpu(SYSV_SB(sb), in get_block() 261 set_buffer_new(bh_result); in get_block()
|
/linux/fs/ntfs3/ |
H A D | inode.c | 696 struct buffer_head *bh_result, int create) in ntfs_get_block() argument 699 bh_result, create, GET_BLOCK_GENERAL); in ntfs_get_block() 703 struct buffer_head *bh_result, int create) in ntfs_get_block_bmap() argument 707 bh_result, create, GET_BLOCK_BMAP); in ntfs_get_block_bmap() 774 struct buffer_head *bh_result, int create) in ntfs_get_block_direct_IO_R() argument 777 bh_result, create, GET_BLOCK_DIRECT_IO_R); in ntfs_get_block_direct_IO_R() 781 struct buffer_head *bh_result, int create) in ntfs_get_block_direct_IO_W() argument 784 bh_result, create, GET_BLOCK_DIRECT_IO_W); in ntfs_get_block_direct_IO_W() 902 struct buffer_head *bh_result, int create) in ntfs_get_block_write_begin() argument 905 bh_result, create, GET_BLOCK_WRITE_BEGIN); in ntfs_get_block_write_begin()
|
/linux/fs/hfs/ |
H A D | extent.c | 337 struct buffer_head *bh_result, int create) in hfs_get_block() argument 377 map_bh(bh_result, sb, HFS_SB(sb)->fs_start + in hfs_get_block() 382 set_buffer_new(bh_result); in hfs_get_block()
|
/linux/fs/ext2/ |
H A D | inode.c | 784 struct buffer_head *bh_result, int create) in ext2_get_block() argument 786 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext2_get_block() 796 map_bh(bh_result, inode->i_sb, bno); in ext2_get_block() 797 bh_result->b_size = (ret << inode->i_blkbits); in ext2_get_block() 799 set_buffer_new(bh_result); in ext2_get_block() 801 set_buffer_boundary(bh_result); in ext2_get_block()
|
/linux/fs/hfsplus/ |
H A D | extents.c | 226 struct buffer_head *bh_result, int create) in hfsplus_get_block() argument 284 map_bh(bh_result, sb, sector); in hfsplus_get_block() 287 set_buffer_new(bh_result); in hfsplus_get_block()
|
/linux/fs/udf/ |
H A D | inode.c | 68 struct buffer_head *bh_result, int create); 453 struct buffer_head *bh_result, int flags) in __udf_get_block() argument 465 map_bh(bh_result, inode->i_sb, map.pblk); in __udf_get_block() 467 set_buffer_new(bh_result); in __udf_get_block() 473 struct buffer_head *bh_result, int create) in udf_get_block() argument 485 return __udf_get_block(inode, block, bh_result, flags); in udf_get_block() 495 struct buffer_head *bh_result, int create) in udf_get_block_wb() argument 497 return __udf_get_block(inode, block, bh_result, 0); in udf_get_block_wb()
|
/linux/fs/befs/ |
H A D | linuxvfs.c | 134 struct buffer_head *bh_result, int create) in befs_get_block() argument 162 map_bh(bh_result, inode->i_sb, disk_off); in befs_get_block()
|