| /linux/mm/ |
| H A D | shmem_quota.c | 164 static int shmem_acquire_dquot(struct dquot *dquot) in shmem_acquire_dquot() argument 166 struct mem_dqinfo *info = sb_dqinfo(dquot->dq_sb, dquot->dq_id.type); in shmem_acquire_dquot() 168 struct shmem_sb_info *sbinfo = dquot->dq_sb->s_fs_info; in shmem_acquire_dquot() 171 qid_t id = from_kqid(&init_user_ns, dquot->dq_id); in shmem_acquire_dquot() 172 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in shmem_acquire_dquot() 175 mutex_lock(&dquot->dq_lock); in shmem_acquire_dquot() 200 if (dquot->dq_id.type == USRQUOTA) { in shmem_acquire_dquot() 203 } else if (dquot->dq_id.type == GRPQUOTA) { in shmem_acquire_dquot() 215 spin_lock(&dquot->dq_dqb_lock); in shmem_acquire_dquot() 216 dquot->dq_dqb.dqb_bhardlimit = entry->bhardlimit; in shmem_acquire_dquot() [all …]
|
| /linux/fs/quota/ |
| H A D | quota_tree.c | 260 struct dquot *dquot, int *err) in find_free_dqentry() argument 292 mark_info_dirty(dquot->dq_sb, dquot->dq_id.type); in find_free_dqentry() 298 quota_error(dquot->dq_sb, "Can't remove block (%u) " in find_free_dqentry() 313 quota_error(dquot->dq_sb, "Data block full but it shouldn't"); in find_free_dqentry() 320 quota_error(dquot->dq_sb, "Can't write quota data block %u", in find_free_dqentry() 324 dquot->dq_off = ((loff_t)blk << info->dqi_blocksize_bits) + in find_free_dqentry() 335 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, in do_insert_tree() argument 352 quota_error(dquot->dq_sb, in do_insert_tree() 364 quota_error(dquot->dq_sb, "Can't read tree quota " in do_insert_tree() 370 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree() [all …]
|
| H A D | quota_v2.c | 25 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot); 26 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp); 27 static int v2r0_is_id(void *dp, struct dquot *dquot); 28 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot); 29 static void v2r1_disk2memdqb(struct dquot *dquot, void *dp); 30 static int v2r1_is_id(void *dp, struct dquot *dquot); 229 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp) in v2r0_disk2memdqb() argument 232 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_disk2memdqb() 249 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot) in v2r0_mem2diskdqb() argument 252 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_mem2diskdqb() [all …]
|
| H A D | quota_v1.c | 56 static int v1_read_dqblk(struct dquot *dquot) in v1_read_dqblk() argument 58 int type = dquot->dq_id.type; in v1_read_dqblk() 60 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in v1_read_dqblk() 67 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, in v1_read_dqblk() 69 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); in v1_read_dqblk() 71 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); in v1_read_dqblk() 72 if (dquot->dq_dqb.dqb_bhardlimit == 0 && in v1_read_dqblk() 73 dquot->dq_dqb.dqb_bsoftlimit == 0 && in v1_read_dqblk() 74 dquot->dq_dqb.dqb_ihardlimit == 0 && in v1_read_dqblk() 75 dquot->dq_dqb.dqb_isoftlimit == 0) in v1_read_dqblk() [all …]
|
| H A D | Makefile | 2 obj-$(CONFIG_QUOTA) += dquot.o
|
| /linux/include/linux/ |
| H A D | dqblk_qtree.h | 18 struct dquot; 23 …void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); /* Convert given entry from in memory for… 24 …void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); /* Convert given entry from disk format t… 25 int (*is_id)(void *disk, struct dquot *dquot); /* Is this structure for given id? */ 42 int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 43 int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 44 int qtree_delete_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 45 int qtree_release_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot);
|
| H A D | quota.h | 296 struct dquot { struct 317 int (*read_dqblk)(struct dquot *dquot); /* Read structure for one user */ argument 318 int (*commit_dqblk)(struct dquot *dquot); /* Write structure for one user */ 319 …int (*release_dqblk)(struct dquot *dquot); /* Called when last reference to dquot is being dropped… 325 int (*write_dquot) (struct dquot *); /* Ordinary dquot write */ 326 struct dquot *(*alloc_dquot)(struct super_block *, int); /* Allocate memory for new dquot */ 327 void (*destroy_dquot)(struct dquot *); /* Free memory for dquot */ 328 int (*acquire_dquot) (struct dquot *); /* Quota is going to be created on disk */ 329 int (*release_dquot) (struct dquot *); /* Quota is going to be deleted from disk */ 330 int (*mark_dirty) (struct dquot *); /* Dquot is marked dirty */
|
| /linux/fs/ocfs2/ |
| H A D | quota.h | 28 struct dquot dq_dquot; /* Generic VFS dquot */ 72 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) in OCFS2_DQUOT() argument 74 return container_of(dquot, struct ocfs2_dquot, dq_dquot); in OCFS2_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); 116 int ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot); [all …]
|
| H A D | inode.h | 68 struct dquot __rcu *i_dquot[MAXQUOTAS];
|
| H A D | file.c | 1130 struct dquot *transfer_to[MAXQUOTAS] = { }; in ocfs2_setattr()
|
| /linux/fs/ext4/ |
| H A D | super.c | 1617 static int ext4_write_dquot(struct dquot *dquot); 1618 static int ext4_acquire_dquot(struct dquot *dquot); 1619 static int ext4_release_dquot(struct dquot *dquot); 1620 static int ext4_mark_dquot_dirty(struct dquot *dquot); 1631 static struct dquot __rcu **ext4_get_dquots(struct inode *inode) in ext4_get_dquots() 6913 struct dquot *dquo in ext4_statfs_project() 6906 struct dquot *dquot; ext4_statfs_project() local 6994 dquot_to_inode(struct dquot * dquot) dquot_to_inode() argument 6999 ext4_write_dquot(struct dquot * dquot) ext4_write_dquot() argument 7021 ext4_acquire_dquot(struct dquot * dquot) ext4_acquire_dquot() argument 7041 ext4_release_dquot(struct dquot * dquot) ext4_release_dquot() argument 7081 ext4_mark_dquot_dirty(struct dquot * dquot) ext4_mark_dquot_dirty() argument [all...] |
| H A D | ext4.h | 1219 struct dquot __rcu *i_dquot[MAXQUOTAS];
|
| /linux/fs/jfs/ |
| H A D | jfs_incore.h | 95 struct dquot __rcu *i_dquot[MAXQUOTAS];
|
| H A D | super.c | 793 static struct dquot __rcu **jfs_get_dquots(struct inode *inode) in jfs_get_dquots()
|
| /linux/include/linux/fs/ |
| H A D | super_types.h | 111 struct dquot __rcu **(*get_dquots)(struct inode *inode);
|