diff options
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/netlink.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/quota/netlink.c b/fs/quota/netlink.c index a5b5eddf6603..72d29177998e 100644 --- a/fs/quota/netlink.c +++ b/fs/quota/netlink.c | |||
@@ -9,6 +9,10 @@ | |||
9 | #include <net/netlink.h> | 9 | #include <net/netlink.h> |
10 | #include <net/genetlink.h> | 10 | #include <net/genetlink.h> |
11 | 11 | ||
12 | static const struct genl_multicast_group quota_mcgrps[] = { | ||
13 | { .name = "events", }, | ||
14 | }; | ||
15 | |||
12 | /* Netlink family structure for quota */ | 16 | /* Netlink family structure for quota */ |
13 | static struct genl_family quota_genl_family = { | 17 | static struct genl_family quota_genl_family = { |
14 | /* | 18 | /* |
@@ -22,10 +26,8 @@ static struct genl_family quota_genl_family = { | |||
22 | .name = "VFS_DQUOT", | 26 | .name = "VFS_DQUOT", |
23 | .version = 1, | 27 | .version = 1, |
24 | .maxattr = QUOTA_NL_A_MAX, | 28 | .maxattr = QUOTA_NL_A_MAX, |
25 | }; | 29 | .mcgrps = quota_mcgrps, |
26 | 30 | .n_mcgrps = ARRAY_SIZE(quota_mcgrps), | |
27 | static struct genl_multicast_group quota_mcgrp = { | ||
28 | .name = "events", | ||
29 | }; | 31 | }; |
30 | 32 | ||
31 | /** | 33 | /** |
@@ -88,7 +90,7 @@ void quota_send_warning(struct kqid qid, dev_t dev, | |||
88 | goto attr_err_out; | 90 | goto attr_err_out; |
89 | genlmsg_end(skb, msg_head); | 91 | genlmsg_end(skb, msg_head); |
90 | 92 | ||
91 | genlmsg_multicast("a_genl_family, skb, 0, quota_mcgrp.id, GFP_NOFS); | 93 | genlmsg_multicast("a_genl_family, skb, 0, 0, GFP_NOFS); |
92 | return; | 94 | return; |
93 | attr_err_out: | 95 | attr_err_out: |
94 | printk(KERN_ERR "VFS: Not enough space to compose quota message!\n"); | 96 | printk(KERN_ERR "VFS: Not enough space to compose quota message!\n"); |
@@ -102,9 +104,6 @@ static int __init quota_init(void) | |||
102 | if (genl_register_family("a_genl_family) != 0) | 104 | if (genl_register_family("a_genl_family) != 0) |
103 | printk(KERN_ERR | 105 | printk(KERN_ERR |
104 | "VFS: Failed to create quota netlink interface.\n"); | 106 | "VFS: Failed to create quota netlink interface.\n"); |
105 | if (genl_register_mc_group("a_genl_family, "a_mcgrp)) | ||
106 | printk(KERN_ERR | ||
107 | "VFS: Failed to register quota mcast group.\n"); | ||
108 | return 0; | 107 | return 0; |
109 | }; | 108 | }; |
110 | 109 | ||