Home | History | Annotate | Download | only in quota

Lines Matching defs:fs

53 int quota_file_exists(ext2_filsys fs, int qtype, int fmt)
64 ret = ext2fs_lookup(fs, EXT2_ROOT_INO, qf_name, strlen(qf_name), 0,
75 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, int qtype)
79 inump = (qtype == USRQUOTA) ? &fs->super->s_usr_quota_inum :
80 &fs->super->s_grp_quota_inum;
85 ext2fs_mark_super_dirty(fs);
88 errcode_t quota_remove_inode(ext2_filsys fs, int qtype)
92 ext2fs_read_bitmaps(fs);
93 qf_ino = (qtype == USRQUOTA) ? fs->super->s_usr_quota_inum :
94 fs->super->s_grp_quota_inum;
95 quota_set_sb_inum(fs, 0, qtype);
97 if (qf_ino < EXT2_FIRST_INODE(fs->super))
98 quota_inode_truncate(fs, qf_ino);
100 ext2fs_mark_super_dirty(fs);
101 fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
102 ext2fs_write_bitmaps(fs);
125 ext2_filsys fs;
132 fs = qctx->fs;
139 ext2fs_read_bitmaps(fs);
149 retval = quota_file_create(h, fs, i, fmt);
162 quota_inode_truncate(fs, h->qh_qf.ino);
167 quota_set_sb_inum(fs, h->qh_qf.ino, i);
168 ext2fs_mark_super_dirty(fs);
169 ext2fs_mark_bb_dirty(fs);
170 fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
173 ext2fs_write_bitmaps(fs);
213 errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs, int qtype)
240 ctx->fs = fs;
366 ext2_filsys fs;
376 fs = qctx->fs;
377 ret = ext2fs_open_inode_scan(fs, 0, &scan);
394 ino >= EXT2_FIRST_INODE(fs->super))) {
395 space = ext2fs_inode_i_blocks(fs, &inode) << 9;
474 err = ext2fs_read_bitmaps(qctx->fs);
478 ext2fs_mark_bb_dirty(qctx->fs);
479 qctx->fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
480 ext2fs_write_bitmaps(qctx->fs);
502 err = quota_file_open(qh, qctx->fs, qf_ino, type, -1, 0);
530 ext2_filsys fs = qctx->fs;
539 qf_ino = qtype == USRQUOTA ? fs->super->s_usr_quota_inum :
540 fs->super->s_grp_quota_inum;
541 err = quota_file_open(&qh, fs, qf_ino, qtype, -1, 0);