quota: Remove quota_on_meta callback
authorJan Kara <jack@suse.cz>
Wed, 8 Oct 2014 16:35:31 +0000 (18:35 +0200)
committerJan Kara <jack@suse.cz>
Fri, 30 Jan 2015 11:51:10 +0000 (12:51 +0100)
There are no more users for quota_on_meta callback. Just remove it.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota.c
include/linux/quota.h

index ce78a70a596fb4e78a85e752e8548dc746fa1720..d14a799c77850e6a1dc8ca762244f325721785a7 100644 (file)
@@ -82,11 +82,8 @@ unsigned int qtype_enforce_flag(int type)
 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id,
                         struct path *path)
 {
-       if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_on_meta &&
-           !sb->s_qcop->quota_enable)
+       if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable)
                return -ENOSYS;
-       if (sb->s_qcop->quota_on_meta)
-               return sb->s_qcop->quota_on_meta(sb, type, id);
        if (sb->s_qcop->quota_enable)
                return sb->s_qcop->quota_enable(sb, qtype_enforce_flag(type));
        if (IS_ERR(path))
index 4da497b807c455b83dea167f32f6f8cb327d5fc7..0938159d65c85d36cbb3090088f44ac5c5cbc460 100644 (file)
@@ -369,7 +369,6 @@ struct qc_dqblk {
 /* Operations handling requests from userspace */
 struct quotactl_ops {
        int (*quota_on)(struct super_block *, int, int, struct path *);
-       int (*quota_on_meta)(struct super_block *, int, int);
        int (*quota_off)(struct super_block *, int);
        int (*quota_enable)(struct super_block *, unsigned int);
        int (*quota_disable)(struct super_block *, unsigned int);