Lines Matching refs:i_inode
58 struct inode *inode = &ip->i_inode; in gfs2_unstuffer_page()
107 if (i_size_read(&ip->i_inode)) { in __gfs2_unstuff_inode()
116 gfs2_trans_remove_revoke(GFS2_SB(&ip->i_inode), block, 1); in __gfs2_unstuff_inode()
136 if (i_size_read(&ip->i_inode)) { in __gfs2_unstuff_inode()
138 gfs2_add_inode_blocks(&ip->i_inode, 1); in __gfs2_unstuff_inode()
139 di->di_blocks = cpu_to_be64(gfs2_get_inode_blocks(&ip->i_inode)); in __gfs2_unstuff_inode()
162 struct inode *inode = &ip->i_inode; in gfs2_unstuff_dinode()
778 gfs2_add_inode_blocks(&ip->i_inode, alloced); in __gfs2_iomap_alloc()
1381 ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); in trunc_start()
1446 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in sweep_bh_for_rgrps()
1504 isize_blks = gfs2_get_inode_blocks(&ip->i_inode); in sweep_bh_for_rgrps()
1555 gfs2_add_inode_blocks(&ip->i_inode, -blen); in sweep_bh_for_rgrps()
1563 gfs2_add_inode_blocks(&ip->i_inode, -blen); in sweep_bh_for_rgrps()
1578 ip->i_inode.i_mtime = ip->i_inode.i_ctime = in sweep_bh_for_rgrps()
1579 current_time(&ip->i_inode); in sweep_bh_for_rgrps()
1705 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in punch_hole()
1943 gfs2_quota_change(ip, -(s64)btotal, ip->i_inode.i_uid, in punch_hole()
1944 ip->i_inode.i_gid); in punch_hole()
1945 ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); in punch_hole()
1968 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in trunc_end()
1982 if (!i_size_read(&ip->i_inode)) { in trunc_end()
1988 ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); in trunc_end()
2097 ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); in do_grow()
2157 error = punch_hole(ip, i_size_read(&ip->i_inode), 0); in gfs2_truncatei_resume()
2266 lblock += (bh.b_size >> ip->i_inode.i_blkbits); in gfs2_map_journal_extents()
2298 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_write_alloc_required()
2315 end_of_file = (i_size_read(&ip->i_inode) + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
2325 gfs2_block_map(&ip->i_inode, lblock, &bh, 0); in gfs2_write_alloc_required()
2329 lblock += (bh.b_size >> ip->i_inode.i_blkbits); in gfs2_write_alloc_required()