/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/ |
H A D | dqblk_qtree.h | 17 struct dquot; 21 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); /* Convert given entry from in memory format to disk one */ 22 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); /* Convert given entry from disk format to in memory one */ 23 int (*is_id)(void *disk, struct dquot *dquot); /* Is this structure for given id? */ 40 int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 41 int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquo [all...] |
H A D | quotaops.h | 46 struct dquot *dqget(struct super_block *sb, unsigned int id, int type); 47 void dqput(struct dquot *dquot); 49 int (*fn)(struct dquot *dquot, unsigned long priv), 51 struct dquot *dquot_alloc(struct super_block *sb, int type); 52 void dquot_destroy(struct dquot *dquot); 70 int dquot_commit(struct dquot *dquot); [all...] |
H A D | quota.h | 272 #define DQ_MOD_B 0 /* dquot modified since read */ 276 #define DQ_READ_B 4 /* dquot was read into memory */ 277 #define DQ_ACTIVE_B 5 /* dquot is active (dquot_release not called) */ 281 * and the quota format handling dquot can\ 284 struct dquot { struct 289 struct mutex dq_lock; /* dquot IO lock */ 291 wait_queue_head_t dq_wait_unused; /* Wait queue for dquot to become unused */ 294 loff_t dq_off; /* Offset of dquot on disk */ 306 int (*read_dqblk)(struct dquot *dquot); /* Rea [all...] |
H A D | fs.h | 748 struct dquot *i_dquot[MAXQUOTAS];
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/ |
H A D | quota.h | 24 struct dquot dq_dquot; /* Generic VFS dquot */ 27 struct ocfs2_quota_chunk *dq_chunk; /* Chunk dquot is in */ 66 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) argument 68 return container_of(dquot, struct ocfs2_dquot, dq_dquot); 94 int ocfs2_global_read_dquot(struct dquot *dquot); 95 int __ocfs2_sync_dquot(struct dquot *dquot, in 96 ocfs2_sync_dquot(struct dquot *dquot) argument 100 ocfs2_global_release_dquot(struct dquot *dquot) argument [all...] |
H A D | quota_global.c | 35 * by dqio_mutex or dquot->dq_lock. 49 * Acquire dquot for the first time: 55 * Release last reference to dquot: 70 static void ocfs2_global_disk2memdqb(struct dquot *dquot, void *dp) argument 73 struct mem_dqblk *m = &dquot->dq_dqb; 76 if (!test_bit(DQ_LASTSET_B + QIF_ILIMITS_B, &dquot->dq_flags)) { 80 if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) 82 if (!test_bit(DQ_LASTSET_B + QIF_BLIMITS_B, &dquot->dq_flags)) { 86 if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot 95 ocfs2_global_mem2diskdqb(void *dp, struct dquot *dquot) argument 113 ocfs2_global_is_id(void *dp, struct dquot *dquot) argument 480 __ocfs2_sync_dquot(struct dquot *dquot, int freeing) argument 591 ocfs2_sync_dquot_helper(struct dquot *dquot, unsigned long type) argument 646 ocfs2_write_dquot(struct dquot *dquot) argument 683 ocfs2_release_dquot(struct dquot *dquot) argument 736 ocfs2_acquire_dquot(struct dquot *dquot) argument 818 ocfs2_mark_dquot_dirty(struct dquot *dquot) argument 904 struct ocfs2_dquot *dquot = local 912 ocfs2_destroy_dquot(struct dquot *dquot) argument [all...] |
H A D | quota_local.c | 69 /* Offset of the dquot structure in the quota file */ 470 struct dquot *dquot; local 502 dquot = dqget(sb, le64_to_cpu(dqblk->dqb_id), type); 503 if (!dquot) { 532 dquot->dq_dqb.dqb_curspace += spacechange; 533 dquot->dq_dqb.dqb_curinodes += inodechange; 538 status = ocfs2_global_release_dquot(dquot); 563 dqput(dquot); 885 mlog(0, "Writing local dquot 891 ocfs2_local_write_dquot(struct dquot *dquot) argument 1214 ocfs2_create_local_dquot(struct dquot *dquot) argument 1268 ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot) argument [all...] |
H A D | file.c | 1125 struct dquot *transfer_to[MAXQUOTAS] = { };
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/quota/ |
H A D | dquot.c | 37 * Write updated not to require dquot lock 87 * also guards consistency of dquot->dq_dqb with inode->i_blocks, i_bytes. 97 * the life of the dquot structure and so needn't to be protected by a lock 109 * Each dquot has its dq_lock mutex. Locked dquots might not be referenced 111 * Currently dquot is locked only when it is being read to memory (or space for 119 * i_mutex > dqonoff_sem > journal_lock > dqptr_sem > dquot->dq_lock > 125 * filesystems usually want to do some IO on dquot from ->mark_dirty which is 157 /* SLAB cache for dquot structures */ 222 * The quota code uses three lists for dquot management: the inuse_list, 223 * free_dquots, and dquot_hash[] array. A single dquot structur 263 insert_dquot_hash(struct dquot *dquot) argument 270 remove_dquot_hash(struct dquot *dquot) argument 279 struct dquot *dquot; local 291 put_dquot_last(struct dquot *dquot) argument 297 remove_free_dquot(struct dquot *dquot) argument 305 put_inuse(struct dquot *dquot) argument 313 remove_inuse(struct dquot *dquot) argument 322 wait_on_dquot(struct dquot *dquot) argument 328 dquot_dirty(struct dquot *dquot) argument 333 mark_dquot_dirty(struct dquot *dquot) argument 339 dquot_mark_dquot_dirty(struct dquot *dquot) argument 359 mark_all_dquot_dirty(struct dquot * const *dquot) argument 374 dqput_all(struct dquot **dquot) argument 383 clear_dquot_dirty(struct dquot *dquot) argument 401 dquot_acquire(struct dquot *dquot) argument 439 dquot_commit(struct dquot *dquot) argument 471 dquot_release(struct dquot *dquot) argument 499 dquot_destroy(struct dquot *dquot) argument 505 do_destroy_dquot(struct dquot *dquot) argument 518 struct dquot *dquot, *tmp; local 564 dquot_scan_active(struct super_block *sb, int (*fn)(struct dquot *dquot, unsigned long priv), unsigned long priv) argument 568 struct dquot *dquot, *old_dquot = NULL; local 602 struct dquot *dquot; local 677 struct dquot *dquot; local 716 dqput(struct dquot *dquot) argument 786 struct dquot *dquot; local 816 struct dquot *dquot = NULL, *empty = NULL; local 941 dqput_blocks(struct dquot *dquot) argument 956 struct dquot *dquot = inode->i_dquot[type]; local 988 struct dquot *dquot; local 1043 dquot_incr_inodes(struct dquot *dquot, qsize_t number) argument 1048 dquot_incr_space(struct dquot *dquot, qsize_t number) argument 1053 dquot_resv_space(struct dquot *dquot, qsize_t number) argument 1061 dquot_claim_reserved_space(struct dquot *dquot, qsize_t number) argument 1072 dquot_free_reserved_space(struct dquot *dquot, qsize_t number) argument 1082 dquot_decr_inodes(struct dquot *dquot, qsize_t number) argument 1094 dquot_decr_space(struct dquot *dquot, qsize_t number) argument 1106 warning_issued(struct dquot *dquot, const int warntype) argument 1121 need_print_warning(struct dquot *dquot) argument 1136 print_warning(struct dquot *dquot, const int warntype) argument 1204 ignore_hardlimit(struct dquot *dquot) argument 1214 check_idq(struct dquot *dquot, qsize_t inodes, char *warntype) argument 1251 check_bdq(struct dquot *dquot, qsize_t space, int prealloc, char *warntype) argument 1301 info_idq_free(struct dquot *dquot, qsize_t inodes) argument 1319 info_bdq_free(struct dquot *dquot, qsize_t space) argument 2301 do_get_dqblk(struct dquot *dquot, struct fs_disk_quota *di) argument 2326 struct dquot *dquot; local 2344 do_set_dqblk(struct dquot *dquot, struct fs_disk_quota *di) argument 2438 struct dquot *dquot; local [all...] |
H A D | quota_tree.c | 216 /* Find space for dquot */ 218 struct dquot *dquot, int *err) 247 mark_info_dirty(dquot->dq_sb, dquot->dq_type); 253 quota_error(dquot->dq_sb, "Can't remove block (%u) " 268 quota_error(dquot->dq_sb, "Data block full but it shouldn't"); 275 quota_error(dquot->dq_sb, "Can't write quota data block %u", 279 dquot->dq_off = (blk << info->dqi_blocksize_bits) + 290 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquo argument 217 find_free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, int *err) argument 347 dq_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot) argument 358 qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) argument 398 free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk) argument 459 remove_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blk, int depth) argument 506 qtree_delete_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) argument 517 find_block_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk) argument 554 find_tree_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk, int depth) argument 583 find_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot) argument 589 qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) argument 651 qtree_release_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) argument [all...] |
H A D | quota_v2.c | 26 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, voi 174 v2r0_disk2memdqb(struct dquot *dquot, void *dp) argument 194 v2r0_mem2diskdqb(void *dp, struct dquot *dquot) argument 214 v2r0_is_id(void *dp, struct dquot *dquot) argument 225 v2r1_disk2memdqb(struct dquot *dquot, void *dp) argument 245 v2r1_mem2diskdqb(void *dp, struct dquot *dquot) argument 265 v2r1_is_id(void *dp, struct dquot *dquot) argument 276 v2_read_dquot(struct dquot *dquot) argument 281 v2_write_dquot(struct dquot *dquot) argument 286 v2_release_dquot(struct dquot *dquot) argument [all...] |
H A D | quota_v1.c | 55 static int v1_read_dqblk(struct dquot *dquot) argument 57 int type = dquot->dq_type; 60 if (!sb_dqopt(dquot->dq_sb)->files[type]) 65 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, 66 sizeof(struct v1_disk_dqblk), v1_dqoff(dquot->dq_id)); 68 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); 69 if (dquot->dq_dqb.dqb_bhardlimit == 0 && 70 dquot 79 v1_commit_dqblk(struct dquot *dquot) argument [all...] |
H A D | Makefile | 1 obj-$(CONFIG_QUOTA) += dquot.o
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/reiserfs/ |
H A D | super.c | 624 static int reiserfs_write_dquot(struct dquot *); 625 static int reiserfs_acquire_dquot(struct dquot *); 626 static int reiserfs_release_dquot(struct dquot *); 627 static int reiserfs_mark_dquot_dirty(struct dquot *); 1932 static int reiserfs_write_dquot(struct dquot *dquot) argument 1937 reiserfs_write_lock(dquot->dq_sb); 1939 journal_begin(&th, dquot->dq_sb, 1940 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); 1943 ret = dquot_commit(dquot); 1954 reiserfs_acquire_dquot(struct dquot *dquot) argument 1976 reiserfs_release_dquot(struct dquot *dquot) argument 2001 reiserfs_mark_dquot_dirty(struct dquot *dquot) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext3/ |
H A D | super.c | 733 static int ext3_write_dquot(struct dquot *dquot); 734 static int ext3_acquire_dquot(struct dquot *dquot); 735 static int ext3_release_dquot(struct dquot *dquot); 736 static int ext3_mark_dquot_dirty(struct dquot *dquot); 2744 static inline struct inode *dquot_to_inode(struct dquot *dquot) argument 2749 ext3_write_dquot(struct dquot *dquot) argument 2767 ext3_acquire_dquot(struct dquot *dquot) argument 2783 ext3_release_dquot(struct dquot *dquot) argument 2802 ext3_mark_dquot_dirty(struct dquot *dquot) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext4/ |
H A D | super.c | 1122 static int ext4_write_dquot(struct dquot *dquot); 1123 static int ext4_acquire_dquot(struct dquot *dquot); 1124 static int ext4_release_dquot(struct dquot *dquot); 1125 static int ext4_mark_dquot_dirty(struct dquot *dquot); 3970 static inline struct inode *dquot_to_inode(struct dquot *dquot) argument 3975 ext4_write_dquot(struct dquot *dquot) argument 3993 ext4_acquire_dquot(struct dquot *dquot) argument 4009 ext4_release_dquot(struct dquot *dquot) argument 4028 ext4_mark_dquot_dirty(struct dquot *dquot) argument [all...] |