[NETFILTER]: nf_conntrack: mark helpers __read_mostly
authorPatrick McHardy <kaber@trash.net>
Sun, 8 Jul 2007 05:37:03 +0000 (22:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:18:14 +0000 (22:18 -0700)
Most are __read_mostly already, this changes the remaining ones.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_ftp.c
net/netfilter/nf_conntrack_sane.c

index 198330b8ada4bd7fc5bd97d829f870095a46c205..cd9c2d00cc09e69782169b684db9b3dcd8cc6d8c 100644 (file)
@@ -518,8 +518,8 @@ out_update_nl:
        return ret;
 }
 
-static struct nf_conntrack_helper ftp[MAX_PORTS][2];
-static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")];
+static struct nf_conntrack_helper ftp[MAX_PORTS][2] __read_mostly;
+static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")] __read_mostly;
 
 /* don't make this __exit, since it's called from __init ! */
 static void nf_conntrack_ftp_fini(void)
index edd10df8aa0869bfc3a08820d8771054912a5d1e..627eda79d1545a516e7ab3d094a14400185993d4 100644 (file)
@@ -166,8 +166,8 @@ out:
        return ret;
 }
 
-static struct nf_conntrack_helper sane[MAX_PORTS][2];
-static char sane_names[MAX_PORTS][2][sizeof("sane-65535")];
+static struct nf_conntrack_helper sane[MAX_PORTS][2] __read_mostly;
+static char sane_names[MAX_PORTS][2][sizeof("sane-65535")] __read_mostly;
 
 /* don't make this __exit, since it's called from __init ! */
 static void nf_conntrack_sane_fini(void)