quota.c (d3b863248577504f6eecca2a464d6ddf86b71584) | quota.c (aaa3daed156ff3c6acb28c8b18028f8b57d6c91b) |
---|---|
1/* 2 * Quota code necessary even when VFS quota support is not compiled 3 * into the kernel. The interesting stuff is over in dquot.c, here 4 * we have symbols for initial quotactl(2) handling, the sysctl(2) 5 * variables, etc - things needed even when quota support disabled. 6 */ 7 8#include <linux/fs.h> --- 68 unchanged lines hidden (view full) --- 77 return FS_QUOTA_PDQ_ENFD; 78 } 79 return 0; 80} 81 82static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, 83 struct path *path) 84{ | 1/* 2 * Quota code necessary even when VFS quota support is not compiled 3 * into the kernel. The interesting stuff is over in dquot.c, here 4 * we have symbols for initial quotactl(2) handling, the sysctl(2) 5 * variables, etc - things needed even when quota support disabled. 6 */ 7 8#include <linux/fs.h> --- 68 unchanged lines hidden (view full) --- 77 return FS_QUOTA_PDQ_ENFD; 78 } 79 return 0; 80} 81 82static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, 83 struct path *path) 84{ |
85 if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_on_meta && 86 !sb->s_qcop->quota_enable) | 85 if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable) |
87 return -ENOSYS; | 86 return -ENOSYS; |
88 if (sb->s_qcop->quota_on_meta) 89 return sb->s_qcop->quota_on_meta(sb, type, id); | |
90 if (sb->s_qcop->quota_enable) 91 return sb->s_qcop->quota_enable(sb, qtype_enforce_flag(type)); 92 if (IS_ERR(path)) 93 return PTR_ERR(path); 94 return sb->s_qcop->quota_on(sb, type, id, path); 95} 96 97static int quota_quotaoff(struct super_block *sb, int type) --- 515 unchanged lines hidden --- | 87 if (sb->s_qcop->quota_enable) 88 return sb->s_qcop->quota_enable(sb, qtype_enforce_flag(type)); 89 if (IS_ERR(path)) 90 return PTR_ERR(path); 91 return sb->s_qcop->quota_on(sb, type, id, path); 92} 93 94static int quota_quotaoff(struct super_block *sb, int type) --- 515 unchanged lines hidden --- |