Home
last modified time | relevance | path

Searched refs:dibh (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/fs/gfs2/
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->b_data); in gfs2_dir_write_data()
[all …]
Dbmap.c55 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
67 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page()
97 struct buffer_head *bh, *dibh; in __gfs2_unstuff_inode() local
103 error = gfs2_meta_inode_buffer(ip, &dibh); in __gfs2_unstuff_inode()
121 dibh, sizeof(struct gfs2_dinode)); in __gfs2_unstuff_inode()
124 error = gfs2_unstuffer_page(ip, dibh, block, page); in __gfs2_unstuff_inode()
132 gfs2_trans_add_meta(ip->i_gl, dibh); in __gfs2_unstuff_inode()
133 di = (struct gfs2_dinode *)dibh->b_data; in __gfs2_unstuff_inode()
134 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in __gfs2_unstuff_inode()
146 brelse(dibh); in __gfs2_unstuff_inode()
[all …]
Dinode.c420 static void gfs2_init_dir(struct buffer_head *dibh, in gfs2_init_dir() argument
423 struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data; in gfs2_init_dir()
431 …gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), d… in gfs2_init_dir()
476 struct buffer_head *dibh; in init_dinode() local
478 dibh = gfs2_meta_new(ip->i_gl, ip->i_no_addr); in init_dinode()
479 gfs2_trans_add_meta(ip->i_gl, dibh); in init_dinode()
480 di = (struct gfs2_dinode *)dibh->b_data; in init_dinode()
490 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in init_dinode()
494 gfs2_init_dir(dibh, dip); in init_dinode()
497 memcpy(dibh->b_data + sizeof(struct gfs2_dinode), symname, ip->i_inode.i_size); in init_dinode()
[all …]
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
1415 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_block()
1417 gfs2_trans_add_meta(ip->i_gl, dibh); in ea_dealloc_block()
1418 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_block()
1419 brelse(dibh); in ea_dealloc_block()
Daops.c409 struct buffer_head *dibh; in stuffed_readpage() local
425 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_readpage()
432 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in stuffed_readpage()
436 brelse(dibh); in stuffed_readpage()
Dglops.c469 struct buffer_head *dibh; in gfs2_inode_refresh() local
472 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_inode_refresh()
476 error = gfs2_dinode_in(ip, dibh->b_data); in gfs2_inode_refresh()
477 brelse(dibh); in gfs2_inode_refresh()
Dfile.c1162 struct buffer_head *dibh; in fallocate_chunk() local
1165 error = gfs2_meta_inode_buffer(ip, &dibh); in fallocate_chunk()
1169 gfs2_trans_add_meta(ip->i_gl, dibh); in fallocate_chunk()
1195 brelse(dibh); in fallocate_chunk()
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()