/linux-4.1.27/fs/quota/ |
D | dquot.c | 266 static inline void insert_dquot_hash(struct dquot *dquot) in insert_dquot_hash() argument 269 head = dquot_hash + hashfn(dquot->dq_sb, dquot->dq_id); in insert_dquot_hash() 270 hlist_add_head(&dquot->dq_hash, head); in insert_dquot_hash() 273 static inline void remove_dquot_hash(struct dquot *dquot) in remove_dquot_hash() argument 275 hlist_del_init(&dquot->dq_hash); in remove_dquot_hash() 278 static struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, in find_dquot() 282 struct dquot *dquot; in find_dquot() local 285 dquot = hlist_entry(node, struct dquot, dq_hash); in find_dquot() 286 if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid)) in find_dquot() 287 return dquot; in find_dquot() [all …]
|
D | quota_tree.c | 219 struct dquot *dquot, int *err) in find_free_dqentry() argument 248 mark_info_dirty(dquot->dq_sb, dquot->dq_id.type); in find_free_dqentry() 254 quota_error(dquot->dq_sb, "Can't remove block (%u) " in find_free_dqentry() 269 quota_error(dquot->dq_sb, "Data block full but it shouldn't"); in find_free_dqentry() 276 quota_error(dquot->dq_sb, "Can't write quota data block %u", in find_free_dqentry() 280 dquot->dq_off = (blk << info->dqi_blocksize_bits) + in find_free_dqentry() 291 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, in do_insert_tree() argument 311 quota_error(dquot->dq_sb, "Can't read tree quota " in do_insert_tree() 317 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree() 323 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); 180 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp) in v2r0_disk2memdqb() argument 183 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_disk2memdqb() 200 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot) in v2r0_mem2diskdqb() argument 203 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_id.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() 67 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); in v1_read_dqblk() 69 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); in v1_read_dqblk() 70 if (dquot->dq_dqb.dqb_bhardlimit == 0 && in v1_read_dqblk() 71 dquot->dq_dqb.dqb_bsoftlimit == 0 && in v1_read_dqblk() 72 dquot->dq_dqb.dqb_ihardlimit == 0 && in v1_read_dqblk() 73 dquot->dq_dqb.dqb_isoftlimit == 0) in v1_read_dqblk() [all …]
|
D | Makefile | 1 obj-$(CONFIG_QUOTA) += dquot.o
|
/linux-4.1.27/fs/ocfs2/ |
D | quota_global.c | 69 static void ocfs2_global_disk2memdqb(struct dquot *dquot, void *dp) in ocfs2_global_disk2memdqb() argument 72 struct mem_dqblk *m = &dquot->dq_dqb; in ocfs2_global_disk2memdqb() 75 if (!test_bit(DQ_LASTSET_B + QIF_ILIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 79 if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 81 if (!test_bit(DQ_LASTSET_B + QIF_BLIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 85 if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 87 if (!test_bit(DQ_LASTSET_B + QIF_BTIME_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 89 if (!test_bit(DQ_LASTSET_B + QIF_ITIME_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 91 OCFS2_DQUOT(dquot)->dq_use_count = le32_to_cpu(d->dqb_use_count); in ocfs2_global_disk2memdqb() 94 static void ocfs2_global_mem2diskdqb(void *dp, struct dquot *dquot) in ocfs2_global_mem2diskdqb() argument [all …]
|
D | quota.h | 27 struct dquot dq_dquot; /* Generic VFS dquot */ 71 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) in OCFS2_DQUOT() argument 73 return container_of(dquot, struct ocfs2_dquot, dq_dquot); in OCFS2_DQUOT() 99 int ocfs2_global_read_dquot(struct dquot *dquot); 100 int __ocfs2_sync_dquot(struct dquot *dquot, int freeing); 101 static inline int ocfs2_sync_dquot(struct dquot *dquot) in ocfs2_sync_dquot() argument 103 return __ocfs2_sync_dquot(dquot, 0); in ocfs2_sync_dquot() 105 static inline int ocfs2_global_release_dquot(struct dquot *dquot) in ocfs2_global_release_dquot() argument 107 return __ocfs2_sync_dquot(dquot, 1); in ocfs2_global_release_dquot() 115 int ocfs2_create_local_dquot(struct dquot *dquot); [all …]
|
D | quota_local.c | 467 struct dquot *dquot; in ocfs2_recover_local_quota_file() local 499 dquot = dqget(sb, in ocfs2_recover_local_quota_file() 502 if (!dquot) { in ocfs2_recover_local_quota_file() 531 dquot->dq_dqb.dqb_curspace += spacechange; in ocfs2_recover_local_quota_file() 532 dquot->dq_dqb.dqb_curinodes += inodechange; in ocfs2_recover_local_quota_file() 537 status = ocfs2_global_release_dquot(dquot); in ocfs2_recover_local_quota_file() 562 dqput(dquot); in ocfs2_recover_local_quota_file() 896 int ocfs2_local_write_dquot(struct dquot *dquot) in ocfs2_local_write_dquot() argument 898 struct super_block *sb = dquot->dq_sb; in ocfs2_local_write_dquot() 899 struct ocfs2_dquot *od = OCFS2_DQUOT(dquot); in ocfs2_local_write_dquot() [all …]
|
D | inode.h | 86 struct dquot *i_dquot[MAXQUOTAS];
|
D | file.c | 1134 struct dquot *transfer_to[MAXQUOTAS] = { }; in ocfs2_setattr()
|
D | super.c | 146 static struct dquot **ocfs2_get_dquots(struct inode *inode) in ocfs2_get_dquots()
|
/linux-4.1.27/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 | 48 struct dquot *dqget(struct super_block *sb, struct kqid qid); 49 static inline struct dquot *dqgrab(struct dquot *dquot) in dqgrab() argument 52 WARN_ON_ONCE(!atomic_read(&dquot->dq_count)); in dqgrab() 53 WARN_ON_ONCE(!test_bit(DQ_ACTIVE_B, &dquot->dq_flags)); in dqgrab() 54 atomic_inc(&dquot->dq_count); in dqgrab() 55 return dquot; in dqgrab() 57 void dqput(struct dquot *dquot); 59 int (*fn)(struct dquot *dquot, unsigned long priv), 61 struct dquot *dquot_alloc(struct super_block *sb, int type); 62 void dquot_destroy(struct dquot *dquot); [all …]
|
D | quota.h | 285 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 | 1701 struct dquot **(*get_dquots)(struct inode *);
|
/linux-4.1.27/fs/reiserfs/ |
D | super.c | 760 static struct dquot **reiserfs_get_dquots(struct inode *inode) in reiserfs_get_dquots() 789 static int reiserfs_write_dquot(struct dquot *); 790 static int reiserfs_acquire_dquot(struct dquot *); 791 static int reiserfs_release_dquot(struct dquot *); 792 static int reiserfs_mark_dquot_dirty(struct dquot *); 2217 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument 2223 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot() 2225 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot() 2226 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in reiserfs_write_dquot() 2229 depth = reiserfs_write_unlock_nested(dquot->dq_sb); in reiserfs_write_dquot() [all …]
|
D | reiserfs.h | 101 struct dquot *i_dquot[MAXQUOTAS];
|
/linux-4.1.27/fs/ext3/ |
D | super.c | 761 static int ext3_write_dquot(struct dquot *dquot); 762 static int ext3_acquire_dquot(struct dquot *dquot); 763 static int ext3_release_dquot(struct dquot *dquot); 764 static int ext3_mark_dquot_dirty(struct dquot *dquot); 773 static struct dquot **ext3_get_dquots(struct inode *inode) in ext3_get_dquots() 2874 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument 2876 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; in dquot_to_inode() 2879 static int ext3_write_dquot(struct dquot *dquot) in ext3_write_dquot() argument 2885 inode = dquot_to_inode(dquot); in ext3_write_dquot() 2887 EXT3_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext3_write_dquot() [all …]
|
D | ext3.h | 619 struct dquot *i_dquot[MAXQUOTAS];
|
/linux-4.1.27/fs/ext4/ |
D | super.c | 1056 static int ext4_write_dquot(struct dquot *dquot); 1057 static int ext4_acquire_dquot(struct dquot *dquot); 1058 static int ext4_release_dquot(struct dquot *dquot); 1059 static int ext4_mark_dquot_dirty(struct dquot *dquot); 1073 static struct dquot **ext4_get_dquots(struct inode *inode) in ext4_get_dquots() 5176 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument 5178 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; in dquot_to_inode() 5181 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument 5187 inode = dquot_to_inode(dquot); in ext4_write_dquot() 5189 EXT4_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext4_write_dquot() [all …]
|
D | ext4.h | 982 struct dquot *i_dquot[MAXQUOTAS];
|
/linux-4.1.27/Documentation/sysctl/ |
D | fs.txt | 25 - dquot-max 26 - dquot-nr 77 dquot-max & dquot-nr: 79 The file dquot-max shows the maximum number of cached disk 82 The file dquot-nr shows the number of allocated disk quota
|
/linux-4.1.27/fs/jfs/ |
D | jfs_incore.h | 98 struct dquot *i_dquot[MAXQUOTAS];
|
D | super.c | 842 static struct dquot **jfs_get_dquots(struct inode *inode) in jfs_get_dquots()
|
/linux-4.1.27/Documentation/filesystems/ |
D | Locking | 497 int (*write_dquot) (struct dquot *); 498 int (*acquire_dquot) (struct dquot *); 499 int (*release_dquot) (struct dquot *); 500 int (*mark_dirty) (struct dquot *); 518 More details about quota locking can be found in fs/dquot.c.
|
/linux-4.1.27/fs/ext2/ |
D | ext2.h | 698 struct dquot *i_dquot[MAXQUOTAS];
|
D | super.c | 311 static struct dquot **ext2_get_dquots(struct inode *inode) in ext2_get_dquots()
|