STATIC int linvfs_getxstate( struct super_block *sb, struct fs_quota_stat *fqs) { struct vfs *vfsp = LINVFS_GET_VFS(sb); int error; VFS_QUOTACTL(vfsp, Q_XGETQSTAT, 0, (caddr_t)fqs, error); return -error; }
static int unionfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg) { struct unionfs_mount *ump; ump = MOUNTTOUNIONFSMOUNT(mp); /* * Writing is always performed to upper vnode. */ return (VFS_QUOTACTL(ump->um_uppervp->v_mount, cmd, uid, arg)); }
STATIC int linvfs_setxstate( struct super_block *sb, unsigned int flags, int op) { struct vfs *vfsp = LINVFS_GET_VFS(sb); int error; VFS_QUOTACTL(vfsp, op, 0, (caddr_t)&flags, error); return -error; }
STATIC int linvfs_setxquota( struct super_block *sb, int type, qid_t id, struct fs_disk_quota *fdq) { struct vfs *vfsp = LINVFS_GET_VFS(sb); int error, setmode; setmode = (type == GRPQUOTA) ? Q_XSETGQLIM : Q_XSETQLIM; VFS_QUOTACTL(vfsp, setmode, id, (caddr_t)fdq, error); return -error; }
int layerfs_quotactl(struct mount *mp, struct quotactl_args *args) { return VFS_QUOTACTL(MOUNTTOLAYERMOUNT(mp)->layerm_vfs, args); }