Lines Matching refs:i_inode

91 	struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);  in ea_foreach_i()
95 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_EA)) in ea_foreach_i()
140 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_IN)) { in ea_foreach()
146 end = eablk + GFS2_SB(&ip->i_inode)->sd_inptrs; in ea_foreach()
234 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_dealloc_unstuffed()
296 gfs2_add_inode_blocks(&ip->i_inode, -1); in ea_dealloc_unstuffed()
314 ip->i_inode.i_ctime = current_time(&ip->i_inode); in ea_dealloc_unstuffed()
315 __mark_inode_dirty(&ip->i_inode, I_DIRTY_DATASYNC); in ea_dealloc_unstuffed()
330 error = gfs2_rindex_update(GFS2_SB(&ip->i_inode)); in ea_remove_unstuffed()
354 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_list_i()
456 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_iter_unstuffed()
636 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_alloc_blk()
657 gfs2_add_inode_blocks(&ip->i_inode, 1); in ea_alloc_blk()
677 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_write()
712 gfs2_add_inode_blocks(&ip->i_inode, 1); in ea_write()
744 error = gfs2_rindex_update(GFS2_SB(&ip->i_inode)); in ea_alloc_skeleton()
756 error = gfs2_trans_begin(GFS2_SB(&ip->i_inode), in ea_alloc_skeleton()
766 ip->i_inode.i_ctime = current_time(&ip->i_inode); in ea_alloc_skeleton()
767 __mark_inode_dirty(&ip->i_inode, I_DIRTY_DATASYNC); in ea_alloc_skeleton()
770 gfs2_trans_end(GFS2_SB(&ip->i_inode)); in ea_alloc_skeleton()
805 unsigned int jbsize = GFS2_SB(&ip->i_inode)->sd_jbsize; in ea_init()
851 gfs2_assert_withdraw(GFS2_SB(&ip->i_inode), GFS2_EA2NEXT(prev) == ea); in ea_set_remove_stuffed()
877 error = gfs2_trans_begin(GFS2_SB(&ip->i_inode), RES_DINODE + 2 * RES_EATTR, 0); in ea_set_simple_noalloc()
891 ip->i_inode.i_ctime = current_time(&ip->i_inode); in ea_set_simple_noalloc()
892 __mark_inode_dirty(&ip->i_inode, I_DIRTY_DATASYNC); in ea_set_simple_noalloc()
894 gfs2_trans_end(GFS2_SB(&ip->i_inode)); in ea_set_simple_noalloc()
929 stuffed = ea_calc_size(GFS2_SB(&ip->i_inode), es->es_er->er_name_len, in ea_set_simple()
956 GFS2_SB(&ip->i_inode)->sd_jbsize); in ea_set_simple()
970 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_set_block()
1018 gfs2_add_inode_blocks(&ip->i_inode, 1); in ea_set_block()
1067 if (GFS2_EAREQ_SIZE_STUFFED(&er) > GFS2_SB(&ip->i_inode)->sd_jbsize) in ea_set_i()
1068 blks += DIV_ROUND_UP(er.er_data_len, GFS2_SB(&ip->i_inode)->sd_jbsize); in ea_set_i()
1078 gfs2_assert_withdraw(GFS2_SB(&ip->i_inode), in ea_set_remove_unstuffed()
1091 error = gfs2_trans_begin(GFS2_SB(&ip->i_inode), RES_DINODE + RES_EATTR, 0); in ea_remove_stuffed()
1109 ip->i_inode.i_ctime = current_time(&ip->i_inode); in ea_remove_stuffed()
1110 __mark_inode_dirty(&ip->i_inode, I_DIRTY_DATASYNC); in ea_remove_stuffed()
1112 gfs2_trans_end(GFS2_SB(&ip->i_inode)); in ea_remove_stuffed()
1264 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_dealloc_indirect()
1357 gfs2_add_inode_blocks(&ip->i_inode, -1); in ea_dealloc_indirect()
1384 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_dealloc_block()
1413 gfs2_add_inode_blocks(&ip->i_inode, -1); in ea_dealloc_block()
1440 error = gfs2_rindex_update(GFS2_SB(&ip->i_inode)); in gfs2_ea_dealloc()