Home
last modified time | relevance | path

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

12

/openbmc/linux/fs/quota/
H A Ddquot.c304 struct dquot *dquot; in find_dquot() local
405 struct dquot *dquot; in mark_all_dquot_dirty() local
686 struct dquot *dquot; in dquot_writeback_dquots() local
784 struct dquot *dquot; in dqcache_shrink_scan() local
819 struct dquot *dquot; in quota_release_workfn() local
905 struct dquot *dquot; in get_empty_dquot() local
1697 struct dquot *dquot; in __dquot_alloc_space() local
1767 struct dquot *dquot; in dquot_alloc_inode() local
1812 struct dquot *dquot; in dquot_claim_space_nodirty() local
1854 struct dquot *dquot; in dquot_reclaim_space_nodirty() local
[all …]
H A Dquota_tree.c254 struct dquot *dquot, int *err) in find_free_dqentry() argument
286 mark_info_dirty(dquot->dq_sb, dquot->dq_id.type); in find_free_dqentry()
391 struct dquot *dquot) in dq_insert_tree() argument
408 int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) in qtree_write_dquot() argument
419 if (!dquot->dq_off) { in qtree_write_dquot()
578 struct dquot *dquot, uint blk) in find_block_dqentry() argument
616 struct dquot *dquot, uint blk, int depth) in find_tree_dqentry() argument
650 struct dquot *dquot) in find_dqentry() argument
655 int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) in qtree_read_dquot() argument
679 dquot->dq_off = 0; in qtree_read_dquot()
[all …]
H 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);
327 static int v2_read_dquot(struct dquot *dquot) in v2_read_dquot() argument
335 dquot); in v2_read_dquot()
340 static int v2_write_dquot(struct dquot *dquot) in v2_write_dquot() argument
368 static int v2_release_dquot(struct dquot *dquot) in v2_release_dquot() argument
[all …]
H 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 …]
H A DMakefile2 obj-$(CONFIG_QUOTA) += dquot.o
/openbmc/linux/mm/
H A Dshmem_quota.c166 static int shmem_acquire_dquot(struct dquot *dquot) in shmem_acquire_dquot() argument
168 struct mem_dqinfo *info = sb_dqinfo(dquot->dq_sb, dquot->dq_id.type); in shmem_acquire_dquot()
177 mutex_lock(&dquot->dq_lock); in shmem_acquire_dquot()
235 mutex_unlock(&dquot->dq_lock); in shmem_acquire_dquot()
239 static bool shmem_is_empty_dquot(struct dquot *dquot) in shmem_is_empty_dquot() argument
267 static int shmem_release_dquot(struct dquot *dquot) in shmem_release_dquot() argument
269 struct mem_dqinfo *info = sb_dqinfo(dquot->dq_sb, dquot->dq_id.type); in shmem_release_dquot()
275 mutex_lock(&dquot->dq_lock); in shmem_release_dquot()
277 if (dquot_is_busy(dquot)) in shmem_release_dquot()
296 mutex_unlock(&dquot->dq_lock); in shmem_release_dquot()
[all …]
/openbmc/linux/fs/ocfs2/
H 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()
484 int __ocfs2_sync_dquot(struct dquot *dquot, int freeing) in __ocfs2_sync_dquot() argument
660 static int ocfs2_write_dquot(struct dquot *dquot) in ocfs2_write_dquot() argument
718 static int ocfs2_release_dquot(struct dquot *dquot) in ocfs2_release_dquot() argument
722 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in ocfs2_release_dquot()
792 static int ocfs2_acquire_dquot(struct dquot *dquot) in ocfs2_acquire_dquot() argument
908 static int ocfs2_mark_dquot_dirty(struct dquot *dquot) in ocfs2_mark_dquot_dirty() argument
998 if (!dquot) in ocfs2_alloc_dquot()
[all …]
H 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 …]
H A 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()
524 spin_lock(&dquot->dq_dqb_lock); in ocfs2_recover_local_quota_file()
561 dqput(dquot); in ocfs2_recover_local_quota_file()
890 int ocfs2_local_write_dquot(struct dquot *dquot) in ocfs2_local_write_dquot() argument
1213 int ocfs2_create_local_dquot(struct dquot *dquot) in ocfs2_create_local_dquot() argument
1216 int type = dquot->dq_id.type; in ocfs2_create_local_dquot()
1267 int ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot) in ocfs2_local_release_dquot() argument
[all …]
H A Dinode.h68 struct dquot __rcu *i_dquot[MAXQUOTAS];
/openbmc/linux/include/linux/
H 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);
H 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 …]
H 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 */
H A Dshmem_fs.h35 struct dquot __rcu *i_dquot[MAXQUOTAS];
/openbmc/linux/fs/reiserfs/
H A Dsuper.c2268 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument
2274 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot()
2281 ret = dquot_commit(dquot); in reiserfs_write_dquot()
2291 static int reiserfs_acquire_dquot(struct dquot *dquot) in reiserfs_acquire_dquot() argument
2297 reiserfs_write_lock(dquot->dq_sb); in reiserfs_acquire_dquot()
2304 ret = dquot_acquire(dquot); in reiserfs_acquire_dquot()
2314 static int reiserfs_release_dquot(struct dquot *dquot) in reiserfs_release_dquot() argument
2326 dquot_release(dquot); in reiserfs_release_dquot()
2329 ret = dquot_release(dquot); in reiserfs_release_dquot()
2339 static int reiserfs_mark_dquot_dirty(struct dquot *dquot) in reiserfs_mark_dquot_dirty() argument
[all …]
/openbmc/linux/fs/ext4/
H A Dsuper.c1582 static int ext4_write_dquot(struct dquot *dquot);
1583 static int ext4_acquire_dquot(struct dquot *dquot);
1584 static int ext4_release_dquot(struct dquot *dquot);
1585 static int ext4_mark_dquot_dirty(struct dquot *dquot);
6768 struct dquot *dquot; in ext4_statfs_project() local
6801 dqput(dquot); in ext4_statfs_project()
6851 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; in dquot_to_inode()
6854 static int ext4_write_dquot(struct dquot *dquot) in ext4_write_dquot() argument
6876 static int ext4_acquire_dquot(struct dquot *dquot) in ext4_acquire_dquot() argument
6896 static int ext4_release_dquot(struct dquot *dquot) in ext4_release_dquot() argument
[all …]
H A Dioctl.c712 struct dquot *transfer_to[MAXQUOTAS] = { }; in ext4_ioctl_setproject()
/openbmc/linux/fs/f2fs/
H A Dsuper.c1734 struct dquot *dquot; in f2fs_statfs_project() local
1739 dquot = dqget(sb, qid); in f2fs_statfs_project()
1740 if (IS_ERR(dquot)) in f2fs_statfs_project()
1741 return PTR_ERR(dquot); in f2fs_statfs_project()
1769 dqput(dquot); in f2fs_statfs_project()
3009 static int f2fs_dquot_commit(struct dquot *dquot) in f2fs_dquot_commit() argument
3015 ret = dquot_commit(dquot); in f2fs_dquot_commit()
3022 static int f2fs_dquot_acquire(struct dquot *dquot) in f2fs_dquot_acquire() argument
3028 ret = dquot_acquire(dquot); in f2fs_dquot_acquire()
3035 static int f2fs_dquot_release(struct dquot *dquot) in f2fs_dquot_release() argument
[all …]
/openbmc/linux/fs/jfs/
H A Djfs_incore.h95 struct dquot __rcu *i_dquot[MAXQUOTAS];
H A Dsuper.c827 static struct dquot __rcu **jfs_get_dquots(struct inode *inode) in jfs_get_dquots()
/openbmc/linux/Documentation/filesystems/
H 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.
H A Dxfs-online-fsck-design.rst3624 Add each file's resource usage to the incore dquot.
3626 3. Walk each incore dquot.
3628 incore dquot to a delayed write (delwri) list.
3643 2. For each dquot attached to the file:
3645 a. The dquot is locked.
3650 c. The dquot is unlocked.
3656 a. The dquot is locked again.
3659 the dquot.
3661 c. The dquot is unlocked.
3684 3. For each dquot in the system:
[all …]
/openbmc/linux/fs/ext2/
H A Dext2.h677 struct dquot __rcu *i_dquot[MAXQUOTAS];
H A Dsuper.c323 static struct dquot __rcu **ext2_get_dquots(struct inode *inode) in ext2_get_dquots()
/openbmc/u-boot/fs/ubifs/
H A Dubifs.h232 struct dquot *i_dquot[MAXQUOTAS];

12