Lines Matching refs:dquot

1497 static int ext4_write_dquot(struct dquot *dquot);
1498 static int ext4_acquire_dquot(struct dquot *dquot);
1499 static int ext4_release_dquot(struct dquot *dquot);
1500 static int ext4_mark_dquot_dirty(struct dquot *dquot);
1511 static struct dquot **ext4_get_dquots(struct inode *inode) in ext4_get_dquots()
6627 struct dquot *dquot; in ext4_statfs_project() local
6632 dquot = dqget(sb, qid); in ext4_statfs_project()
6633 if (IS_ERR(dquot)) in ext4_statfs_project()
6634 return PTR_ERR(dquot); in ext4_statfs_project()
6635 spin_lock(&dquot->dq_dqb_lock); in ext4_statfs_project()
6637 limit = min_not_zero(dquot->dq_dqb.dqb_bsoftlimit, in ext4_statfs_project()
6638 dquot->dq_dqb.dqb_bhardlimit); in ext4_statfs_project()
6642 curblock = (dquot->dq_dqb.dqb_curspace + in ext4_statfs_project()
6643 dquot->dq_dqb.dqb_rsvspace) >> sb->s_blocksize_bits; in ext4_statfs_project()
6650 limit = min_not_zero(dquot->dq_dqb.dqb_isoftlimit, in ext4_statfs_project()
6651 dquot->dq_dqb.dqb_ihardlimit); in ext4_statfs_project()
6655 (buf->f_files > dquot->dq_dqb.dqb_curinodes) ? in ext4_statfs_project()
6656 (buf->f_files - dquot->dq_dqb.dqb_curinodes) : 0; in ext4_statfs_project()
6659 spin_unlock(&dquot->dq_dqb_lock); in ext4_statfs_project()
6660 dqput(dquot); in ext4_statfs_project()
6708 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument
6710 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; in dquot_to_inode()
6713 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument
6719 inode = dquot_to_inode(dquot); in ext4_write_dquot()
6721 EXT4_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext4_write_dquot()
6724 ret = dquot_commit(dquot); in ext4_write_dquot()
6731 static int ext4_acquire_dquot(struct dquot *dquot) in ext4_acquire_dquot() argument
6736 handle = ext4_journal_start(dquot_to_inode(dquot), EXT4_HT_QUOTA, in ext4_acquire_dquot()
6737 EXT4_QUOTA_INIT_BLOCKS(dquot->dq_sb)); in ext4_acquire_dquot()
6740 ret = dquot_acquire(dquot); in ext4_acquire_dquot()
6747 static int ext4_release_dquot(struct dquot *dquot) in ext4_release_dquot() argument
6752 handle = ext4_journal_start(dquot_to_inode(dquot), EXT4_HT_QUOTA, in ext4_release_dquot()
6753 EXT4_QUOTA_DEL_BLOCKS(dquot->dq_sb)); in ext4_release_dquot()
6756 dquot_release(dquot); in ext4_release_dquot()
6759 ret = dquot_release(dquot); in ext4_release_dquot()
6766 static int ext4_mark_dquot_dirty(struct dquot *dquot) in ext4_mark_dquot_dirty() argument
6768 struct super_block *sb = dquot->dq_sb; in ext4_mark_dquot_dirty()
6771 dquot_mark_dquot_dirty(dquot); in ext4_mark_dquot_dirty()
6772 return ext4_write_dquot(dquot); in ext4_mark_dquot_dirty()
6774 return dquot_mark_dquot_dirty(dquot); in ext4_mark_dquot_dirty()