/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ |
H A D | dquot.c | 12 * Version: $Id: dquot.c,v 1.1.1.1 2007/08/03 18:53:05 Exp $ 39 * Write updated not to require dquot lock 91 * and also guards consistency of dquot->dq_dqb with inode->i_blocks, i_bytes. 98 * the life of the dquot structure and so needn't to be protected by a lock 105 * reference to dquot in other way (e.g. quotactl ops) it must be guarded by 108 * a) update/access to dquot pointers in inode is serialized 111 * Each dquot has its dq_lock mutex. Locked dquots might not be referenced 113 * Currently dquot is locked only when it is being read to memory (or space for 121 * i_mutex > dqonoff_sem > journal_lock > dqptr_sem > dquot->dq_lock > 133 /* SLAB cache for dquot structure 226 insert_dquot_hash(struct dquot *dquot) argument 232 remove_dquot_hash(struct dquot *dquot) argument 240 struct dquot *dquot; local 251 put_dquot_last(struct dquot *dquot) argument 257 remove_free_dquot(struct dquot *dquot) argument 265 put_inuse(struct dquot *dquot) argument 273 remove_inuse(struct dquot *dquot) argument 282 wait_on_dquot(struct dquot *dquot) argument 290 dquot_mark_dquot_dirty(struct dquot *dquot) argument 301 clear_dquot_dirty(struct dquot *dquot) argument 319 dquot_acquire(struct dquot *dquot) argument 354 dquot_commit(struct dquot *dquot) argument 383 dquot_release(struct dquot *dquot) argument 416 struct dquot *dquot, *tmp; local 464 struct dquot *dquot; local 512 struct dquot *dquot; local 546 dqput(struct dquot *dquot) argument 601 struct dquot *dquot; local 627 struct dquot *dquot, *empty = NODQUOT; local 714 dqput_blocks(struct dquot *dquot) argument 726 struct dquot *dquot = inode->i_dquot[type]; local 751 struct dquot *dquot; local 789 dquot_incr_inodes(struct dquot *dquot, unsigned long number) argument 794 dquot_incr_space(struct dquot *dquot, qsize_t number) argument 799 dquot_decr_inodes(struct dquot *dquot, unsigned long number) argument 810 dquot_decr_space(struct dquot *dquot, qsize_t number) argument 823 need_print_warning(struct dquot *dquot) argument 847 print_warning(struct dquot *dquot, const char warntype) argument 901 ignore_hardlimit(struct dquot *dquot) argument 910 check_idq(struct dquot *dquot, ulong inodes, char *warntype) argument 942 check_bdq(struct dquot *dquot, qsize_t space, int prealloc, char *warntype) argument 1583 do_get_dqblk(struct dquot *dquot, struct if_dqblk *di) argument 1602 struct dquot *dquot; local 1616 do_set_dqblk(struct dquot *dquot, struct if_dqblk *di) argument 1671 struct dquot *dquot; local [all...] |
H A D | quota_v1.c | 40 static int v1_read_dqblk(struct dquot *dquot) argument 42 int type = dquot->dq_type; 45 if (!sb_dqopt(dquot->dq_sb)->files[type]) 50 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, sizeof(struct v1_disk_dqblk), v1_dqoff(dquot->dq_id)); 52 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); 53 if (dquot->dq_dqb.dqb_bhardlimit == 0 && dquot 61 v1_commit_dqblk(struct dquot *dquot) argument [all...] |
H A D | quota_v2.c | 266 /* Find space for dquot */ 267 static uint find_free_dqentry(struct dquot *dquot, int *err) argument 269 struct super_block *sb = dquot->dq_sb; 270 struct mem_dqinfo *info = sb_dqopt(sb)->info+dquot->dq_type; 286 if ((*err = read_blk(sb, dquot->dq_type, blk, buf)) < 0) 290 blk = get_free_dqblk(sb, dquot->dq_type); 299 mark_info_dirty(sb, dquot->dq_type); 302 if ((*err = remove_free_dqentry(sb, dquot->dq_type, buf, blk)) < 0) { 317 if ((*err = write_blk(sb, dquot 330 do_insert_tree(struct dquot *dquot, uint *treeblk, int depth) argument 382 dq_insert_tree(struct dquot *dquot) argument 391 v2_write_dquot(struct dquot *dquot) argument 427 free_dqentry(struct dquot *dquot, uint blk) argument 481 remove_tree(struct dquot *dquot, uint *blk, int depth) argument 523 v2_delete_dquot(struct dquot *dquot) argument 533 find_block_dqentry(struct dquot *dquot, uint blk) argument 573 find_tree_dqentry(struct dquot *dquot, uint blk, int depth) argument 599 find_dqentry(struct dquot *dquot) argument 604 v2_read_dquot(struct dquot *dquot) argument 661 v2_release_dquot(struct dquot *dquot) argument [all...] |
H A D | Makefile | 51 obj-$(CONFIG_QUOTA) += dquot.o
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/linux/ |
H A D | quota.h | 207 #define DQ_MOD_B 0 /* dquot modified since read */ 211 #define DQ_READ_B 4 /* dquot was read into memory */ 212 #define DQ_ACTIVE_B 5 /* dquot is active (dquot_release not called) */ 214 struct dquot { struct 219 struct mutex dq_lock; /* dquot IO lock */ 221 wait_queue_head_t dq_wait_unused; /* Wait queue for dquot to become unused */ 224 loff_t dq_off; /* Offset of dquot on disk */ 230 #define NODQUOT (struct dquot *)NULL 241 int (*read_dqblk)(struct dquot *dquot); /* Rea [all...] |
H A D | quotaops.h | 34 extern int dquot_commit(struct dquot *dquot); 35 extern int dquot_acquire(struct dquot *dquot); 36 extern int dquot_release(struct dquot *dquot); 38 extern int dquot_mark_dquot_dirty(struct dquot *dquot); 61 * need a lot of space in journal for dquot structure allocation. */
|
H A D | fs.h | 553 struct dquot *i_dquot[MAXQUOTAS];
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/reiserfs/ |
H A D | super.c | 618 static int reiserfs_write_dquot(struct dquot *); 619 static int reiserfs_acquire_dquot(struct dquot *); 620 static int reiserfs_release_dquot(struct dquot *); 621 static int reiserfs_mark_dquot_dirty(struct dquot *); 1863 static int reiserfs_write_dquot(struct dquot *dquot) argument 1868 reiserfs_write_lock(dquot->dq_sb); 1870 journal_begin(&th, dquot->dq_sb, 1871 REISERFS_QUOTA_TRANS_BLOCKS(dquot->dq_sb)); 1874 ret = dquot_commit(dquot); 1885 reiserfs_acquire_dquot(struct dquot *dquot) argument 1907 reiserfs_release_dquot(struct dquot *dquot) argument 1929 reiserfs_mark_dquot_dirty(struct dquot *dquot) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ext3/ |
H A D | super.c | 601 static int ext3_write_dquot(struct dquot *dquot); 602 static int ext3_acquire_dquot(struct dquot *dquot); 603 static int ext3_release_dquot(struct dquot *dquot); 604 static int ext3_mark_dquot_dirty(struct dquot *dquot); 2469 static inline struct inode *dquot_to_inode(struct dquot *dquot) argument 2506 ext3_write_dquot(struct dquot *dquot) argument 2524 ext3_acquire_dquot(struct dquot *dquot) argument 2540 ext3_release_dquot(struct dquot *dquot) argument 2556 ext3_mark_dquot_dirty(struct dquot *dquot) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ext4/ |
H A D | super.c | 652 static int ext4_write_dquot(struct dquot *dquot); 653 static int ext4_acquire_dquot(struct dquot *dquot); 654 static int ext4_release_dquot(struct dquot *dquot); 655 static int ext4_mark_dquot_dirty(struct dquot *dquot); 2543 static inline struct inode *dquot_to_inode(struct dquot *dquot) argument 2580 ext4_write_dquot(struct dquot *dquot) argument 2598 ext4_acquire_dquot(struct dquot *dquot) argument 2614 ext4_release_dquot(struct dquot *dquot) argument 2630 ext4_mark_dquot_dirty(struct dquot *dquot) argument [all...] |