Home
last modified time | relevance | path

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

/linux-4.19.296/fs/gfs2/
Dbmap.c57 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
75 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page()
120 struct buffer_head *bh, *dibh; in gfs2_unstuff_dinode() local
128 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_unstuff_dinode()
146 dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode()
149 error = gfs2_unstuffer_page(ip, dibh, block, page); in gfs2_unstuff_dinode()
157 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_unstuff_dinode()
158 di = (struct gfs2_dinode *)dibh->b_data; in gfs2_unstuff_dinode()
159 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode()
171 brelse(dibh); in gfs2_unstuff_dinode()
[all …]
Ddir.c128 struct buffer_head *dibh; in gfs2_dir_write_stuffed() local
131 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_stuffed()
135 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_stuffed()
136 memcpy(dibh->b_data + offset + sizeof(struct gfs2_dinode), buf, size); in gfs2_dir_write_stuffed()
140 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_stuffed()
142 brelse(dibh); in gfs2_dir_write_stuffed()
162 struct buffer_head *dibh; in gfs2_dir_write_data() local
230 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_data()
238 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_data()
239 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_data()
[all …]
Dinode.c408 static void gfs2_init_dir(struct buffer_head *dibh, in gfs2_init_dir() argument
411 struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data; in gfs2_init_dir()
419 …gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), d… in gfs2_init_dir()
465 struct buffer_head *dibh; in init_dinode() local
467 dibh = gfs2_meta_new(ip->i_gl, ip->i_no_addr); in init_dinode()
468 gfs2_trans_add_meta(ip->i_gl, dibh); in init_dinode()
469 di = (struct gfs2_dinode *)dibh->b_data; in init_dinode()
479 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in init_dinode()
483 gfs2_init_dir(dibh, dip); in init_dinode()
486 memcpy(dibh->b_data + sizeof(struct gfs2_dinode), symname, ip->i_inode.i_size); in init_dinode()
[all …]
Daops.h12 extern int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh,
Daops.c462 struct buffer_head *dibh; in stuffed_readpage() local
478 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_readpage()
483 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in stuffed_readpage()
487 brelse(dibh); in stuffed_readpage()
695 int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh, in gfs2_stuffed_write_end() argument
702 unsigned char *buf = dibh->b_data + sizeof(struct gfs2_dinode); in gfs2_stuffed_write_end()
Dxattr.c1253 struct buffer_head *indbh, *dibh; in ea_dealloc_indirect() local
1349 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_indirect()
1351 gfs2_trans_add_meta(ip->i_gl, dibh); in ea_dealloc_indirect()
1352 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_indirect()
1353 brelse(dibh); in ea_dealloc_indirect()
1371 struct buffer_head *dibh; in ea_dealloc_block() local
1399 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_block()
1401 gfs2_trans_add_meta(ip->i_gl, dibh); in ea_dealloc_block()
1402 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_block()
1403 brelse(dibh); in ea_dealloc_block()
Dglops.c413 struct buffer_head *dibh; in gfs2_inode_refresh() local
416 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_inode_refresh()
420 error = gfs2_dinode_in(ip, dibh->b_data); in gfs2_inode_refresh()
421 brelse(dibh); in gfs2_inode_refresh()
Dfile.c866 struct buffer_head *dibh; in fallocate_chunk() local
869 error = gfs2_meta_inode_buffer(ip, &dibh); in fallocate_chunk()
873 gfs2_trans_add_meta(ip->i_gl, dibh); in fallocate_chunk()
900 brelse(dibh); in fallocate_chunk()
Drgrp.c2369 struct buffer_head *dibh; in gfs2_alloc_blocks() local
2403 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_alloc_blocks()
2406 (struct gfs2_dinode *)dibh->b_data; in gfs2_alloc_blocks()
2407 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_alloc_blocks()
2410 brelse(dibh); in gfs2_alloc_blocks()