Home
last modified time | relevance | path

Searched refs:dquot (Results 1 – 22 of 22) sorted by relevance

/fs/quota/
Ddquot.c266 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 …]
Dquota_tree.c225 struct dquot *dquot, int *err) in find_free_dqentry() argument
254 mark_info_dirty(dquot->dq_sb, dquot->dq_id.type); in find_free_dqentry()
260 quota_error(dquot->dq_sb, "Can't remove block (%u) " in find_free_dqentry()
275 quota_error(dquot->dq_sb, "Data block full but it shouldn't"); in find_free_dqentry()
282 quota_error(dquot->dq_sb, "Can't write quota data block %u", in find_free_dqentry()
286 dquot->dq_off = (blk << info->dqi_blocksize_bits) + in find_free_dqentry()
297 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, in do_insert_tree() argument
317 quota_error(dquot->dq_sb, "Can't read tree quota " in do_insert_tree()
323 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree()
329 quota_error(dquot->dq_sb, "Inserting already present " in do_insert_tree()
[all …]
Dquota_v2.c26 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 …]
Dquota_v1.c55 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 …]
DMakefile1 obj-$(CONFIG_QUOTA) += dquot.o
/fs/ocfs2/
Dquota_global.c69 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 …]
Dquota.h27 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 …]
Dquota_local.c466 struct dquot *dquot; in ocfs2_recover_local_quota_file() local
498 dquot = dqget(sb, in ocfs2_recover_local_quota_file()
501 if (IS_ERR(dquot)) { in ocfs2_recover_local_quota_file()
502 status = PTR_ERR(dquot); in ocfs2_recover_local_quota_file()
530 dquot->dq_dqb.dqb_curspace += spacechange; in ocfs2_recover_local_quota_file()
531 dquot->dq_dqb.dqb_curinodes += inodechange; in ocfs2_recover_local_quota_file()
536 status = ocfs2_global_release_dquot(dquot); in ocfs2_recover_local_quota_file()
561 dqput(dquot); in ocfs2_recover_local_quota_file()
895 int ocfs2_local_write_dquot(struct dquot *dquot) in ocfs2_local_write_dquot() argument
897 struct super_block *sb = dquot->dq_sb; in ocfs2_local_write_dquot()
[all …]
Dinode.h84 struct dquot *i_dquot[MAXQUOTAS];
Dfile.c1139 struct dquot *transfer_to[MAXQUOTAS] = { }; in ocfs2_setattr()
Dsuper.c141 static struct dquot **ocfs2_get_dquots(struct inode *inode) in ocfs2_get_dquots()
/fs/reiserfs/
Dsuper.c780 static struct dquot **reiserfs_get_dquots(struct inode *inode) in reiserfs_get_dquots()
809 static int reiserfs_write_dquot(struct dquot *);
810 static int reiserfs_acquire_dquot(struct dquot *);
811 static int reiserfs_release_dquot(struct dquot *);
812 static int reiserfs_mark_dquot_dirty(struct dquot *);
2243 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument
2249 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot()
2251 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot()
2252 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in reiserfs_write_dquot()
2255 depth = reiserfs_write_unlock_nested(dquot->dq_sb); in reiserfs_write_dquot()
[all …]
Dreiserfs.h101 struct dquot *i_dquot[MAXQUOTAS];
/fs/ext4/
Dsuper.c1197 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()
[all …]
Dioctl.c311 struct dquot *transfer_to[MAXQUOTAS] = { }; in ext4_ioctl_setproject()
Dext4.h1077 struct dquot *i_dquot[MAXQUOTAS];
/fs/f2fs/
Dsuper.c1110 struct dquot *dquot; in f2fs_statfs_project() local
1115 dquot = dqget(sb, qid); in f2fs_statfs_project()
1116 if (IS_ERR(dquot)) in f2fs_statfs_project()
1117 return PTR_ERR(dquot); in f2fs_statfs_project()
1120 limit = (dquot->dq_dqb.dqb_bsoftlimit ? in f2fs_statfs_project()
1121 dquot->dq_dqb.dqb_bsoftlimit : in f2fs_statfs_project()
1122 dquot->dq_dqb.dqb_bhardlimit) >> sb->s_blocksize_bits; in f2fs_statfs_project()
1124 curblock = dquot->dq_dqb.dqb_curspace >> sb->s_blocksize_bits; in f2fs_statfs_project()
1131 limit = dquot->dq_dqb.dqb_isoftlimit ? in f2fs_statfs_project()
1132 dquot->dq_dqb.dqb_isoftlimit : in f2fs_statfs_project()
[all …]
Df2fs.h645 struct dquot *i_dquot[MAXQUOTAS];
/fs/jfs/
Djfs_incore.h98 struct dquot *i_dquot[MAXQUOTAS];
Dsuper.c839 static struct dquot **jfs_get_dquots(struct inode *inode) in jfs_get_dquots()
/fs/ext2/
Dext2.h705 struct dquot *i_dquot[MAXQUOTAS];
Dsuper.c317 static struct dquot **ext2_get_dquots(struct inode *inode) in ext2_get_dquots()