Lines Matching refs:ip
719 static void __ordered_del_inode(struct gfs2_inode *ip) in __ordered_del_inode() argument
721 if (!list_empty(&ip->i_ordered)) in __ordered_del_inode()
722 list_del_init(&ip->i_ordered); in __ordered_del_inode()
727 struct gfs2_inode *ip; in gfs2_ordered_write() local
733 ip = list_first_entry(&sdp->sd_log_ordered, struct gfs2_inode, i_ordered); in gfs2_ordered_write()
734 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write()
735 __ordered_del_inode(ip); in gfs2_ordered_write()
738 list_move(&ip->i_ordered, &written); in gfs2_ordered_write()
740 filemap_fdatawrite(ip->i_inode.i_mapping); in gfs2_ordered_write()
749 struct gfs2_inode *ip; in gfs2_ordered_wait() local
753 ip = list_first_entry(&sdp->sd_log_ordered, struct gfs2_inode, i_ordered); in gfs2_ordered_wait()
754 __ordered_del_inode(ip); in gfs2_ordered_wait()
755 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
758 filemap_fdatawait(ip->i_inode.i_mapping); in gfs2_ordered_wait()
764 void gfs2_ordered_del_inode(struct gfs2_inode *ip) in gfs2_ordered_del_inode() argument
766 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_del_inode()
769 __ordered_del_inode(ip); in gfs2_ordered_del_inode()