[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B199173.3050207@gmail.com>
Date: Fri, 04 Dec 2009 23:47:15 +0100
From: Emese Revfy <re.emese@...il.com>
To: matthew@....cx, torvalds@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 28/31] Constify struct super_operations for 2.6.32 v1
From: Emese Revfy <re.emese@...il.com>
Constify struct super_operations.
Signed-off-by: Emese Revfy <re.emese@...il.com>
---
include/linux/fs.h | 44 ++++++++++++++++++++++----------------------
1 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 2620a8c..4e23c70 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1553,30 +1553,30 @@ extern ssize_t vfs_writev(struct file *, const struct iovec __user *,
unsigned long, loff_t *);
struct super_operations {
- struct inode *(*alloc_inode)(struct super_block *sb);
- void (*destroy_inode)(struct inode *);
-
- void (*dirty_inode) (struct inode *);
- int (*write_inode) (struct inode *, int);
- void (*drop_inode) (struct inode *);
- void (*delete_inode) (struct inode *);
- void (*put_super) (struct super_block *);
- void (*write_super) (struct super_block *);
- int (*sync_fs)(struct super_block *sb, int wait);
- int (*freeze_fs) (struct super_block *);
- int (*unfreeze_fs) (struct super_block *);
- int (*statfs) (struct dentry *, struct kstatfs *);
- int (*remount_fs) (struct super_block *, int *, char *);
- void (*clear_inode) (struct inode *);
- void (*umount_begin) (struct super_block *);
-
- int (*show_options)(struct seq_file *, struct vfsmount *);
- int (*show_stats)(struct seq_file *, struct vfsmount *);
+ struct inode *(* const alloc_inode)(struct super_block *sb);
+ void (* const destroy_inode)(struct inode *);
+
+ void (* const dirty_inode) (struct inode *);
+ int (* const write_inode) (struct inode *, int);
+ void (* const drop_inode) (struct inode *);
+ void (* const delete_inode) (struct inode *);
+ void (* const put_super) (struct super_block *);
+ void (* const write_super) (struct super_block *);
+ int (* const sync_fs)(struct super_block *sb, int wait);
+ int (* const freeze_fs) (struct super_block *);
+ int (* const unfreeze_fs) (struct super_block *);
+ int (* const statfs) (struct dentry *, struct kstatfs *);
+ int (* const remount_fs) (struct super_block *, int *, char *);
+ void (* const clear_inode) (struct inode *);
+ void (* const umount_begin) (struct super_block *);
+
+ int (* const show_options)(struct seq_file *, struct vfsmount *);
+ int (* const show_stats)(struct seq_file *, struct vfsmount *);
#ifdef CONFIG_QUOTA
- ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
- ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
+ ssize_t (* const quota_read)(struct super_block *, int, char *, size_t, loff_t);
+ ssize_t (* const quota_write)(struct super_block *, int, const char *, size_t, loff_t);
#endif
- int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t);
+ int (* const bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t);
};
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists