• Home
  • Raw
  • Download

Lines Matching refs:dquot

1197 static int ext4_write_dquot(struct dquot *dquot);
1198 static int ext4_acquire_dquot(struct dquot *dquot);
1199 static int ext4_release_dquot(struct dquot *dquot);
1200 static int ext4_mark_dquot_dirty(struct dquot *dquot);
1215 static struct dquot **ext4_get_dquots(struct inode *inode) in ext4_get_dquots()
5099 struct dquot *dquot; in ext4_statfs_project() local
5104 dquot = dqget(sb, qid); in ext4_statfs_project()
5105 if (IS_ERR(dquot)) in ext4_statfs_project()
5106 return PTR_ERR(dquot); in ext4_statfs_project()
5109 limit = (dquot->dq_dqb.dqb_bsoftlimit ? in ext4_statfs_project()
5110 dquot->dq_dqb.dqb_bsoftlimit : in ext4_statfs_project()
5111 dquot->dq_dqb.dqb_bhardlimit) >> sb->s_blocksize_bits; in ext4_statfs_project()
5113 curblock = dquot->dq_dqb.dqb_curspace >> sb->s_blocksize_bits; in ext4_statfs_project()
5120 limit = dquot->dq_dqb.dqb_isoftlimit ? in ext4_statfs_project()
5121 dquot->dq_dqb.dqb_isoftlimit : in ext4_statfs_project()
5122 dquot->dq_dqb.dqb_ihardlimit; in ext4_statfs_project()
5126 (buf->f_files > dquot->dq_dqb.dqb_curinodes) ? in ext4_statfs_project()
5127 (buf->f_files - dquot->dq_dqb.dqb_curinodes) : 0; in ext4_statfs_project()
5131 dqput(dquot); in ext4_statfs_project()
5188 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument
5190 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; in dquot_to_inode()
5193 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument
5199 inode = dquot_to_inode(dquot); in ext4_write_dquot()
5201 EXT4_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext4_write_dquot()
5204 ret = dquot_commit(dquot); in ext4_write_dquot()
5211 static int ext4_acquire_dquot(struct dquot *dquot) in ext4_acquire_dquot() argument
5216 handle = ext4_journal_start(dquot_to_inode(dquot), EXT4_HT_QUOTA, in ext4_acquire_dquot()
5217 EXT4_QUOTA_INIT_BLOCKS(dquot->dq_sb)); in ext4_acquire_dquot()
5220 ret = dquot_acquire(dquot); in ext4_acquire_dquot()
5227 static int ext4_release_dquot(struct dquot *dquot) in ext4_release_dquot() argument
5232 handle = ext4_journal_start(dquot_to_inode(dquot), EXT4_HT_QUOTA, in ext4_release_dquot()
5233 EXT4_QUOTA_DEL_BLOCKS(dquot->dq_sb)); in ext4_release_dquot()
5236 dquot_release(dquot); in ext4_release_dquot()
5239 ret = dquot_release(dquot); in ext4_release_dquot()
5246 static int ext4_mark_dquot_dirty(struct dquot *dquot) in ext4_mark_dquot_dirty() argument
5248 struct super_block *sb = dquot->dq_sb; in ext4_mark_dquot_dirty()
5254 dquot_mark_dquot_dirty(dquot); in ext4_mark_dquot_dirty()
5255 return ext4_write_dquot(dquot); in ext4_mark_dquot_dirty()
5257 return dquot_mark_dquot_dirty(dquot); in ext4_mark_dquot_dirty()