Lines Matching refs:iip
47 struct xfs_inode_log_item *iip, in xfs_inode_item_data_fork_size() argument
51 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_data_fork_size()
55 if ((iip->ili_fields & XFS_ILOG_DEXT) && in xfs_inode_item_data_fork_size()
64 if ((iip->ili_fields & XFS_ILOG_DBROOT) && in xfs_inode_item_data_fork_size()
71 if ((iip->ili_fields & XFS_ILOG_DDATA) && in xfs_inode_item_data_fork_size()
88 struct xfs_inode_log_item *iip, in xfs_inode_item_attr_fork_size() argument
92 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_attr_fork_size()
96 if ((iip->ili_fields & XFS_ILOG_AEXT) && in xfs_inode_item_attr_fork_size()
105 if ((iip->ili_fields & XFS_ILOG_ABROOT) && in xfs_inode_item_attr_fork_size()
112 if ((iip->ili_fields & XFS_ILOG_ADATA) && in xfs_inode_item_attr_fork_size()
137 struct xfs_inode_log_item *iip = INODE_ITEM(lip); in xfs_inode_item_size() local
138 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_size()
144 xfs_inode_item_data_fork_size(iip, nvecs, nbytes); in xfs_inode_item_size()
146 xfs_inode_item_attr_fork_size(iip, nvecs, nbytes); in xfs_inode_item_size()
151 struct xfs_inode_log_item *iip, in xfs_inode_item_format_data_fork() argument
156 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_data_fork()
161 iip->ili_fields &= in xfs_inode_item_format_data_fork()
164 if ((iip->ili_fields & XFS_ILOG_DEXT) && in xfs_inode_item_format_data_fork()
180 iip->ili_fields &= ~XFS_ILOG_DEXT; in xfs_inode_item_format_data_fork()
184 iip->ili_fields &= in xfs_inode_item_format_data_fork()
187 if ((iip->ili_fields & XFS_ILOG_DBROOT) && in xfs_inode_item_format_data_fork()
196 ASSERT(!(iip->ili_fields & in xfs_inode_item_format_data_fork()
198 iip->ili_fields &= ~XFS_ILOG_DBROOT; in xfs_inode_item_format_data_fork()
202 iip->ili_fields &= in xfs_inode_item_format_data_fork()
204 if ((iip->ili_fields & XFS_ILOG_DDATA) && in xfs_inode_item_format_data_fork()
219 iip->ili_fields &= ~XFS_ILOG_DDATA; in xfs_inode_item_format_data_fork()
223 iip->ili_fields &= in xfs_inode_item_format_data_fork()
225 if (iip->ili_fields & XFS_ILOG_DEV) in xfs_inode_item_format_data_fork()
236 struct xfs_inode_log_item *iip, in xfs_inode_item_format_attr_fork() argument
241 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_attr_fork()
246 iip->ili_fields &= in xfs_inode_item_format_attr_fork()
249 if ((iip->ili_fields & XFS_ILOG_AEXT) && in xfs_inode_item_format_attr_fork()
264 iip->ili_fields &= ~XFS_ILOG_AEXT; in xfs_inode_item_format_attr_fork()
268 iip->ili_fields &= in xfs_inode_item_format_attr_fork()
271 if ((iip->ili_fields & XFS_ILOG_ABROOT) && in xfs_inode_item_format_attr_fork()
281 iip->ili_fields &= ~XFS_ILOG_ABROOT; in xfs_inode_item_format_attr_fork()
285 iip->ili_fields &= in xfs_inode_item_format_attr_fork()
288 if ((iip->ili_fields & XFS_ILOG_ADATA) && in xfs_inode_item_format_attr_fork()
303 iip->ili_fields &= ~XFS_ILOG_ADATA; in xfs_inode_item_format_attr_fork()
451 struct xfs_inode_log_item *iip = INODE_ITEM(lip); in xfs_inode_item_format() local
452 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format()
477 xfs_inode_item_format_data_fork(iip, ilf, lv, &vecp); in xfs_inode_item_format()
479 xfs_inode_item_format_attr_fork(iip, ilf, lv, &vecp); in xfs_inode_item_format()
481 iip->ili_fields &= in xfs_inode_item_format()
486 ilf->ilf_fields |= (iip->ili_fields & ~XFS_ILOG_TIMESTAMP); in xfs_inode_item_format()
540 struct xfs_inode_log_item *iip = INODE_ITEM(lip); in xfs_inode_item_push() local
541 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_push()
546 ASSERT(iip->ili_item.li_buf); in xfs_inode_item_push()
593 struct xfs_inode_log_item *iip = INODE_ITEM(lip); in xfs_inode_item_release() local
594 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_release()
600 lock_flags = iip->ili_lock_flags; in xfs_inode_item_release()
601 iip->ili_lock_flags = 0; in xfs_inode_item_release()
633 struct xfs_inode_log_item *iip = INODE_ITEM(lip); in xfs_inode_item_committed() local
634 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_committed()
672 struct xfs_inode_log_item *iip; in xfs_inode_item_init() local
675 iip = ip->i_itemp = kmem_cache_zalloc(xfs_ili_cache, in xfs_inode_item_init()
678 iip->ili_inode = ip; in xfs_inode_item_init()
679 spin_lock_init(&iip->ili_lock); in xfs_inode_item_init()
680 xfs_log_item_init(mp, &iip->ili_item, XFS_LI_INODE, in xfs_inode_item_init()
691 struct xfs_inode_log_item *iip = ip->i_itemp; in xfs_inode_item_destroy() local
693 ASSERT(iip->ili_item.li_buf == NULL); in xfs_inode_item_destroy()
696 kmem_free(iip->ili_item.li_lv_shadow); in xfs_inode_item_destroy()
697 kmem_cache_free(xfs_ili_cache, iip); in xfs_inode_item_destroy()
744 struct xfs_inode_log_item *iip = INODE_ITEM(lip); in xfs_iflush_finish() local
747 spin_lock(&iip->ili_lock); in xfs_iflush_finish()
754 ASSERT(iip->ili_item.li_buf == bp); in xfs_iflush_finish()
755 if (!iip->ili_fields) { in xfs_iflush_finish()
756 iip->ili_item.li_buf = NULL; in xfs_iflush_finish()
760 iip->ili_last_fields = 0; in xfs_iflush_finish()
761 iip->ili_flush_lsn = 0; in xfs_iflush_finish()
762 spin_unlock(&iip->ili_lock); in xfs_iflush_finish()
763 xfs_iflags_clear(iip->ili_inode, XFS_IFLUSHING); in xfs_iflush_finish()
787 struct xfs_inode_log_item *iip = INODE_ITEM(lip); in xfs_buf_inode_iodone() local
789 if (xfs_iflags_test(iip->ili_inode, XFS_ISTALE)) { in xfs_buf_inode_iodone()
790 xfs_iflush_abort(iip->ili_inode); in xfs_buf_inode_iodone()
793 if (!iip->ili_last_fields) in xfs_buf_inode_iodone()
797 if (iip->ili_flush_lsn == lip->li_lsn || in xfs_buf_inode_iodone()
834 struct xfs_inode_log_item *iip = ip->i_itemp; in xfs_iflush_abort() local
837 if (iip) { in xfs_iflush_abort()
843 clear_bit(XFS_LI_FAILED, &iip->ili_item.li_flags); in xfs_iflush_abort()
844 xfs_trans_ail_delete(&iip->ili_item, 0); in xfs_iflush_abort()
850 spin_lock(&iip->ili_lock); in xfs_iflush_abort()
851 iip->ili_last_fields = 0; in xfs_iflush_abort()
852 iip->ili_fields = 0; in xfs_iflush_abort()
853 iip->ili_fsync_fields = 0; in xfs_iflush_abort()
854 iip->ili_flush_lsn = 0; in xfs_iflush_abort()
855 bp = iip->ili_item.li_buf; in xfs_iflush_abort()
856 iip->ili_item.li_buf = NULL; in xfs_iflush_abort()
857 list_del_init(&iip->ili_item.li_bio_list); in xfs_iflush_abort()
858 spin_unlock(&iip->ili_lock); in xfs_iflush_abort()