Lines Matching refs:ip
40 void gfs2_trans_add_databufs(struct gfs2_inode *ip, struct folio *folio, in gfs2_trans_add_databufs() argument
57 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_trans_add_databufs()
128 struct gfs2_inode *ip = GFS2_I(inode); in __gfs2_jdata_write_folio() local
137 gfs2_trans_add_databufs(ip, folio, 0, folio_size(folio)); in __gfs2_jdata_write_folio()
155 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_jdata_writepage() local
158 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_jdata_writepage()
392 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_jdata_writepages() local
398 gfs2_log_flush(sdp, ip->i_gl, GFS2_LOG_HEAD_FLUSH_NORMAL | in gfs2_jdata_writepages()
412 static int stuffed_readpage(struct gfs2_inode *ip, struct page *page) in stuffed_readpage() argument
415 u64 dsize = i_size_read(&ip->i_inode); in stuffed_readpage()
430 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_readpage()
453 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_read_folio() local
457 if (!gfs2_is_jdata(ip) || in gfs2_read_folio()
460 } else if (gfs2_is_stuffed(ip)) { in gfs2_read_folio()
461 error = stuffed_readpage(ip, &folio->page); in gfs2_read_folio()
482 ssize_t gfs2_internal_read(struct gfs2_inode *ip, char *buf, loff_t *pos, in gfs2_internal_read() argument
485 struct address_space *mapping = ip->i_inode.i_mapping; in gfs2_internal_read()
528 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_readahead() local
530 if (gfs2_is_stuffed(ip)) in gfs2_readahead()
532 else if (gfs2_is_jdata(ip)) in gfs2_readahead()
596 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_bmap() local
601 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); in gfs2_bmap()
605 if (!gfs2_is_stuffed(ip)) in gfs2_bmap()