Lines Matching refs:dquot

630 static int reiserfs_write_dquot(struct dquot *);
631 static int reiserfs_acquire_dquot(struct dquot *);
632 static int reiserfs_release_dquot(struct dquot *);
633 static int reiserfs_mark_dquot_dirty(struct dquot *);
1939 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument
1944 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot()
1946 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot()
1947 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in reiserfs_write_dquot()
1950 ret = dquot_commit(dquot); in reiserfs_write_dquot()
1952 journal_end(&th, dquot->dq_sb, in reiserfs_write_dquot()
1953 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in reiserfs_write_dquot()
1957 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_write_dquot()
1961 static int reiserfs_acquire_dquot(struct dquot *dquot) in reiserfs_acquire_dquot() argument
1966 reiserfs_write_lock(dquot->dq_sb); in reiserfs_acquire_dquot()
1968 journal_begin(&th, dquot->dq_sb, in reiserfs_acquire_dquot()
1969 REISERFS_QUOTA_INIT_BLOCKS(dquot->dq_sb)); in reiserfs_acquire_dquot()
1972 ret = dquot_acquire(dquot); in reiserfs_acquire_dquot()
1974 journal_end(&th, dquot->dq_sb, in reiserfs_acquire_dquot()
1975 REISERFS_QUOTA_INIT_BLOCKS(dquot->dq_sb)); in reiserfs_acquire_dquot()
1979 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_acquire_dquot()
1983 static int reiserfs_release_dquot(struct dquot *dquot) in reiserfs_release_dquot() argument
1988 reiserfs_write_lock(dquot->dq_sb); in reiserfs_release_dquot()
1990 journal_begin(&th, dquot->dq_sb, in reiserfs_release_dquot()
1991 REISERFS_QUOTA_DEL_BLOCKS(dquot->dq_sb)); in reiserfs_release_dquot()
1994 dquot_release(dquot); in reiserfs_release_dquot()
1997 ret = dquot_release(dquot); in reiserfs_release_dquot()
1999 journal_end(&th, dquot->dq_sb, in reiserfs_release_dquot()
2000 REISERFS_QUOTA_DEL_BLOCKS(dquot->dq_sb)); in reiserfs_release_dquot()
2004 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_release_dquot()
2008 static int reiserfs_mark_dquot_dirty(struct dquot *dquot) in reiserfs_mark_dquot_dirty() argument
2011 if (REISERFS_SB(dquot->dq_sb)->s_qf_names[USRQUOTA] || in reiserfs_mark_dquot_dirty()
2012 REISERFS_SB(dquot->dq_sb)->s_qf_names[GRPQUOTA]) { in reiserfs_mark_dquot_dirty()
2013 dquot_mark_dquot_dirty(dquot); in reiserfs_mark_dquot_dirty()
2014 return reiserfs_write_dquot(dquot); in reiserfs_mark_dquot_dirty()
2016 return dquot_mark_dquot_dirty(dquot); in reiserfs_mark_dquot_dirty()