Home
last modified time | relevance | path

Searched refs:dibh (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/fs/gfs2/
H A Dbmap.c48 * @dibh: the dinode buffer
55 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
72 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page()
118 struct buffer_head *bh, *dibh; in gfs2_unstuff_dinode() local
126 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_unstuff_dinode()
144 dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode()
147 error = gfs2_unstuffer_page(ip, dibh, block, page); in gfs2_unstuff_dinode()
155 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_unstuff_dinode()
156 di = (struct gfs2_dinode *)dibh->b_data; in gfs2_unstuff_dinode()
157 gfs2_buffer_clear_tail(dibh, sizeo in gfs2_unstuff_dinode()
665 struct buffer_head *dibh = mp->mp_bh[0]; gfs2_iomap_alloc() local
852 struct buffer_head *dibh = NULL, *bh; gfs2_iomap_get() local
1411 struct buffer_head *dibh = NULL; trunc_start() local
1623 struct buffer_head *dibh; sweep_bh_for_rgrps() local
1758 struct buffer_head *dibh, *bh; punch_hole() local
2019 struct buffer_head *dibh; trunc_end() local
2113 struct buffer_head *dibh; do_grow() local
2388 struct buffer_head *dibh; stuffed_zero_range() local
[all...]
H A Ddir.c122 struct buffer_head *dibh; in gfs2_dir_write_stuffed() local
125 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_stuffed()
129 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_stuffed()
130 memcpy(dibh->b_data + offset + sizeof(struct gfs2_dinode), buf, size); in gfs2_dir_write_stuffed()
134 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_stuffed()
136 brelse(dibh); in gfs2_dir_write_stuffed()
156 struct buffer_head *dibh; in gfs2_dir_write_data() local
224 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_data()
232 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_data()
233 gfs2_dinode_out(ip, dibh in gfs2_dir_write_data()
246 struct buffer_head *dibh; gfs2_dir_read_stuffed() local
912 struct buffer_head *bh, *dibh; dir_make_exhash() local
1004 struct buffer_head *nbh, *obh, *dibh; dir_split_leaf() local
1152 struct buffer_head *dibh; dir_double_exhash() local
1572 struct buffer_head *dibh; gfs2_dir_read() local
1975 struct buffer_head *bh, *dibh; leaf_dealloc() local
[all...]
H A Dinode.c425 static void gfs2_init_dir(struct buffer_head *dibh, in gfs2_init_dir() argument
428 struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data; in gfs2_init_dir()
436 gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent); in gfs2_init_dir()
482 struct buffer_head *dibh; in init_dinode() local
484 dibh = gfs2_meta_new(ip->i_gl, ip->i_no_addr); in init_dinode()
485 gfs2_trans_add_meta(ip->i_gl, dibh); in init_dinode()
486 di = (struct gfs2_dinode *)dibh->b_data; in init_dinode()
496 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in init_dinode()
500 gfs2_init_dir(dibh, dip); in init_dinode()
503 memcpy(dibh in init_dinode()
928 struct buffer_head *dibh; gfs2_link() local
1782 struct buffer_head *dibh; gfs2_get_link() local
[all...]
H A Dxattr.c1255 struct buffer_head *indbh, *dibh; in ea_dealloc_indirect() local
1352 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_indirect()
1354 gfs2_trans_add_meta(ip->i_gl, dibh); in ea_dealloc_indirect()
1355 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_indirect()
1356 brelse(dibh); in ea_dealloc_indirect()
1374 struct buffer_head *dibh; in ea_dealloc_block() local
1402 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_block()
1404 gfs2_trans_add_meta(ip->i_gl, dibh); in ea_dealloc_block()
1405 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_block()
1406 brelse(dibh); in ea_dealloc_block()
[all...]
H A Dglops.c479 struct buffer_head *dibh; in gfs2_inode_refresh() local
482 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_inode_refresh()
486 error = gfs2_dinode_in(ip, dibh->b_data); in gfs2_inode_refresh()
487 brelse(dibh); in gfs2_inode_refresh()
H A Daops.c433 struct buffer_head *dibh; in stuffed_readpage() local
449 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_readpage()
454 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in stuffed_readpage()
458 brelse(dibh); in stuffed_readpage()
H A Dfile.c985 struct buffer_head *dibh; in fallocate_chunk() local
988 error = gfs2_meta_inode_buffer(ip, &dibh); in fallocate_chunk()
992 gfs2_trans_add_meta(ip->i_gl, dibh); in fallocate_chunk()
1019 brelse(dibh); in fallocate_chunk()
H A Drgrp.c2351 struct buffer_head *dibh; in gfs2_alloc_blocks() local
2386 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_alloc_blocks()
2389 (struct gfs2_dinode *)dibh->b_data; in gfs2_alloc_blocks()
2390 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_alloc_blocks()
2393 brelse(dibh); in gfs2_alloc_blocks()
/kernel/linux/linux-6.6/fs/gfs2/
H A Dbmap.c48 * @dibh: the dinode buffer
55 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
64 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page()
94 struct buffer_head *bh, *dibh; in __gfs2_unstuff_inode() local
100 error = gfs2_meta_inode_buffer(ip, &dibh); in __gfs2_unstuff_inode()
118 dibh, sizeof(struct gfs2_dinode)); in __gfs2_unstuff_inode()
121 error = gfs2_unstuffer_page(ip, dibh, block, page); in __gfs2_unstuff_inode()
129 gfs2_trans_add_meta(ip->i_gl, dibh); in __gfs2_unstuff_inode()
130 di = (struct gfs2_dinode *)dibh->b_data; in __gfs2_unstuff_inode()
131 gfs2_buffer_clear_tail(dibh, sizeo in __gfs2_unstuff_inode()
663 struct buffer_head *dibh = mp->mp_bh[0]; __gfs2_iomap_alloc() local
850 struct buffer_head *dibh = NULL, *bh; __gfs2_iomap_get() local
1355 struct buffer_head *dibh = NULL; trunc_start() local
1578 struct buffer_head *dibh; sweep_bh_for_rgrps() local
1715 struct buffer_head *dibh, *bh; punch_hole() local
1976 struct buffer_head *dibh; trunc_end() local
2062 struct buffer_head *dibh; do_grow() local
2337 struct buffer_head *dibh; stuffed_zero_range() local
[all...]
H A Ddir.c122 struct buffer_head *dibh; in gfs2_dir_write_stuffed() local
125 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_stuffed()
129 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_stuffed()
130 memcpy(dibh->b_data + offset + sizeof(struct gfs2_dinode), buf, size); in gfs2_dir_write_stuffed()
134 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_stuffed()
136 brelse(dibh); in gfs2_dir_write_stuffed()
156 struct buffer_head *dibh; in gfs2_dir_write_data() local
224 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_data()
232 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_data()
233 gfs2_dinode_out(ip, dibh in gfs2_dir_write_data()
246 struct buffer_head *dibh; gfs2_dir_read_stuffed() local
910 struct buffer_head *bh, *dibh; dir_make_exhash() local
1001 struct buffer_head *nbh, *obh, *dibh; dir_split_leaf() local
1149 struct buffer_head *dibh; dir_double_exhash() local
1574 struct buffer_head *dibh; gfs2_dir_read() local
1979 struct buffer_head *bh, *dibh; leaf_dealloc() local
[all...]
H A Dinode.c440 static void gfs2_init_dir(struct buffer_head *dibh, in gfs2_init_dir() argument
443 struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data; in gfs2_init_dir()
451 gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent); in gfs2_init_dir()
496 struct buffer_head *dibh; in init_dinode() local
498 dibh = gfs2_meta_new(ip->i_gl, ip->i_no_addr); in init_dinode()
499 gfs2_trans_add_meta(ip->i_gl, dibh); in init_dinode()
500 di = (struct gfs2_dinode *)dibh->b_data; in init_dinode()
510 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in init_dinode()
514 gfs2_init_dir(dibh, dip); in init_dinode()
517 memcpy(dibh in init_dinode()
951 struct buffer_head *dibh; gfs2_link() local
1812 struct buffer_head *dibh; gfs2_get_link() local
[all...]
H A Dxattr.c1267 struct buffer_head *indbh, *dibh; in ea_dealloc_indirect() local
1364 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_indirect()
1366 gfs2_trans_add_meta(ip->i_gl, dibh); in ea_dealloc_indirect()
1367 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_indirect()
1368 brelse(dibh); in ea_dealloc_indirect()
1386 struct buffer_head *dibh; in ea_dealloc_block() local
1416 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_block()
1418 gfs2_trans_add_meta(ip->i_gl, dibh); in ea_dealloc_block()
1419 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_block()
1420 brelse(dibh); in ea_dealloc_block()
[all...]
H A Dglops.c482 struct buffer_head *dibh; in gfs2_inode_refresh() local
485 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_inode_refresh()
489 error = gfs2_dinode_in(ip, dibh->b_data); in gfs2_inode_refresh()
490 brelse(dibh); in gfs2_inode_refresh()
H A Daops.c414 struct buffer_head *dibh; in stuffed_readpage() local
430 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_readpage()
435 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in stuffed_readpage()
439 brelse(dibh); in stuffed_readpage()
H A Dfile.c1173 struct buffer_head *dibh; in fallocate_chunk() local
1176 error = gfs2_meta_inode_buffer(ip, &dibh); in fallocate_chunk()
1180 gfs2_trans_add_meta(ip->i_gl, dibh); in fallocate_chunk()
1206 brelse(dibh); in fallocate_chunk()
H A Drgrp.c2423 struct buffer_head *dibh; in gfs2_alloc_blocks() local
2455 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_alloc_blocks()
2458 (struct gfs2_dinode *)dibh->b_data; in gfs2_alloc_blocks()
2459 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_alloc_blocks()
2462 brelse(dibh); in gfs2_alloc_blocks()

Completed in 32 milliseconds