Lines Matching refs:dquot

805 static struct dquot **reiserfs_get_dquots(struct inode *inode)  in reiserfs_get_dquots()
834 static int reiserfs_write_dquot(struct dquot *);
835 static int reiserfs_acquire_dquot(struct dquot *);
836 static int reiserfs_release_dquot(struct dquot *);
837 static int reiserfs_mark_dquot_dirty(struct dquot *);
2268 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument
2274 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot()
2276 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot()
2277 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in reiserfs_write_dquot()
2280 depth = reiserfs_write_unlock_nested(dquot->dq_sb); in reiserfs_write_dquot()
2281 ret = dquot_commit(dquot); in reiserfs_write_dquot()
2282 reiserfs_write_lock_nested(dquot->dq_sb, depth); in reiserfs_write_dquot()
2287 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_write_dquot()
2291 static int reiserfs_acquire_dquot(struct dquot *dquot) in reiserfs_acquire_dquot() argument
2297 reiserfs_write_lock(dquot->dq_sb); in reiserfs_acquire_dquot()
2299 journal_begin(&th, dquot->dq_sb, in reiserfs_acquire_dquot()
2300 REISERFS_QUOTA_INIT_BLOCKS(dquot->dq_sb)); in reiserfs_acquire_dquot()
2303 depth = reiserfs_write_unlock_nested(dquot->dq_sb); in reiserfs_acquire_dquot()
2304 ret = dquot_acquire(dquot); in reiserfs_acquire_dquot()
2305 reiserfs_write_lock_nested(dquot->dq_sb, depth); in reiserfs_acquire_dquot()
2310 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_acquire_dquot()
2314 static int reiserfs_release_dquot(struct dquot *dquot) in reiserfs_release_dquot() argument
2319 reiserfs_write_lock(dquot->dq_sb); in reiserfs_release_dquot()
2321 journal_begin(&th, dquot->dq_sb, in reiserfs_release_dquot()
2322 REISERFS_QUOTA_DEL_BLOCKS(dquot->dq_sb)); in reiserfs_release_dquot()
2323 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_release_dquot()
2326 dquot_release(dquot); in reiserfs_release_dquot()
2329 ret = dquot_release(dquot); in reiserfs_release_dquot()
2330 reiserfs_write_lock(dquot->dq_sb); in reiserfs_release_dquot()
2334 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_release_dquot()
2339 static int reiserfs_mark_dquot_dirty(struct dquot *dquot) in reiserfs_mark_dquot_dirty() argument
2342 if (REISERFS_SB(dquot->dq_sb)->s_qf_names[USRQUOTA] || in reiserfs_mark_dquot_dirty()
2343 REISERFS_SB(dquot->dq_sb)->s_qf_names[GRPQUOTA]) { in reiserfs_mark_dquot_dirty()
2344 dquot_mark_dquot_dirty(dquot); in reiserfs_mark_dquot_dirty()
2345 return reiserfs_write_dquot(dquot); in reiserfs_mark_dquot_dirty()
2347 return dquot_mark_dquot_dirty(dquot); in reiserfs_mark_dquot_dirty()