Home
last modified time | relevance | path

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

/fs/
Ddquot.c231 static inline void insert_dquot_hash(struct dquot *dquot) in insert_dquot_hash() argument
233 struct hlist_head *head = dquot_hash + hashfn(dquot->dq_sb, dquot->dq_id, dquot->dq_type); in insert_dquot_hash()
234 hlist_add_head(&dquot->dq_hash, head); in insert_dquot_hash()
237 static inline void remove_dquot_hash(struct dquot *dquot) in remove_dquot_hash() argument
239 hlist_del_init(&dquot->dq_hash); in remove_dquot_hash()
242 static inline struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, unsigned int i… in find_dquot()
245 struct dquot *dquot; in find_dquot() local
248 dquot = hlist_entry(node, struct dquot, dq_hash); in find_dquot()
249 if (dquot->dq_sb == sb && dquot->dq_id == id && dquot->dq_type == type) in find_dquot()
250 return dquot; in find_dquot()
[all …]
Dquota_tree.c214 struct dquot *dquot, int *err) in find_free_dqentry() argument
242 mark_info_dirty(dquot->dq_sb, dquot->dq_type); in find_free_dqentry()
273 dquot->dq_off = (blk << info->dqi_blocksize_bits) + in find_free_dqentry()
284 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, in do_insert_tree() argument
310 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree()
319 dquot->dq_id, depth)])); in do_insert_tree()
324 newblk = find_free_dqentry(info, dquot, &ret); in do_insert_tree()
326 ret = do_insert_tree(info, dquot, &newblk, depth+1); in do_insert_tree()
329 ref[get_index(info, dquot->dq_id, depth)] = in do_insert_tree()
342 struct dquot *dquot) in dq_insert_tree() argument
[all …]
Dquota_v2.c26 static void v2_mem2diskdqb(void *dp, struct dquot *dquot);
27 static void v2_disk2memdqb(struct dquot *dquot, void *dp);
28 static int v2_is_id(void *dp, struct dquot *dquot);
137 static void v2_disk2memdqb(struct dquot *dquot, void *dp) in v2_disk2memdqb() argument
140 struct mem_dqblk *m = &dquot->dq_dqb; in v2_disk2memdqb()
157 static void v2_mem2diskdqb(void *dp, struct dquot *dquot) in v2_mem2diskdqb() argument
160 struct mem_dqblk *m = &dquot->dq_dqb; in v2_mem2diskdqb()
162 sb_dqinfo(dquot->dq_sb, dquot->dq_type)->dqi_priv; in v2_mem2diskdqb()
172 d->dqb_id = cpu_to_le32(dquot->dq_id); in v2_mem2diskdqb()
177 static int v2_is_id(void *dp, struct dquot *dquot) in v2_is_id() argument
[all …]
Dquota_v1.c55 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()
65dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, sizeof(struct v1_disk_dqblk), v… in v1_read_dqblk()
67 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); in v1_read_dqblk()
68 if (dquot->dq_dqb.dqb_bhardlimit == 0 && dquot->dq_dqb.dqb_bsoftlimit == 0 && in v1_read_dqblk()
69 dquot->dq_dqb.dqb_ihardlimit == 0 && dquot->dq_dqb.dqb_isoftlimit == 0) in v1_read_dqblk()
70 set_bit(DQ_FAKE_B, &dquot->dq_flags); in v1_read_dqblk()
76 static int v1_commit_dqblk(struct dquot *dquot) in v1_commit_dqblk() argument
78 short type = dquot->dq_type; in v1_commit_dqblk()
[all …]
DMakefile54 obj-$(CONFIG_QUOTA) += dquot.o
/fs/ocfs2/
Dquota_global.c32 static void ocfs2_global_disk2memdqb(struct dquot *dquot, void *dp) in ocfs2_global_disk2memdqb() argument
35 struct mem_dqblk *m = &dquot->dq_dqb; in ocfs2_global_disk2memdqb()
38 if (!test_bit(DQ_LASTSET_B + QIF_ILIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb()
42 if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb()
44 if (!test_bit(DQ_LASTSET_B + QIF_BLIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb()
48 if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb()
50 if (!test_bit(DQ_LASTSET_B + QIF_BTIME_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb()
52 if (!test_bit(DQ_LASTSET_B + QIF_ITIME_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb()
54 OCFS2_DQUOT(dquot)->dq_use_count = le32_to_cpu(d->dqb_use_count); in ocfs2_global_disk2memdqb()
57 static void ocfs2_global_mem2diskdqb(void *dp, struct dquot *dquot) in ocfs2_global_mem2diskdqb() argument
[all …]
Dquota.h28 struct dquot dq_dquot; /* Generic VFS dquot */
69 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) in OCFS2_DQUOT() argument
71 return container_of(dquot, struct ocfs2_dquot, dq_dquot); in OCFS2_DQUOT()
97 int ocfs2_global_read_dquot(struct dquot *dquot);
98 int __ocfs2_sync_dquot(struct dquot *dquot, int freeing);
99 static inline int ocfs2_sync_dquot(struct dquot *dquot) in ocfs2_sync_dquot() argument
101 return __ocfs2_sync_dquot(dquot, 0); in ocfs2_sync_dquot()
103 static inline int ocfs2_global_release_dquot(struct dquot *dquot) in ocfs2_global_release_dquot() argument
105 return __ocfs2_sync_dquot(dquot, 1); in ocfs2_global_release_dquot()
Dquota_local.c437 struct dquot *dquot; in ocfs2_recover_local_quota_file() local
473 dquot = dqget(sb, le64_to_cpu(dqblk->dqb_id), type); in ocfs2_recover_local_quota_file()
474 if (!dquot) { in ocfs2_recover_local_quota_file()
497 dquot->dq_dqb.dqb_curspace += spacechange; in ocfs2_recover_local_quota_file()
498 dquot->dq_dqb.dqb_curinodes += inodechange; in ocfs2_recover_local_quota_file()
503 status = ocfs2_global_release_dquot(dquot); in ocfs2_recover_local_quota_file()
527 dqput(dquot); in ocfs2_recover_local_quota_file()
856 static int ocfs2_local_write_dquot(struct dquot *dquot) in ocfs2_local_write_dquot() argument
858 struct super_block *sb = dquot->dq_sb; in ocfs2_local_write_dquot()
859 struct ocfs2_dquot *od = OCFS2_DQUOT(dquot); in ocfs2_local_write_dquot()
[all …]
/fs/reiserfs/
Dsuper.c634 static int reiserfs_write_dquot(struct dquot *);
635 static int reiserfs_acquire_dquot(struct dquot *);
636 static int reiserfs_release_dquot(struct dquot *);
637 static int reiserfs_mark_dquot_dirty(struct dquot *);
1951 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument
1956 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot()
1958 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot()
1959 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in reiserfs_write_dquot()
1962 ret = dquot_commit(dquot); in reiserfs_write_dquot()
1964 journal_end(&th, dquot->dq_sb, in reiserfs_write_dquot()
[all …]
/fs/ext3/
Dsuper.c712 static int ext3_write_dquot(struct dquot *dquot);
713 static int ext3_acquire_dquot(struct dquot *dquot);
714 static int ext3_release_dquot(struct dquot *dquot);
715 static int ext3_mark_dquot_dirty(struct dquot *dquot);
2712 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument
2714 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_type]; in dquot_to_inode()
2755 static int ext3_write_dquot(struct dquot *dquot) in ext3_write_dquot() argument
2761 inode = dquot_to_inode(dquot); in ext3_write_dquot()
2763 EXT3_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext3_write_dquot()
2766 ret = dquot_commit(dquot); in ext3_write_dquot()
[all …]
/fs/ext4/
Dsuper.c931 static int ext4_write_dquot(struct dquot *dquot);
932 static int ext4_acquire_dquot(struct dquot *dquot);
933 static int ext4_release_dquot(struct dquot *dquot);
934 static int ext4_mark_dquot_dirty(struct dquot *dquot);
3378 static inline struct inode *dquot_to_inode(struct dquot *dquot) in dquot_to_inode() argument
3380 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_type]; in dquot_to_inode()
3421 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument
3427 inode = dquot_to_inode(dquot); in ext4_write_dquot()
3429 EXT4_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); in ext4_write_dquot()
3432 ret = dquot_commit(dquot); in ext4_write_dquot()
[all …]