summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorStephen Hemminger2010-05-14 02:53:14 +0200
committerAl Viro2010-05-22 00:31:18 +0200
commitbb4354538eb7b92f32cfedbad68c7be266c0b467 (patch)
tree5ecc43dabf5a0ecb511c74411272eba70415cdaf /mm/shmem.c
parentIntroduce freeze_super and thaw_super for the fsfreeze ioctl (diff)
downloadkernel-qcow2-linux-bb4354538eb7b92f32cfedbad68c7be266c0b467.tar.gz
kernel-qcow2-linux-bb4354538eb7b92f32cfedbad68c7be266c0b467.tar.xz
kernel-qcow2-linux-bb4354538eb7b92f32cfedbad68c7be266c0b467.zip
fs: xattr_handler table should be const
The entries in xattr handler table should be immutable (ie const) like other operation tables. Later patches convert common filesystems. Uncoverted filesystems will still work, but will generate a compiler warning. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index eef4ebea5158..717aa62ff127 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2071,14 +2071,14 @@ static int shmem_xattr_security_set(struct dentry *dentry, const char *name,
size, flags);
}
-static struct xattr_handler shmem_xattr_security_handler = {
+static const struct xattr_handler shmem_xattr_security_handler = {
.prefix = XATTR_SECURITY_PREFIX,
.list = shmem_xattr_security_list,
.get = shmem_xattr_security_get,
.set = shmem_xattr_security_set,
};
-static struct xattr_handler *shmem_xattr_handlers[] = {
+static const struct xattr_handler *shmem_xattr_handlers[] = {
&generic_acl_access_handler,
&generic_acl_default_handler,
&shmem_xattr_security_handler,