/linux-2.6.39/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
|
/linux-2.6.39/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 | 470 struct dquot *dquot; in ocfs2_recover_local_quota_file() local 502 dquot = dqget(sb, le64_to_cpu(dqblk->dqb_id), type); in ocfs2_recover_local_quota_file() 503 if (!dquot) { in ocfs2_recover_local_quota_file() 532 dquot->dq_dqb.dqb_curspace += spacechange; in ocfs2_recover_local_quota_file() 533 dquot->dq_dqb.dqb_curinodes += inodechange; in ocfs2_recover_local_quota_file() 538 status = ocfs2_global_release_dquot(dquot); in ocfs2_recover_local_quota_file() 563 dqput(dquot); in ocfs2_recover_local_quota_file() 893 int ocfs2_local_write_dquot(struct dquot *dquot) in ocfs2_local_write_dquot() argument 895 struct super_block *sb = dquot->dq_sb; in ocfs2_local_write_dquot() 896 struct ocfs2_dquot *od = OCFS2_DQUOT(dquot); in ocfs2_local_write_dquot() [all …]
|
D | file.c | 1100 struct dquot *transfer_to[MAXQUOTAS] = { }; in ocfs2_setattr()
|
/linux-2.6.39/include/linux/ |
D | dqblk_qtree.h | 17 struct dquot; 21 …void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); /* Convert given entry from in memory for… 22 …void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); /* Convert given entry from disk format t… 23 int (*is_id)(void *disk, struct dquot *dquot); /* Is this structure for given id? */ 40 int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 41 int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 42 int qtree_delete_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 43 int qtree_release_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot);
|
D | quotaops.h | 47 struct dquot *dqget(struct super_block *sb, unsigned int id, int type); 48 void dqput(struct dquot *dquot); 50 int (*fn)(struct dquot *dquot, unsigned long priv), 52 struct dquot *dquot_alloc(struct super_block *sb, int type); 53 void dquot_destroy(struct dquot *dquot); 71 int dquot_commit(struct dquot *dquot); 72 int dquot_acquire(struct dquot *dquot); 73 int dquot_release(struct dquot *dquot); 75 int dquot_mark_dquot_dirty(struct dquot *dquot); 94 int __dquot_transfer(struct inode *inode, struct dquot **transfer_to);
|
D | quota.h | 284 struct dquot { struct 306 int (*read_dqblk)(struct dquot *dquot); /* Read structure for one user */ argument 307 int (*commit_dqblk)(struct dquot *dquot); /* Write structure for one user */ 308 …int (*release_dqblk)(struct dquot *dquot); /* Called when last reference to dquot is being dropped… 313 int (*write_dquot) (struct dquot *); /* Ordinary dquot write */ 314 struct dquot *(*alloc_dquot)(struct super_block *, int); /* Allocate memory for new dquot */ 315 void (*destroy_dquot)(struct dquot *); /* Free memory for dquot */ 316 int (*acquire_dquot) (struct dquot *); /* Quota is going to be created on disk */ 317 int (*release_dquot) (struct dquot *); /* Quota is going to be deleted from disk */ 318 int (*mark_dirty) (struct dquot *); /* Dquot is marked dirty */
|
D | fs.h | 779 struct dquot *i_dquot[MAXQUOTAS];
|
/linux-2.6.39/fs/reiserfs/ |
D | super.c | 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() [all …]
|
/linux-2.6.39/fs/ext3/ |
D | super.c | 751 static int ext3_write_dquot(struct dquot *dquot); 752 static int ext3_acquire_dquot(struct dquot *dquot); 753 static int ext3_release_dquot(struct dquot *dquot); 754 static int ext3_mark_dquot_dirty(struct dquot *dquot); 2788 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument 2790 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_type]; in dquot_to_inode() 2793 static int ext3_write_dquot(struct dquot *dquot) in ext3_write_dquot() argument 2799 inode = dquot_to_inode(dquot); in ext3_write_dquot() 2801 EXT3_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext3_write_dquot() 2804 ret = dquot_commit(dquot); in ext3_write_dquot() [all …]
|
/linux-2.6.39/fs/ext4/ |
D | super.c | 1175 static int ext4_write_dquot(struct dquot *dquot); 1176 static int ext4_acquire_dquot(struct dquot *dquot); 1177 static int ext4_release_dquot(struct dquot *dquot); 1178 static int ext4_mark_dquot_dirty(struct dquot *dquot); 4506 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument 4508 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_type]; in dquot_to_inode() 4511 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument 4517 inode = dquot_to_inode(dquot); in ext4_write_dquot() 4519 EXT4_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext4_write_dquot() 4522 ret = dquot_commit(dquot); in ext4_write_dquot() [all …]
|
/linux-2.6.39/Documentation/sysctl/ |
D | fs.txt | 25 - dquot-max 26 - dquot-nr 75 dquot-max & dquot-nr: 77 The file dquot-max shows the maximum number of cached disk 80 The file dquot-nr shows the number of allocated disk quota
|
/linux-2.6.39/Documentation/filesystems/ |
D | Locking | 471 int (*write_dquot) (struct dquot *); 472 int (*acquire_dquot) (struct dquot *); 473 int (*release_dquot) (struct dquot *); 474 int (*mark_dirty) (struct dquot *); 492 More details about quota locking can be found in fs/dquot.c.
|