Lines Matching refs:dquots

23  *		invalidate_dquots() now writes modified dquots.
34 * Invalidation of referenced dquots is no longer possible
106 * Operation accessing dquots via inode pointers are protected by dquot_srcu.
109 * inode and before dropping dquot references to avoid use of dquots after
113 * inode is a quota file). Functions adding pointers from inode to dquots have
117 * then drops all pointers to dquots from an inode.
233 * All dquots are placed to the end of inuse_list when first created, and this
239 * dquots on the list. Each cleaned up dquot is moved to free_dquots list.
243 * Unused and cleaned up dquots are in the free_dquots list and this list is
246 * of dquots on the list. When dquot is invalidated it's completely released
249 * Dirty dquots are added to the dqi_dirty_list of quota_info when mark
250 * dirtied, and this list is searched when writing dirty dquots back to
403 /* Dirtify all the dquots - this can block when journalling */
404 static inline int mark_all_dquot_dirty(struct dquot * const *dquots)
411 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
569 /* Invalidate all dquots on the list. Note that this function is called after
611 * work cleaning up released dquots.
967 /* all dquots go on the inuse_list */
1018 struct dquot * const *dquots;
1024 dquots = i_dquot(inode);
1026 return !dquots[type];
1028 if (!dquots[cnt])
1092 * Remove references to dquots from inode and add dquot to list for freeing
1098 struct dquot **dquots = i_dquot(inode);
1099 struct dquot *dquot = dquots[type];
1104 dquots[type] = NULL;
1123 * Free list of dquots
1520 struct dquot **dquots, *got[MAXQUOTAS] = {};
1528 dquots = i_dquot(inode);
1544 if (dquots[cnt])
1594 if (!dquots[cnt]) {
1595 dquots[cnt] = got[cnt];
1606 spin_lock(&dquots[cnt]->dq_dqb_lock);
1607 dquots[cnt]->dq_dqb.dqb_rsvspace += rsv;
1608 spin_unlock(&dquots[cnt]->dq_dqb_lock);
1630 struct dquot **dquots;
1636 dquots = i_dquot(inode);
1638 if (!dquots[i] && sb_has_quota_active(inode->i_sb, i))
1655 struct dquot **dquots = i_dquot(inode);
1660 put[cnt] = dquots[cnt];
1661 dquots[cnt] = NULL;
1669 struct dquot * const *dquots;
1682 dquots = i_dquot(inode);
1684 if (dquots[cnt])
1742 struct dquot **dquots;
1759 dquots = i_dquot(inode);
1763 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
1774 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
1796 mark_all_dquot_dirty(dquots);
1812 struct dquot * const *dquots;
1820 dquots = i_dquot(inode);
1824 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
1830 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
1845 mark_all_dquot_dirty(dquots);
1857 struct dquot **dquots;
1869 dquots = i_dquot(inode);
1874 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
1888 mark_all_dquot_dirty(dquots);
1899 struct dquot **dquots;
1911 dquots = i_dquot(inode);
1916 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
1930 mark_all_dquot_dirty(dquots);
1943 struct dquot **dquots;
1958 dquots = i_dquot(inode);
1965 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
1986 mark_all_dquot_dirty(dquots);
2000 struct dquot * const *dquots;
2007 dquots = i_dquot(inode);
2013 dquot = srcu_dereference(dquots[cnt], &dquot_srcu);
2024 mark_all_dquot_dirty(dquots);
2033 * to original dquots that need to be released are placed there. On failure,
2344 * Now all dquots should be invalidated, all writes done so we