Home
last modified time | relevance | path

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

12

/linux/fs/quota/
A Ddquot.c303 struct dquot *dquot; in find_dquot() local
404 struct dquot *dquot; in mark_all_dquot_dirty() local
685 struct dquot *dquot; in dquot_writeback_dquots() local
783 struct dquot *dquot; in dqcache_shrink_scan() local
812 struct dquot *dquot; in quota_release_workfn() local
895 struct dquot *dquot; in get_empty_dquot() local
1686 struct dquot *dquot; in __dquot_alloc_space() local
1756 struct dquot *dquot; in dquot_alloc_inode() local
1801 struct dquot *dquot; in dquot_claim_space_nodirty() local
1842 struct dquot *dquot; in dquot_reclaim_space_nodirty() local
[all …]
A Dquota_tree.c260 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()
418 struct dquot *dquot) in dq_insert_tree() argument
439 int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) in qtree_write_dquot() argument
450 if (!dquot->dq_off) { in qtree_write_dquot()
623 struct dquot *dquot, uint blk) in find_block_dqentry() argument
661 struct dquot *dquot, uint *blks, int depth) in find_tree_dqentry() argument
708 struct dquot *dquot) in find_dqentry() argument
719 int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) in qtree_read_dquot() argument
743 dquot->dq_off = 0; in qtree_read_dquot()
[all …]
A Dquota_v2.c25 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);
336 static int v2_read_dquot(struct dquot *dquot) in v2_read_dquot() argument
346 dquot); in v2_read_dquot()
352 static int v2_write_dquot(struct dquot *dquot) in v2_write_dquot() argument
383 static int v2_release_dquot(struct dquot *dquot) in v2_release_dquot() argument
[all …]
A Dquota_v1.c56 static int v1_read_dqblk(struct dquot *dquot) in v1_read_dqblk() argument
58 int type = dquot->dq_id.type; in v1_read_dqblk()
67 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&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()
76 set_bit(DQ_FAKE_B, &dquot->dq_flags); in v1_read_dqblk()
82 static int v1_commit_dqblk(struct dquot *dquot) in v1_commit_dqblk() argument
84 short type = dquot->dq_id.type; in v1_commit_dqblk()
[all …]
A DMakefile2 obj-$(CONFIG_QUOTA) += dquot.o
/linux/fs/ocfs2/
A Dquota_global.c71 static void ocfs2_global_disk2memdqb(struct dquot *dquot, void *dp) in ocfs2_global_disk2memdqb() argument
114 static int ocfs2_global_is_id(void *dp, struct dquot *dquot) in ocfs2_global_is_id() argument
118 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in ocfs2_global_is_id()
490 int __ocfs2_sync_dquot(struct dquot *dquot, int freeing) in __ocfs2_sync_dquot() argument
669 static int ocfs2_write_dquot(struct dquot *dquot) in ocfs2_write_dquot() argument
730 static int ocfs2_release_dquot(struct dquot *dquot) in ocfs2_release_dquot() argument
734 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in ocfs2_release_dquot()
804 static int ocfs2_acquire_dquot(struct dquot *dquot) in ocfs2_acquire_dquot() argument
920 static int ocfs2_mark_dquot_dirty(struct dquot *dquot) in ocfs2_mark_dquot_dirty() argument
1013 if (!dquot) in ocfs2_alloc_dquot()
[all …]
A Dquota.h28 struct dquot dq_dquot; /* Generic VFS dquot */
72 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) in OCFS2_DQUOT() argument
100 int ocfs2_global_read_dquot(struct dquot *dquot);
101 int __ocfs2_sync_dquot(struct dquot *dquot, int freeing);
102 static inline int ocfs2_sync_dquot(struct dquot *dquot) in ocfs2_sync_dquot() argument
104 return __ocfs2_sync_dquot(dquot, 0); in ocfs2_sync_dquot()
106 static inline int ocfs2_global_release_dquot(struct dquot *dquot) in ocfs2_global_release_dquot() argument
108 return __ocfs2_sync_dquot(dquot, 1); in ocfs2_global_release_dquot()
116 int ocfs2_create_local_dquot(struct dquot *dquot);
117 int ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot);
[all …]
A Dquota_local.c466 struct dquot *dquot; in ocfs2_recover_local_quota_file() local
499 dquot = dqget(sb, in ocfs2_recover_local_quota_file()
502 if (IS_ERR(dquot)) { in ocfs2_recover_local_quota_file()
503 status = PTR_ERR(dquot); in ocfs2_recover_local_quota_file()
526 spin_lock(&dquot->dq_dqb_lock); in ocfs2_recover_local_quota_file()
564 dqput(dquot); in ocfs2_recover_local_quota_file()
897 int ocfs2_local_write_dquot(struct dquot *dquot) in ocfs2_local_write_dquot() argument
1220 int ocfs2_create_local_dquot(struct dquot *dquot) in ocfs2_create_local_dquot() argument
1223 int type = dquot->dq_id.type; in ocfs2_create_local_dquot()
1278 int ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot) in ocfs2_local_release_dquot() argument
[all …]
A Dinode.h68 struct dquot __rcu *i_dquot[MAXQUOTAS];
/linux/mm/
A Dshmem_quota.c164 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()
175 mutex_lock(&dquot->dq_lock); in shmem_acquire_dquot()
233 mutex_unlock(&dquot->dq_lock); in shmem_acquire_dquot()
237 static bool shmem_is_empty_dquot(struct dquot *dquot) in shmem_is_empty_dquot() argument
265 static int shmem_release_dquot(struct dquot *dquot) in shmem_release_dquot() argument
267 struct mem_dqinfo *info = sb_dqinfo(dquot->dq_sb, dquot->dq_id.type); in shmem_release_dquot()
273 mutex_lock(&dquot->dq_lock); in shmem_release_dquot()
275 if (dquot_is_busy(dquot)) in shmem_release_dquot()
294 mutex_unlock(&dquot->dq_lock); in shmem_release_dquot()
[all …]
/linux/include/linux/
A Ddqblk_qtree.h18 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);
A Dquotaops.h47 static inline struct dquot *dqgrab(struct dquot *dquot) in dqgrab() argument
52 atomic_inc(&dquot->dq_count); in dqgrab()
53 return dquot; in dqgrab()
56 static inline bool dquot_is_busy(struct dquot *dquot) in dquot_is_busy() argument
65 void dqput(struct dquot *dquot);
67 int (*fn)(struct dquot *dquot, unsigned long priv),
70 void dquot_destroy(struct dquot *dquot);
89 int dquot_commit(struct dquot *dquot);
90 int dquot_acquire(struct dquot *dquot);
91 int dquot_release(struct dquot *dquot);
[all …]
A Dquota.h296 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 */
A Dshmem_fs.h40 struct dquot __rcu *i_dquot[MAXQUOTAS];
/linux/fs/reiserfs/
A Dsuper.c2267 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument
2273 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot()
2280 ret = dquot_commit(dquot); in reiserfs_write_dquot()
2290 static int reiserfs_acquire_dquot(struct dquot *dquot) in reiserfs_acquire_dquot() argument
2296 reiserfs_write_lock(dquot->dq_sb); in reiserfs_acquire_dquot()
2303 ret = dquot_acquire(dquot); in reiserfs_acquire_dquot()
2313 static int reiserfs_release_dquot(struct dquot *dquot) in reiserfs_release_dquot() argument
2325 dquot_release(dquot); in reiserfs_release_dquot()
2328 ret = dquot_release(dquot); in reiserfs_release_dquot()
2338 static int reiserfs_mark_dquot_dirty(struct dquot *dquot) in reiserfs_mark_dquot_dirty() argument
[all …]
/linux/fs/ext4/
A Dsuper.c1577 static int ext4_write_dquot(struct dquot *dquot);
1578 static int ext4_acquire_dquot(struct dquot *dquot);
1579 static int ext4_release_dquot(struct dquot *dquot);
1580 static int ext4_mark_dquot_dirty(struct dquot *dquot);
6758 struct dquot *dquot; in ext4_statfs_project() local
6791 dqput(dquot); in ext4_statfs_project()
6841 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; in dquot_to_inode()
6844 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument
6866 static int ext4_acquire_dquot(struct dquot *dquot) in ext4_acquire_dquot() argument
6886 static int ext4_release_dquot(struct dquot *dquot) in ext4_release_dquot() argument
[all …]
A Dioctl.c721 struct dquot *transfer_to[MAXQUOTAS] = { }; in ext4_ioctl_setproject()
/linux/fs/f2fs/
A Dsuper.c1750 struct dquot *dquot; in f2fs_statfs_project() local
1755 dquot = dqget(sb, qid); in f2fs_statfs_project()
1756 if (IS_ERR(dquot)) in f2fs_statfs_project()
1757 return PTR_ERR(dquot); in f2fs_statfs_project()
1785 dqput(dquot); in f2fs_statfs_project()
3047 static int f2fs_dquot_commit(struct dquot *dquot) in f2fs_dquot_commit() argument
3053 ret = dquot_commit(dquot); in f2fs_dquot_commit()
3060 static int f2fs_dquot_acquire(struct dquot *dquot) in f2fs_dquot_acquire() argument
3066 ret = dquot_acquire(dquot); in f2fs_dquot_acquire()
3073 static int f2fs_dquot_release(struct dquot *dquot) in f2fs_dquot_release() argument
[all …]
/linux/fs/jfs/
A Djfs_incore.h95 struct dquot __rcu *i_dquot[MAXQUOTAS];
A Dsuper.c827 static struct dquot __rcu **jfs_get_dquots(struct inode *inode) in jfs_get_dquots()
/linux/Documentation/filesystems/
A Dlocking.rst610 int (*write_dquot) (struct dquot *);
611 int (*acquire_dquot) (struct dquot *);
612 int (*release_dquot) (struct dquot *);
613 int (*mark_dirty) (struct dquot *);
634 More details about quota locking can be found in fs/dquot.c.
/linux/fs/bcachefs/
A Dquota.c145 struct mem_dqinfo *info = &sb_dqopt(dquot->dq_sb)->info[dquot->dq_id.type]; in ignore_hardlimit()
/linux/fs/ext2/
A Dext2.h677 struct dquot __rcu *i_dquot[MAXQUOTAS];
A Dsuper.c322 static struct dquot __rcu **ext2_get_dquots(struct inode *inode) in ext2_get_dquots()
/linux/Documentation/filesystems/xfs/
A Dxfs-online-fsck-design.rst3617 Add each file's resource usage to the incore dquot.
3619 3. Walk each incore dquot.
3621 incore dquot to a delayed write (delwri) list.
3636 2. For each dquot attached to the file:
3638 a. The dquot is locked.
3643 c. The dquot is unlocked.
3649 a. The dquot is locked again.
3652 the dquot.
3654 c. The dquot is unlocked.
3677 3. For each dquot in the system:
[all …]

Completed in 85 milliseconds

12