Lines Matching refs:inodes
367 * The following routine will lock n inodes in exclusive mode. We assume the
368 * caller calls us with the inodes in i_ino order.
384 int inodes,
394 * Currently supports between 2 and 5 inodes with exclusive locking. We
396 * inodes depend on the type of locking and the limits placed by
400 ASSERT(ips && inodes >= 2 && inodes <= 5);
406 inodes <= XFS_MMAPLOCK_MAX_SUBCLASS + 1);
408 inodes <= XFS_ILOCK_MAX_SUBCLASS + 1);
418 for (; i < inodes; i++) {
425 * If try_lock is not set yet, make sure all locked inodes are
747 * Attach the dquot(s) to the inodes and modify them incore.
837 * Attach the dquot(s) to the inodes and modify them incore.
942 * leave inodes in a PROJINHERIT directory without a
944 * to these "project-less" inodes because userspace
1237 * completion, and can result in leaving dirty stale inodes hanging
1305 /* If the log isn't running, push inodes straight to reclaim. */
1309 /* Metadata inodes require explicit resource cleanup. */
1402 /* Metadata inodes require explicit resource cleanup. */
1437 * unlinked inodes.
1488 * only unlinked, referenced inodes can be on the unlinked inode list. If we
1581 * mark it stale. We should only find clean inodes in this lookup that aren't
1616 * other inodes that we did not find in the list attached to the buffer
1677 * inodes that are in memory - they all must be marked stale and attached to
1701 * The allocation bitmap tells us which inodes of the chunk were
1716 * here to ensure dirty inodes attached to the buffer remain in
1719 * If we scan the in-memory inodes first, then buffer IO can
1721 * to mark all the active inodes on the buffer stale.
1733 * attach stale cached inodes on it.
1756 * Now we need to set all the cached clean inodes as XFS_ISTALE,
1757 * too. This requires lookups, and will skip inodes that we've
1775 * inodes in the AGI. We need to remove the inode from that list atomically with
1868 * new inodes, locking the AGF after the AGI. Similarly, freeing the inode
1985 /* Skip duplicate inodes if src and target dps are the same */
1993 * Enter all inodes for a rename transaction into a sorted array.
2003 struct xfs_inode **i_tab,/* out: sorted array of inodes */
2004 int *num_inodes) /* in/out: inodes in array */
2012 * i_tab contains a list of pointers to inodes. We initialize
2130 struct xfs_inode *inodes[__XFS_SORT_INODES];
2160 inodes, &num_inodes);
2203 * Attach the dquots to the inodes
2205 error = xfs_qm_vop_rename_dqattach(inodes);
2212 * Lock all the participating inodes. Depending upon whether
2215 * directory, we can lock from 2 to 5 inodes.
2217 xfs_lock_inodes(inodes, num_inodes, XFS_ILOCK_EXCL);
2220 * Join all the inodes to the transaction.
2263 xfs_iunlock_rename(inodes, num_inodes);
2296 for (i = 0; i < num_inodes && inodes[i] != NULL; i++) {
2297 if (inodes[i] == du_wip.ip ||
2298 (inodes[i] == target_ip &&
2304 XFS_INO_TO_AGNO(mp, inodes[i]->i_ino));
2341 xfs_iunlock_rename(inodes, num_inodes);
2446 * Inode item log recovery for v2 inodes are dependent on the flushiter
2528 * locked. The function will walk across all the inodes on the cluster buffer it
2532 * buffer and release it. If no inodes are flushed, -EAGAIN will be returned and
2606 /* don't block waiting on a log force to unpin dirty inodes */
2695 /* Wait to break both inodes' layouts before we start locking. */
2777 * Lock two inodes so that userspace cannot initiate I/O via file syscalls or
2806 /* Unlock both inodes to allow IO and mmap activity. */