/fs/gfs2/ |
D | bmap.c | 55 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument 73 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode))) in gfs2_unstuffer_page() 74 dsize = dibh->b_size - sizeof(struct gfs2_dinode); in gfs2_unstuffer_page() 76 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page() 119 struct buffer_head *bh, *dibh; in gfs2_unstuff_dinode() local 127 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_unstuff_dinode() 145 dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode() 148 error = gfs2_unstuffer_page(ip, dibh, block, page); in gfs2_unstuff_dinode() 156 gfs2_trans_add_bh(ip->i_gl, dibh, 1); in gfs2_unstuff_dinode() 157 di = (struct gfs2_dinode *)dibh->b_data; in gfs2_unstuff_dinode() [all …]
|
D | dir.c | 123 struct buffer_head *dibh; in gfs2_dir_write_stuffed() local 126 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_stuffed() 130 gfs2_trans_add_bh(ip->i_gl, dibh, 1); in gfs2_dir_write_stuffed() 131 memcpy(dibh->b_data + offset + sizeof(struct gfs2_dinode), buf, size); in gfs2_dir_write_stuffed() 135 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_stuffed() 137 brelse(dibh); in gfs2_dir_write_stuffed() 157 struct buffer_head *dibh; in gfs2_dir_write_data() local 226 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_data() 234 gfs2_trans_add_bh(ip->i_gl, dibh, 1); in gfs2_dir_write_data() 235 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_data() [all …]
|
D | xattr.c | 232 struct buffer_head *dibh; in ea_dealloc_unstuffed() local 309 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_unstuffed() 312 gfs2_trans_add_bh(ip->i_gl, dibh, 1); in ea_dealloc_unstuffed() 313 gfs2_dinode_out(ip, dibh->b_data); in ea_dealloc_unstuffed() 314 brelse(dibh); in ea_dealloc_unstuffed() 717 struct buffer_head *dibh; in ea_alloc_skeleton() local 742 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_alloc_skeleton() 745 gfs2_trans_add_bh(ip->i_gl, dibh, 1); in ea_alloc_skeleton() 746 gfs2_dinode_out(ip, dibh->b_data); in ea_alloc_skeleton() 747 brelse(dibh); in ea_alloc_skeleton() [all …]
|
D | inode.c | 412 static void gfs2_init_dir(struct buffer_head *dibh, in gfs2_init_dir() argument 415 struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data; in gfs2_init_dir() 423 …gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), d… in gfs2_init_dir() 453 struct buffer_head *dibh; in init_dinode() local 456 dibh = gfs2_meta_new(gl, inum->no_addr); in init_dinode() 457 gfs2_trans_add_bh(gl, dibh, 1); in init_dinode() 458 gfs2_metatype_set(dibh, GFS2_METATYPE_DI, GFS2_FORMAT_DI); in init_dinode() 459 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in init_dinode() 460 di = (struct gfs2_dinode *)dibh->b_data; in init_dinode() 502 gfs2_init_dir(dibh, dip); in init_dinode() [all …]
|
D | aops.c | 417 struct buffer_head *dibh; in stuffed_readpage() local 433 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_readpage() 438 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode))) in stuffed_readpage() 439 dsize = (dibh->b_size - sizeof(struct gfs2_dinode)); in stuffed_readpage() 440 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in stuffed_readpage() 444 brelse(dibh); in stuffed_readpage() 779 static int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh, in gfs2_stuffed_write_end() argument 788 unsigned char *buf = dibh->b_data + sizeof(struct gfs2_dinode); in gfs2_stuffed_write_end() 790 BUG_ON((pos + len) > (dibh->b_size - sizeof(struct gfs2_dinode))); in gfs2_stuffed_write_end() 813 brelse(dibh); in gfs2_stuffed_write_end() [all …]
|
D | glops.c | 375 struct buffer_head *dibh; in gfs2_inode_refresh() local 378 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_inode_refresh() 382 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), dibh, GFS2_METATYPE_DI)) { in gfs2_inode_refresh() 383 brelse(dibh); in gfs2_inode_refresh() 387 error = gfs2_dinode_in(ip, dibh->b_data); in gfs2_inode_refresh() 388 brelse(dibh); in gfs2_inode_refresh()
|
D | file.c | 676 struct buffer_head *dibh; in fallocate_chunk() local 682 error = gfs2_meta_inode_buffer(ip, &dibh); in fallocate_chunk() 686 gfs2_trans_add_bh(ip->i_gl, dibh, 1); in fallocate_chunk() 718 brelse(dibh); in fallocate_chunk()
|
D | rgrp.c | 1489 struct buffer_head *dibh; in gfs2_alloc_blocks() local 1523 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_alloc_blocks() 1526 (struct gfs2_dinode *)dibh->b_data; in gfs2_alloc_blocks() 1527 gfs2_trans_add_bh(ip->i_gl, dibh, 1); in gfs2_alloc_blocks() 1530 brelse(dibh); in gfs2_alloc_blocks()
|