Lines Matching defs:inodes

409  * The following routine will lock n inodes in exclusive mode.  We assume the
410 * caller calls us with the inodes in i_ino order.
426 int inodes,
436 * Currently supports between 2 and 5 inodes with exclusive locking. We
438 * inodes depend on the type of locking and the limits placed by
442 ASSERT(ips && inodes >= 2 && inodes <= 5);
448 inodes <= XFS_MMAPLOCK_MAX_SUBCLASS + 1);
450 inodes <= XFS_ILOCK_MAX_SUBCLASS + 1);
460 for (; i < inodes; i++) {
467 * If try_lock is not set yet, make sure all locked inodes are
777 * and on-disk inodes. If we don't catch reallocating the parent inode
1130 * Attach the dquot(s) to the inodes and modify them incore.
1222 * Attach the dquot(s) to the inodes and modify them incore.
1306 * leave inodes in a PROJINHERIT directory without a
1308 * to these "project-less" inodes because userspace
1655 * completion, and can result in leaving dirty stale inodes hanging
1723 /* If the log isn't running, push inodes straight to reclaim. */
1727 /* Metadata inodes require explicit resource cleanup. */
1822 /* Metadata inodes require explicit resource cleanup. */
1858 * unlinked inodes.
1908 * are collectively known as unlinked inodes, though the filesystem itself
1909 * maintains links to these inodes so that on-disk metadata are consistent.
1911 * XFS implements a per-AG on-disk hash table of unlinked inodes. The AGI
1922 * misses on lookups. Instead, use the fact that inodes on the unlinked list
1924 * have an existence guarantee for inodes on the unlinked list.
1927 * to resolve aginos to xfs inodes. This means we only need 8 bytes per inode
1937 * only unlinked, referenced inodes can be on the unlinked inode list. If we
2276 * mark it stale. We should only find clean inodes in this lookup that aren't
2311 * other inodes that we did not find in the list attached to the buffer
2372 * inodes that are in memory - they all must be marked stale and attached to
2396 * The allocation bitmap tells us which inodes of the chunk were
2411 * here to ensure dirty inodes attached to the buffer remain in
2414 * If we scan the in-memory inodes first, then buffer IO can
2416 * to mark all the active inodes on the buffer stale.
2428 * attach stale cached inodes on it. That means it will never be
2436 * Now we need to set all the cached clean inodes as XFS_ISTALE,
2437 * too. This requires lookups, and will skip inodes that we've
2455 * inodes in the AGI. We need to remove the inode from that list atomically with
2581 * new inodes, locking the AGF after the AGI. Similarly, freeing the inode
2672 * directory to eliminate back-references to inodes that may
2733 * Enter all inodes for a rename transaction into a sorted array.
2743 struct xfs_inode **i_tab,/* out: sorted array of inodes */
2744 int *num_inodes) /* in/out: inodes in array */
2752 * i_tab contains a list of pointers to inodes. We initialize
2904 * the target directory. All inodes are locked, so it's ok to model a
2983 struct xfs_inode *inodes[__XFS_SORT_INODES];
3013 inodes, &num_inodes);
3029 * Attach the dquots to the inodes
3031 error = xfs_qm_vop_rename_dqattach(inodes);
3036 * Lock all the participating inodes. Depending upon whether
3039 * directory, we can lock from 2 to 5 inodes.
3041 xfs_lock_inodes(inodes, num_inodes, XFS_ILOCK_EXCL);
3044 * Join all the inodes to the transaction. From this point on,
3136 for (i = 0; i < num_inodes && inodes[i] != NULL; i++) {
3137 if (inodes[i] == wip ||
3138 (inodes[i] == target_ip &&
3144 XFS_INO_TO_AGNO(mp, inodes[i]->i_ino));
3300 * that we've added the whiteout, if there was one. All inodes are
3399 * Inode item log recovery for v2 inodes are dependent on the flushiter
3480 * locked. The function will walk across all the inodes on the cluster buffer it
3484 * buffer and release it. If no inodes are flushed, -EAGAIN will be returned and
3558 /* don't block waiting on a log force to unpin dirty inodes */
3647 /* Wait to break both inodes' layouts before we start locking. */
3729 * Lock two inodes so that userspace cannot initiate I/O via file syscalls or
3758 /* Unlock both inodes to allow IO and mmap activity. */