/fs/quota/ |
D | dquot.c | 267 static inline void insert_dquot_hash(struct dquot *dquot) in insert_dquot_hash() argument 270 head = dquot_hash + hashfn(dquot->dq_sb, dquot->dq_id, dquot->dq_type); in insert_dquot_hash() 271 hlist_add_head(&dquot->dq_hash, head); in insert_dquot_hash() 274 static inline void remove_dquot_hash(struct dquot *dquot) in remove_dquot_hash() argument 276 hlist_del_init(&dquot->dq_hash); in remove_dquot_hash() 279 static struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, in find_dquot() 283 struct dquot *dquot; in find_dquot() local 286 dquot = hlist_entry(node, struct dquot, dq_hash); in find_dquot() 287 if (dquot->dq_sb == sb && dquot->dq_id == id && in find_dquot() 288 dquot->dq_type == type) in find_dquot() [all …]
|
D | quota_tree.c | 218 struct dquot *dquot, int *err) in find_free_dqentry() argument 247 mark_info_dirty(dquot->dq_sb, dquot->dq_type); in find_free_dqentry() 253 quota_error(dquot->dq_sb, "Can't remove block (%u) " in find_free_dqentry() 268 quota_error(dquot->dq_sb, "Data block full but it shouldn't"); in find_free_dqentry() 275 quota_error(dquot->dq_sb, "Can't write quota data block %u", in find_free_dqentry() 279 dquot->dq_off = (blk << info->dqi_blocksize_bits) + in find_free_dqentry() 290 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, in do_insert_tree() argument 310 quota_error(dquot->dq_sb, "Can't read tree quota " in do_insert_tree() 316 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree() 322 quota_error(dquot->dq_sb, "Inserting already present " in do_insert_tree() [all …]
|
D | quota_v2.c | 26 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot); 27 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp); 28 static int v2r0_is_id(void *dp, struct dquot *dquot); 29 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot); 30 static void v2r1_disk2memdqb(struct dquot *dquot, void *dp); 31 static int v2r1_is_id(void *dp, struct dquot *dquot); 174 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp) in v2r0_disk2memdqb() argument 177 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_disk2memdqb() 194 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot) in v2r0_mem2diskdqb() argument 197 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_mem2diskdqb() [all …]
|
D | quota_v1.c | 55 static int v1_read_dqblk(struct dquot *dquot) in v1_read_dqblk() argument 57 int type = dquot->dq_type; in v1_read_dqblk() 60 if (!sb_dqopt(dquot->dq_sb)->files[type]) in v1_read_dqblk() 65 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, in v1_read_dqblk() 66 sizeof(struct v1_disk_dqblk), v1_dqoff(dquot->dq_id)); in v1_read_dqblk() 68 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); in v1_read_dqblk() 69 if (dquot->dq_dqb.dqb_bhardlimit == 0 && in v1_read_dqblk() 70 dquot->dq_dqb.dqb_bsoftlimit == 0 && in v1_read_dqblk() 71 dquot->dq_dqb.dqb_ihardlimit == 0 && in v1_read_dqblk() 72 dquot->dq_dqb.dqb_isoftlimit == 0) in v1_read_dqblk() [all …]
|
D | Makefile | 1 obj-$(CONFIG_QUOTA) += dquot.o
|
/fs/ocfs2/ |
D | quota_global.c | 68 static void ocfs2_global_disk2memdqb(struct dquot *dquot, void *dp) in ocfs2_global_disk2memdqb() argument 71 struct mem_dqblk *m = &dquot->dq_dqb; in ocfs2_global_disk2memdqb() 74 if (!test_bit(DQ_LASTSET_B + QIF_ILIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 78 if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 80 if (!test_bit(DQ_LASTSET_B + QIF_BLIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 84 if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 86 if (!test_bit(DQ_LASTSET_B + QIF_BTIME_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 88 if (!test_bit(DQ_LASTSET_B + QIF_ITIME_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 90 OCFS2_DQUOT(dquot)->dq_use_count = le32_to_cpu(d->dqb_use_count); in ocfs2_global_disk2memdqb() 93 static void ocfs2_global_mem2diskdqb(void *dp, struct dquot *dquot) in ocfs2_global_mem2diskdqb() argument [all …]
|
D | quota.h | 24 struct dquot dq_dquot; /* Generic VFS dquot */ 66 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) in OCFS2_DQUOT() argument 68 return container_of(dquot, struct ocfs2_dquot, dq_dquot); in OCFS2_DQUOT() 94 int ocfs2_global_read_dquot(struct dquot *dquot); 95 int __ocfs2_sync_dquot(struct dquot *dquot, int freeing); 96 static inline int ocfs2_sync_dquot(struct dquot *dquot) in ocfs2_sync_dquot() argument 98 return __ocfs2_sync_dquot(dquot, 0); in ocfs2_sync_dquot() 100 static inline int ocfs2_global_release_dquot(struct dquot *dquot) in ocfs2_global_release_dquot() argument 102 return __ocfs2_sync_dquot(dquot, 1); in ocfs2_global_release_dquot() 110 int ocfs2_create_local_dquot(struct dquot *dquot); [all …]
|
D | quota_local.c | 472 struct dquot *dquot; in ocfs2_recover_local_quota_file() local 504 dquot = dqget(sb, le64_to_cpu(dqblk->dqb_id), type); in ocfs2_recover_local_quota_file() 505 if (!dquot) { in ocfs2_recover_local_quota_file() 534 dquot->dq_dqb.dqb_curspace += spacechange; in ocfs2_recover_local_quota_file() 535 dquot->dq_dqb.dqb_curinodes += inodechange; in ocfs2_recover_local_quota_file() 540 status = ocfs2_global_release_dquot(dquot); in ocfs2_recover_local_quota_file() 565 dqput(dquot); in ocfs2_recover_local_quota_file() 898 int ocfs2_local_write_dquot(struct dquot *dquot) in ocfs2_local_write_dquot() argument 900 struct super_block *sb = dquot->dq_sb; in ocfs2_local_write_dquot() 901 struct ocfs2_dquot *od = OCFS2_DQUOT(dquot); in ocfs2_local_write_dquot() [all …]
|
D | file.c | 1112 struct dquot *transfer_to[MAXQUOTAS] = { }; in ocfs2_setattr()
|
/fs/reiserfs/ |
D | super.c | 713 static int reiserfs_write_dquot(struct dquot *); 714 static int reiserfs_acquire_dquot(struct dquot *); 715 static int reiserfs_release_dquot(struct dquot *); 716 static int reiserfs_mark_dquot_dirty(struct dquot *); 2056 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument 2061 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot() 2063 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot() 2064 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in reiserfs_write_dquot() 2067 reiserfs_write_unlock(dquot->dq_sb); in reiserfs_write_dquot() 2068 ret = dquot_commit(dquot); in reiserfs_write_dquot() [all …]
|
/fs/ext3/ |
D | super.c | 750 static int ext3_write_dquot(struct dquot *dquot); 751 static int ext3_acquire_dquot(struct dquot *dquot); 752 static int ext3_release_dquot(struct dquot *dquot); 753 static int ext3_mark_dquot_dirty(struct dquot *dquot); 2794 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument 2796 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_type]; in dquot_to_inode() 2799 static int ext3_write_dquot(struct dquot *dquot) in ext3_write_dquot() argument 2805 inode = dquot_to_inode(dquot); in ext3_write_dquot() 2807 EXT3_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext3_write_dquot() 2810 ret = dquot_commit(dquot); in ext3_write_dquot() [all …]
|
/fs/ext4/ |
D | super.c | 1093 static int ext4_write_dquot(struct dquot *dquot); 1094 static int ext4_acquire_dquot(struct dquot *dquot); 1095 static int ext4_release_dquot(struct dquot *dquot); 1096 static int ext4_mark_dquot_dirty(struct dquot *dquot); 4615 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument 4617 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_type]; in dquot_to_inode() 4620 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument 4626 inode = dquot_to_inode(dquot); in ext4_write_dquot() 4628 EXT4_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext4_write_dquot() 4631 ret = dquot_commit(dquot); in ext4_write_dquot() [all …]
|