diff options
author | Jan Kara <jack@suse.cz> | 2014-10-08 09:56:21 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-01-30 06:49:40 -0500 |
commit | 38e478c4489a845a5e8baf7849c286af5fed5b66 (patch) | |
tree | f001a8e58e17e32d3969ad3069621919ea4b9dcf /include/linux/quota.h | |
parent | 1cd6b7be92016538ea1f2a8e1f955e9b974d93ea (diff) |
quota: Split ->set_xstate callback into two
Split ->set_xstate callback into two callbacks - one for turning quotas
on (->quota_enable) and one for turning quotas off (->quota_disable). That
way we don't have to pass quotactl command into the callback which seems
cleaner.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r-- | include/linux/quota.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index 227f37f463c9..4da497b807c4 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -371,13 +371,14 @@ struct quotactl_ops { | |||
371 | int (*quota_on)(struct super_block *, int, int, struct path *); | 371 | int (*quota_on)(struct super_block *, int, int, struct path *); |
372 | int (*quota_on_meta)(struct super_block *, int, int); | 372 | int (*quota_on_meta)(struct super_block *, int, int); |
373 | int (*quota_off)(struct super_block *, int); | 373 | int (*quota_off)(struct super_block *, int); |
374 | int (*quota_enable)(struct super_block *, unsigned int); | ||
375 | int (*quota_disable)(struct super_block *, unsigned int); | ||
374 | int (*quota_sync)(struct super_block *, int); | 376 | int (*quota_sync)(struct super_block *, int); |
375 | int (*get_info)(struct super_block *, int, struct if_dqinfo *); | 377 | int (*get_info)(struct super_block *, int, struct if_dqinfo *); |
376 | int (*set_info)(struct super_block *, int, struct if_dqinfo *); | 378 | int (*set_info)(struct super_block *, int, struct if_dqinfo *); |
377 | int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *); | 379 | int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *); |
378 | int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *); | 380 | int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *); |
379 | int (*get_xstate)(struct super_block *, struct fs_quota_stat *); | 381 | int (*get_xstate)(struct super_block *, struct fs_quota_stat *); |
380 | int (*set_xstate)(struct super_block *, unsigned int, int); | ||
381 | int (*get_xstatev)(struct super_block *, struct fs_quota_statv *); | 382 | int (*get_xstatev)(struct super_block *, struct fs_quota_statv *); |
382 | int (*rm_xquota)(struct super_block *, unsigned int); | 383 | int (*rm_xquota)(struct super_block *, unsigned int); |
383 | }; | 384 | }; |