Commit c5ef1c42 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds

[PATCH] mark struct inode_operations const 3

Many struct inode_operations in the kernel can be "const".  Marking them const
moves these to the .rodata section, which avoids false sharing with potential
dirty data.  In addition it'll catch accidental writes at compile time to
these shared resources.
Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 92e1d5be
...@@ -93,7 +93,7 @@ struct pid_entry { ...@@ -93,7 +93,7 @@ struct pid_entry {
int len; int len;
char *name; char *name;
mode_t mode; mode_t mode;
struct inode_operations *iop; const struct inode_operations *iop;
const struct file_operations *fop; const struct file_operations *fop;
union proc_op op; union proc_op op;
}; };
...@@ -352,7 +352,7 @@ static int proc_setattr(struct dentry *dentry, struct iattr *attr) ...@@ -352,7 +352,7 @@ static int proc_setattr(struct dentry *dentry, struct iattr *attr)
return error; return error;
} }
static struct inode_operations proc_def_inode_operations = { static const struct inode_operations proc_def_inode_operations = {
.setattr = proc_setattr, .setattr = proc_setattr,
}; };
...@@ -980,7 +980,7 @@ static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int b ...@@ -980,7 +980,7 @@ static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int b
return error; return error;
} }
static struct inode_operations proc_pid_link_inode_operations = { static const struct inode_operations proc_pid_link_inode_operations = {
.readlink = proc_pid_readlink, .readlink = proc_pid_readlink,
.follow_link = proc_pid_follow_link, .follow_link = proc_pid_follow_link,
.setattr = proc_setattr, .setattr = proc_setattr,
...@@ -1416,7 +1416,7 @@ static const struct file_operations proc_fd_operations = { ...@@ -1416,7 +1416,7 @@ static const struct file_operations proc_fd_operations = {
/* /*
* proc directories can do almost nothing.. * proc directories can do almost nothing..
*/ */
static struct inode_operations proc_fd_inode_operations = { static const struct inode_operations proc_fd_inode_operations = {
.lookup = proc_lookupfd, .lookup = proc_lookupfd,
.setattr = proc_setattr, .setattr = proc_setattr,
}; };
...@@ -1656,7 +1656,7 @@ static struct dentry *proc_attr_dir_lookup(struct inode *dir, ...@@ -1656,7 +1656,7 @@ static struct dentry *proc_attr_dir_lookup(struct inode *dir,
attr_dir_stuff, ARRAY_SIZE(attr_dir_stuff)); attr_dir_stuff, ARRAY_SIZE(attr_dir_stuff));
} }
static struct inode_operations proc_attr_dir_inode_operations = { static const struct inode_operations proc_attr_dir_inode_operations = {
.lookup = proc_attr_dir_lookup, .lookup = proc_attr_dir_lookup,
.getattr = pid_getattr, .getattr = pid_getattr,
.setattr = proc_setattr, .setattr = proc_setattr,
...@@ -1682,7 +1682,7 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -1682,7 +1682,7 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd)
return ERR_PTR(vfs_follow_link(nd,tmp)); return ERR_PTR(vfs_follow_link(nd,tmp));
} }
static struct inode_operations proc_self_inode_operations = { static const struct inode_operations proc_self_inode_operations = {
.readlink = proc_self_readlink, .readlink = proc_self_readlink,
.follow_link = proc_self_follow_link, .follow_link = proc_self_follow_link,
}; };
...@@ -1835,7 +1835,7 @@ static int proc_pid_io_accounting(struct task_struct *task, char *buffer) ...@@ -1835,7 +1835,7 @@ static int proc_pid_io_accounting(struct task_struct *task, char *buffer)
* Thread groups * Thread groups
*/ */
static const struct file_operations proc_task_operations; static const struct file_operations proc_task_operations;
static struct inode_operations proc_task_inode_operations; static const struct inode_operations proc_task_inode_operations;
static struct pid_entry tgid_base_stuff[] = { static struct pid_entry tgid_base_stuff[] = {
DIR("task", S_IRUGO|S_IXUGO, task), DIR("task", S_IRUGO|S_IXUGO, task),
...@@ -1904,7 +1904,7 @@ static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *de ...@@ -1904,7 +1904,7 @@ static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *de
tgid_base_stuff, ARRAY_SIZE(tgid_base_stuff)); tgid_base_stuff, ARRAY_SIZE(tgid_base_stuff));
} }
static struct inode_operations proc_tgid_base_inode_operations = { static const struct inode_operations proc_tgid_base_inode_operations = {
.lookup = proc_tgid_base_lookup, .lookup = proc_tgid_base_lookup,
.getattr = pid_getattr, .getattr = pid_getattr,
.setattr = proc_setattr, .setattr = proc_setattr,
...@@ -2182,7 +2182,7 @@ static const struct file_operations proc_tid_base_operations = { ...@@ -2182,7 +2182,7 @@ static const struct file_operations proc_tid_base_operations = {
.readdir = proc_tid_base_readdir, .readdir = proc_tid_base_readdir,
}; };
static struct inode_operations proc_tid_base_inode_operations = { static const struct inode_operations proc_tid_base_inode_operations = {
.lookup = proc_tid_base_lookup, .lookup = proc_tid_base_lookup,
.getattr = pid_getattr, .getattr = pid_getattr,
.setattr = proc_setattr, .setattr = proc_setattr,
...@@ -2408,7 +2408,7 @@ static int proc_task_getattr(struct vfsmount *mnt, struct dentry *dentry, struct ...@@ -2408,7 +2408,7 @@ static int proc_task_getattr(struct vfsmount *mnt, struct dentry *dentry, struct
return 0; return 0;
} }
static struct inode_operations proc_task_inode_operations = { static const struct inode_operations proc_task_inode_operations = {
.lookup = proc_task_lookup, .lookup = proc_task_lookup,
.getattr = proc_task_getattr, .getattr = proc_task_getattr,
.setattr = proc_setattr, .setattr = proc_setattr,
......
...@@ -265,7 +265,7 @@ static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry, ...@@ -265,7 +265,7 @@ static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry,
return 0; return 0;
} }
static struct inode_operations proc_file_inode_operations = { static const struct inode_operations proc_file_inode_operations = {
.setattr = proc_notify_change, .setattr = proc_notify_change,
}; };
...@@ -357,7 +357,7 @@ static void *proc_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -357,7 +357,7 @@ static void *proc_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
static struct inode_operations proc_link_inode_operations = { static const struct inode_operations proc_link_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = proc_follow_link, .follow_link = proc_follow_link,
}; };
...@@ -505,7 +505,7 @@ static const struct file_operations proc_dir_operations = { ...@@ -505,7 +505,7 @@ static const struct file_operations proc_dir_operations = {
/* /*
* proc directories can do almost nothing.. * proc directories can do almost nothing..
*/ */
static struct inode_operations proc_dir_inode_operations = { static const struct inode_operations proc_dir_inode_operations = {
.lookup = proc_lookup, .lookup = proc_lookup,
.getattr = proc_getattr, .getattr = proc_getattr,
.setattr = proc_notify_change, .setattr = proc_notify_change,
......
...@@ -144,7 +144,7 @@ static const struct file_operations proc_root_operations = { ...@@ -144,7 +144,7 @@ static const struct file_operations proc_root_operations = {
/* /*
* proc root can do almost nothing.. * proc root can do almost nothing..
*/ */
static struct inode_operations proc_root_inode_operations = { static const struct inode_operations proc_root_inode_operations = {
.lookup = proc_root_lookup, .lookup = proc_root_lookup,
.getattr = proc_root_getattr, .getattr = proc_root_getattr,
}; };
......
...@@ -87,7 +87,7 @@ const struct file_operations qnx4_dir_operations = ...@@ -87,7 +87,7 @@ const struct file_operations qnx4_dir_operations =
.fsync = file_fsync, .fsync = file_fsync,
}; };
struct inode_operations qnx4_dir_inode_operations = const struct inode_operations qnx4_dir_inode_operations =
{ {
.lookup = qnx4_lookup, .lookup = qnx4_lookup,
#ifdef CONFIG_QNX4FS_RW #ifdef CONFIG_QNX4FS_RW
......
...@@ -33,7 +33,7 @@ const struct file_operations qnx4_file_operations = ...@@ -33,7 +33,7 @@ const struct file_operations qnx4_file_operations =
#endif #endif
}; };
struct inode_operations qnx4_file_inode_operations = const struct inode_operations qnx4_file_inode_operations =
{ {
#ifdef CONFIG_QNX4FS_RW #ifdef CONFIG_QNX4FS_RW
.truncate = qnx4_truncate, .truncate = qnx4_truncate,
......
...@@ -45,6 +45,6 @@ const struct file_operations ramfs_file_operations = { ...@@ -45,6 +45,6 @@ const struct file_operations ramfs_file_operations = {
.llseek = generic_file_llseek, .llseek = generic_file_llseek,
}; };
struct inode_operations ramfs_file_inode_operations = { const struct inode_operations ramfs_file_inode_operations = {
.getattr = simple_getattr, .getattr = simple_getattr,
}; };
...@@ -47,7 +47,7 @@ const struct file_operations ramfs_file_operations = { ...@@ -47,7 +47,7 @@ const struct file_operations ramfs_file_operations = {
.llseek = generic_file_llseek, .llseek = generic_file_llseek,
}; };
struct inode_operations ramfs_file_inode_operations = { const struct inode_operations ramfs_file_inode_operations = {
.setattr = ramfs_nommu_setattr, .setattr = ramfs_nommu_setattr,
.getattr = simple_getattr, .getattr = simple_getattr,
}; };
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#define RAMFS_MAGIC 0x858458f6 #define RAMFS_MAGIC 0x858458f6
static struct super_operations ramfs_ops; static struct super_operations ramfs_ops;
static struct inode_operations ramfs_dir_inode_operations; static const struct inode_operations ramfs_dir_inode_operations;
static struct backing_dev_info ramfs_backing_dev_info = { static struct backing_dev_info ramfs_backing_dev_info = {
.ra_pages = 0, /* No readahead */ .ra_pages = 0, /* No readahead */
...@@ -143,7 +143,7 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * ...@@ -143,7 +143,7 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char *
return error; return error;
} }
static struct inode_operations ramfs_dir_inode_operations = { static const struct inode_operations ramfs_dir_inode_operations = {
.create = ramfs_create, .create = ramfs_create,
.lookup = simple_lookup, .lookup = simple_lookup,
.link = simple_link, .link = simple_link,
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
extern const struct address_space_operations ramfs_aops; extern const struct address_space_operations ramfs_aops;
extern const struct file_operations ramfs_file_operations; extern const struct file_operations ramfs_file_operations;
extern struct inode_operations ramfs_file_inode_operations; extern const struct inode_operations ramfs_file_inode_operations;
...@@ -1556,7 +1556,7 @@ const struct file_operations reiserfs_file_operations = { ...@@ -1556,7 +1556,7 @@ const struct file_operations reiserfs_file_operations = {
.splice_write = generic_file_splice_write, .splice_write = generic_file_splice_write,
}; };
struct inode_operations reiserfs_file_inode_operations = { const struct inode_operations reiserfs_file_inode_operations = {
.truncate = reiserfs_vfs_truncate_file, .truncate = reiserfs_vfs_truncate_file,
.setattr = reiserfs_setattr, .setattr = reiserfs_setattr,
.setxattr = reiserfs_setxattr, .setxattr = reiserfs_setxattr,
......
...@@ -1525,7 +1525,7 @@ static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry, ...@@ -1525,7 +1525,7 @@ static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry,
/* /*
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations reiserfs_dir_inode_operations = { const struct inode_operations reiserfs_dir_inode_operations = {
//&reiserfs_dir_operations, /* default_file_ops */ //&reiserfs_dir_operations, /* default_file_ops */
.create = reiserfs_create, .create = reiserfs_create,
.lookup = reiserfs_lookup, .lookup = reiserfs_lookup,
...@@ -1548,7 +1548,7 @@ struct inode_operations reiserfs_dir_inode_operations = { ...@@ -1548,7 +1548,7 @@ struct inode_operations reiserfs_dir_inode_operations = {
* symlink operations.. same as page_symlink_inode_operations, with xattr * symlink operations.. same as page_symlink_inode_operations, with xattr
* stuff added * stuff added
*/ */
struct inode_operations reiserfs_symlink_inode_operations = { const struct inode_operations reiserfs_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = page_follow_link_light, .follow_link = page_follow_link_light,
.put_link = page_put_link, .put_link = page_put_link,
...@@ -1564,7 +1564,7 @@ struct inode_operations reiserfs_symlink_inode_operations = { ...@@ -1564,7 +1564,7 @@ struct inode_operations reiserfs_symlink_inode_operations = {
/* /*
* special file operations.. just xattr/acl stuff * special file operations.. just xattr/acl stuff
*/ */
struct inode_operations reiserfs_special_inode_operations = { const struct inode_operations reiserfs_special_inode_operations = {
.setattr = reiserfs_setattr, .setattr = reiserfs_setattr,
.setxattr = reiserfs_setxattr, .setxattr = reiserfs_setxattr,
.getxattr = reiserfs_getxattr, .getxattr = reiserfs_getxattr,
......
...@@ -468,7 +468,7 @@ static const struct file_operations romfs_dir_operations = { ...@@ -468,7 +468,7 @@ static const struct file_operations romfs_dir_operations = {
.readdir = romfs_readdir, .readdir = romfs_readdir,
}; };
static struct inode_operations romfs_dir_inode_operations = { static const struct inode_operations romfs_dir_inode_operations = {
.lookup = romfs_lookup, .lookup = romfs_lookup,
}; };
......
...@@ -42,7 +42,7 @@ const struct file_operations smb_dir_operations = ...@@ -42,7 +42,7 @@ const struct file_operations smb_dir_operations =
.open = smb_dir_open, .open = smb_dir_open,
}; };
struct inode_operations smb_dir_inode_operations = const struct inode_operations smb_dir_inode_operations =
{ {
.create = smb_create, .create = smb_create,
.lookup = smb_lookup, .lookup = smb_lookup,
...@@ -54,7 +54,7 @@ struct inode_operations smb_dir_inode_operations = ...@@ -54,7 +54,7 @@ struct inode_operations smb_dir_inode_operations =
.setattr = smb_notify_change, .setattr = smb_notify_change,
}; };
struct inode_operations smb_dir_inode_operations_unix = const struct inode_operations smb_dir_inode_operations_unix =
{ {
.create = smb_create, .create = smb_create,
.lookup = smb_lookup, .lookup = smb_lookup,
......
...@@ -418,7 +418,7 @@ const struct file_operations smb_file_operations = ...@@ -418,7 +418,7 @@ const struct file_operations smb_file_operations =
.sendfile = smb_file_sendfile, .sendfile = smb_file_sendfile,
}; };
struct inode_operations smb_file_inode_operations = const struct inode_operations smb_file_inode_operations =
{ {
.permission = smb_file_permission, .permission = smb_file_permission,
.getattr = smb_getattr, .getattr = smb_getattr,
......
...@@ -36,8 +36,8 @@ extern int smb_proc_link(struct smb_sb_info *server, struct dentry *dentry, stru ...@@ -36,8 +36,8 @@ extern int smb_proc_link(struct smb_sb_info *server, struct dentry *dentry, stru
extern void smb_install_null_ops(struct smb_ops *ops); extern void smb_install_null_ops(struct smb_ops *ops);
/* dir.c */ /* dir.c */
extern const struct file_operations smb_dir_operations; extern const struct file_operations smb_dir_operations;
extern struct inode_operations smb_dir_inode_operations; extern const struct inode_operations smb_dir_inode_operations;
extern struct inode_operations smb_dir_inode_operations_unix; extern const struct inode_operations smb_dir_inode_operations_unix;
extern void smb_new_dentry(struct dentry *dentry); extern void smb_new_dentry(struct dentry *dentry);
extern void smb_renew_times(struct dentry *dentry); extern void smb_renew_times(struct dentry *dentry);
/* cache.c */ /* cache.c */
...@@ -65,7 +65,7 @@ extern int smb_notify_change(struct dentry *dentry, struct iattr *attr); ...@@ -65,7 +65,7 @@ extern int smb_notify_change(struct dentry *dentry, struct iattr *attr);
/* file.c */ /* file.c */
extern const struct address_space_operations smb_file_aops; extern const struct address_space_operations smb_file_aops;
extern const struct file_operations smb_file_operations; extern const struct file_operations smb_file_operations;
extern struct inode_operations smb_file_inode_operations; extern const struct inode_operations smb_file_inode_operations;
/* ioctl.c */ /* ioctl.c */
extern int smb_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); extern int smb_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg);
/* smbiod.c */ /* smbiod.c */
...@@ -84,4 +84,4 @@ extern int smb_request_send_server(struct smb_sb_info *server); ...@@ -84,4 +84,4 @@ extern int smb_request_send_server(struct smb_sb_info *server);
extern int smb_request_recv(struct smb_sb_info *server); extern int smb_request_recv(struct smb_sb_info *server);
/* symlink.c */ /* symlink.c */
extern int smb_symlink(struct inode *inode, struct dentry *dentry, const char *oldname); extern int smb_symlink(struct inode *inode, struct dentry *dentry, const char *oldname);
extern struct inode_operations smb_link_inode_operations; extern const struct inode_operations smb_link_inode_operations;
...@@ -62,7 +62,7 @@ static void smb_put_link(struct dentry *dentry, struct nameidata *nd, void *p) ...@@ -62,7 +62,7 @@ static void smb_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
__putname(s); __putname(s);
} }
struct inode_operations smb_link_inode_operations = const struct inode_operations smb_link_inode_operations =
{ {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = smb_follow_link, .follow_link = smb_follow_link,
......
...@@ -296,7 +296,7 @@ static struct dentry * sysfs_lookup(struct inode *dir, struct dentry *dentry, ...@@ -296,7 +296,7 @@ static struct dentry * sysfs_lookup(struct inode *dir, struct dentry *dentry,
return ERR_PTR(err); return ERR_PTR(err);
} }
struct inode_operations sysfs_dir_inode_operations = { const struct inode_operations sysfs_dir_inode_operations = {
.lookup = sysfs_lookup, .lookup = sysfs_lookup,
.setattr = sysfs_setattr, .setattr = sysfs_setattr,
}; };
......
...@@ -29,7 +29,7 @@ static struct backing_dev_info sysfs_backing_dev_info = { ...@@ -29,7 +29,7 @@ static struct backing_dev_info sysfs_backing_dev_info = {
.capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK, .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK,
}; };
static struct inode_operations sysfs_inode_operations ={ static const struct inode_operations sysfs_inode_operations ={
.setattr = sysfs_setattr, .setattr = sysfs_setattr,
}; };
......
...@@ -181,7 +181,7 @@ static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd, void *co ...@@ -181,7 +181,7 @@ static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd, void *co
free_page((unsigned long)page); free_page((unsigned long)page);
} }
struct inode_operations sysfs_symlink_inode_operations = { const struct inode_operations sysfs_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = sysfs_follow_link, .follow_link = sysfs_follow_link,
.put_link = sysfs_put_link, .put_link = sysfs_put_link,
......
...@@ -26,8 +26,8 @@ extern struct super_block * sysfs_sb; ...@@ -26,8 +26,8 @@ extern struct super_block * sysfs_sb;
extern const struct file_operations sysfs_dir_operations; extern const struct file_operations sysfs_dir_operations;
extern const struct file_operations sysfs_file_operations; extern const struct file_operations sysfs_file_operations;
extern const struct file_operations bin_fops; extern const struct file_operations bin_fops;
extern struct inode_operations sysfs_dir_inode_operations; extern const struct inode_operations sysfs_dir_inode_operations;
extern struct inode_operations sysfs_symlink_inode_operations; extern const struct inode_operations sysfs_symlink_inode_operations;
struct sysfs_symlink { struct sysfs_symlink {
char * link_name; char * link_name;
......
...@@ -30,7 +30,7 @@ const struct file_operations sysv_file_operations = { ...@@ -30,7 +30,7 @@ const struct file_operations sysv_file_operations = {
.sendfile = generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations sysv_file_inode_operations = { const struct inode_operations sysv_file_inode_operations = {
.truncate = sysv_truncate, .truncate = sysv_truncate,
.getattr = sysv_getattr, .getattr = sysv_getattr,
}; };
......
...@@ -142,7 +142,7 @@ static inline void write3byte(struct sysv_sb_info *sbi, ...@@ -142,7 +142,7 @@ static inline void write3byte(struct sysv_sb_info *sbi,
} }
} }
static struct inode_operations sysv_symlink_inode_operations = { static const struct inode_operations sysv_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = page_follow_link_light, .follow_link = page_follow_link_light,
.put_link = page_put_link, .put_link = page_put_link,
......
...@@ -292,7 +292,7 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, ...@@ -292,7 +292,7 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry,
/* /*
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations sysv_dir_inode_operations = { const struct inode_operations sysv_dir_inode_operations = {
.create = sysv_create, .create = sysv_create,
.lookup = sysv_lookup, .lookup = sysv_lookup,
.link = sysv_link, .link = sysv_link,
......
...@@ -14,7 +14,7 @@ static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -14,7 +14,7 @@ static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
struct inode_operations sysv_fast_symlink_inode_operations = { const struct inode_operations sysv_fast_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = sysv_follow_link, .follow_link = sysv_follow_link,
}; };
...@@ -159,9 +159,9 @@ extern struct sysv_dir_entry *sysv_dotdot(struct inode *, struct page **); ...@@ -159,9 +159,9 @@ extern struct sysv_dir_entry *sysv_dotdot(struct inode *, struct page **);
extern ino_t sysv_inode_by_name(struct dentry *); extern ino_t sysv_inode_by_name(struct dentry *);
extern struct inode_operations sysv_file_inode_operations; extern const struct inode_operations sysv_file_inode_operations;
extern struct inode_operations sysv_dir_inode_operations; extern const struct inode_operations sysv_dir_inode_operations;
extern struct inode_operations sysv_fast_symlink_inode_operations; extern const struct inode_operations sysv_fast_symlink_inode_operations;
extern const struct file_operations sysv_file_operations; extern const struct file_operations sysv_file_operations;
extern const struct file_operations sysv_dir_operations; extern const struct file_operations sysv_dir_operations;
extern const struct address_space_operations sysv_aops; extern const struct address_space_operations sysv_aops;
......
...@@ -263,6 +263,6 @@ const struct file_operations udf_file_operations = { ...@@ -263,6 +263,6 @@ const struct file_operations udf_file_operations = {
.sendfile = generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations udf_file_inode_operations = { const struct inode_operations udf_file_inode_operations = {
.truncate = udf_truncate, .truncate = udf_truncate,
}; };
...@@ -1308,7 +1308,7 @@ static int udf_rename (struct inode * old_dir, struct dentry * old_dentry, ...@@ -1308,7 +1308,7 @@ static int udf_rename (struct inode * old_dir, struct dentry * old_dentry,
return retval; return retval;
} }
struct inode_operations udf_dir_inode_operations = { const struct inode_operations udf_dir_inode_operations = {
.lookup = udf_lookup, .lookup = udf_lookup,
.create = udf_create, .create = udf_create,
.link = udf_link, .link = udf_link,
......
...@@ -42,9 +42,9 @@ struct task_struct; ...@@ -42,9 +42,9 @@ struct task_struct;
struct buffer_head; struct buffer_head;
struct super_block; struct super_block;
extern struct inode_operations udf_dir_inode_operations; extern const struct inode_operations udf_dir_inode_operations;
extern const struct file_operations udf_dir_operations; extern const struct file_operations udf_dir_operations;
extern struct inode_operations udf_file_inode_operations; extern const struct inode_operations udf_file_inode_operations;
extern const struct file_operations udf_file_operations; extern const struct file_operations udf_file_operations;
extern const struct address_space_operations udf_aops; extern const struct address_space_operations udf_aops;
extern const struct address_space_operations udf_adinicb_aops; extern const struct address_space_operations udf_adinicb_aops;
......
...@@ -355,7 +355,7 @@ static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, ...@@ -355,7 +355,7 @@ static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry,
return err; return err;
} }
struct inode_operations ufs_dir_inode_operations = { const struct inode_operations ufs_dir_inode_operations = {
.create = ufs_create, .create = ufs_create,
.lookup = ufs_lookup, .lookup = ufs_lookup,
.link = ufs_link, .link = ufs_link,
......
...@@ -36,7 +36,7 @@ static void *ufs_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -36,7 +36,7 @@ static void *ufs_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
struct inode_operations ufs_fast_symlink_inode_operations = { const struct inode_operations ufs_fast_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = ufs_follow_link, .follow_link = ufs_follow_link,
}; };
...@@ -513,6 +513,6 @@ static int ufs_setattr(struct dentry *dentry, struct iattr *attr) ...@@ -513,6 +513,6 @@ static int ufs_setattr(struct dentry *dentry, struct iattr *attr)
return inode_setattr(inode, attr); return inode_setattr(inode, attr);
} }
struct inode_operations ufs_file_inode_operations = { const struct inode_operations ufs_file_inode_operations = {
.setattr = ufs_setattr, .setattr = ufs_setattr,
}; };
...@@ -996,7 +996,7 @@ static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, ...@@ -996,7 +996,7 @@ static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry,
goto out; goto out;
} }
static struct inode_operations vfat_dir_inode_operations = { static const struct inode_operations vfat_dir_inode_operations = {
.create = vfat_create, .create = vfat_create,
.lookup = vfat_lookup, .lookup = vfat_lookup,
.unlink = vfat_unlink, .unlink = vfat_unlink,
......
...@@ -813,7 +813,7 @@ xfs_vn_removexattr( ...@@ -813,7 +813,7 @@ xfs_vn_removexattr(
} }
struct inode_operations xfs_inode_operations = { const struct inode_operations xfs_inode_operations = {
.permission = xfs_vn_permission, .permission = xfs_vn_permission,
.truncate = xfs_vn_truncate, .truncate = xfs_vn_truncate,
.getattr = xfs_vn_getattr, .getattr = xfs_vn_getattr,
...@@ -824,7 +824,7 @@ struct inode_operations xfs_inode_operations = { ...@@ -824,7 +824,7 @@ struct inode_operations xfs_inode_operations = {
.removexattr = xfs_vn_removexattr, .removexattr = xfs_vn_removexattr,
}; };
struct inode_operations xfs_dir_inode_operations = { const struct inode_operations xfs_dir_inode_operations = {
.create = xfs_vn_create, .create = xfs_vn_create,
.lookup = xfs_vn_lookup, .lookup = xfs_vn_lookup,
.link = xfs_vn_link, .link = xfs_vn_link,
...@@ -843,7 +843,7 @@ struct inode_operations xfs_dir_inode_operations = { ...@@ -843,7 +843,7 @@ struct inode_operations xfs_dir_inode_operations = {
.removexattr = xfs_vn_removexattr, .removexattr = xfs_vn_removexattr,
}; };
struct inode_operations xfs_symlink_inode_operations = { const struct inode_operations xfs_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = xfs_vn_follow_link, .follow_link = xfs_vn_follow_link,
.put_link = xfs_vn_put_link, .put_link = xfs_vn_put_link,
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#ifndef __XFS_IOPS_H__ #ifndef __XFS_IOPS_H__
#define __XFS_IOPS_H__ #define __XFS_IOPS_H__
extern struct inode_operations xfs_inode_operations; extern const struct inode_operations xfs_inode_operations;
extern struct inode_operations xfs_dir_inode_operations; extern const struct inode_operations xfs_dir_inode_operations;
extern struct inode_operations xfs_symlink_inode_operations; extern const struct inode_operations xfs_symlink_inode_operations;
extern const struct file_operations xfs_file_operations; extern const struct file_operations xfs_file_operations;
extern const struct file_operations xfs_dir_file_operations; extern const struct file_operations xfs_dir_file_operations;
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
#include <linux/coda_fs_i.h> #include <linux/coda_fs_i.h>
/* operations */ /* operations */
extern struct inode_operations coda_dir_inode_operations; extern const struct inode_operations coda_dir_inode_operations;
extern struct inode_operations coda_file_inode_operations; extern const struct inode_operations coda_file_inode_operations;
extern struct inode_operations coda_ioctl_inode_operations; extern const struct inode_operations coda_ioctl_inode_operations;
extern const struct address_space_operations coda_file_aops; extern const struct address_space_operations coda_file_aops;
extern const struct address_space_operations coda_symlink_aops; extern const struct address_space_operations coda_symlink_aops;
......
...@@ -36,7 +36,7 @@ static inline struct efs_sb_info *SUPER_INFO(struct super_block *sb) ...@@ -36,7 +36,7 @@ static inline struct efs_sb_info *SUPER_INFO(struct super_block *sb)
struct statfs; struct statfs;
extern struct inode_operations efs_dir_inode_operations; extern const struct inode_operations efs_dir_inode_operations;
extern const struct file_operations efs_dir_operations; extern const struct file_operations efs_dir_operations;
extern const struct address_space_operations efs_symlink_aops; extern const struct address_space_operations efs_symlink_aops;
......
...@@ -868,16 +868,16 @@ do { \ ...@@ -868,16 +868,16 @@ do { \
extern const struct file_operations ext3_dir_operations; extern const struct file_operations ext3_dir_operations;
/* file.c */ /* file.c */
extern struct inode_operations ext3_file_inode_operations; extern const struct inode_operations ext3_file_inode_operations;
extern const struct file_operations ext3_file_operations; extern const struct file_operations ext3_file_operations;
/* namei.c */ /* namei.c */
extern struct inode_operations ext3_dir_inode_operations; extern const struct inode_operations ext3_dir_inode_operations;
extern struct inode_operations ext3_special_inode_operations; extern const struct inode_operations ext3_special_inode_operations;
/* symlink.c */ /* symlink.c */
extern struct inode_operations ext3_symlink_inode_operations; extern const struct inode_operations ext3_symlink_inode_operations;
extern struct inode_operations ext3_fast_symlink_inode_operations; extern const struct inode_operations ext3_fast_symlink_inode_operations;
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
......
...@@ -955,16 +955,16 @@ do { \ ...@@ -955,16 +955,16 @@ do { \
extern const struct file_operations ext4_dir_operations; extern const struct file_operations ext4_dir_operations;
/* file.c */ /* file.c */
extern struct inode_operations ext4_file_inode_operations; extern const struct inode_operations ext4_file_inode_operations;
extern const struct file_operations ext4_file_operations; extern const struct file_operations ext4_file_operations;
/* namei.c */ /* namei.c */
extern struct inode_operations ext4_dir_inode_operations; extern const struct inode_operations ext4_dir_inode_operations;
extern struct inode_operations ext4_special_inode_operations; extern const struct inode_operations ext4_special_inode_operations;
/* symlink.c */ /* symlink.c */
extern struct inode_operations ext4_symlink_inode_operations; extern const struct inode_operations ext4_symlink_inode_operations;
extern struct inode_operations ext4_fast_symlink_inode_operations; extern const struct inode_operations ext4_fast_symlink_inode_operations;
/* extents.c */ /* extents.c */
extern int ext4_ext_tree_init(handle_t *handle, struct inode *); extern int ext4_ext_tree_init(handle_t *handle, struct inode *);
......
...@@ -551,7 +551,7 @@ struct inode { ...@@ -551,7 +551,7 @@ struct inode {
spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */
struct mutex i_mutex; struct mutex i_mutex;
struct rw_semaphore i_alloc_sem; struct rw_semaphore i_alloc_sem;
struct inode_operations *i_op; const struct inode_operations *i_op;
const struct file_operations *i_fop; /* former ->i_op->default_file_ops */ const struct file_operations *i_fop; /* former ->i_op->default_file_ops */
struct super_block *i_sb; struct super_block *i_sb;
struct file_lock *i_flock; struct file_lock *i_flock;
...@@ -1828,7 +1828,7 @@ extern void page_put_link(struct dentry *, struct nameidata *, void *); ...@@ -1828,7 +1828,7 @@ extern void page_put_link(struct dentry *, struct nameidata *, void *);
extern int __page_symlink(struct inode *inode, const char *symname, int len, extern int __page_symlink(struct inode *inode, const char *symname, int len,
gfp_t gfp_mask); gfp_t gfp_mask);
extern int page_symlink(struct inode *inode, const char *symname, int len); extern int page_symlink(struct inode *inode, const char *symname, int len);
extern struct inode_operations page_symlink_inode_operations; extern const struct inode_operations page_symlink_inode_operations;
extern int generic_readlink(struct dentry *, char __user *, int); extern int generic_readlink(struct dentry *, char __user *, int);
extern void generic_fillattr(struct inode *, struct kstat *); extern void generic_fillattr(struct inode *, struct kstat *);
extern int vfs_getattr(struct vfsmount *, struct dentry *, struct kstat *); extern int vfs_getattr(struct vfsmount *, struct dentry *, struct kstat *);
...@@ -1873,7 +1873,7 @@ extern int simple_commit_write(struct file *file, struct page *page, ...@@ -1873,7 +1873,7 @@ extern int simple_commit_write(struct file *file, struct page *page,
extern struct dentry *simple_lookup(struct inode *, struct dentry *, struct nameidata *); extern struct dentry *simple_lookup(struct inode *, struct dentry *, struct nameidata *);
extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *); extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *);
extern const struct file_operations simple_dir_operations; extern const struct file_operations simple_dir_operations;
extern struct inode_operations simple_dir_inode_operations; extern const struct inode_operations simple_dir_inode_operations;
struct tree_descr { char *name; const struct file_operations *ops; int mode; }; struct tree_descr { char *name; const struct file_operations *ops; int mode; };
struct dentry *d_alloc_name(struct dentry *, const char *); struct dentry *d_alloc_name(struct dentry *, const char *);
extern int simple_fill_super(struct super_block *, int, struct tree_descr *); extern int simple_fill_super(struct super_block *, int, struct tree_descr *);
......
...@@ -234,7 +234,7 @@ struct msdos_sb_info { ...@@ -234,7 +234,7 @@ struct msdos_sb_info {
struct fat_mount_options options; struct fat_mount_options options;
struct nls_table *nls_disk; /* Codepage used on disk */ struct nls_table *nls_disk; /* Codepage used on disk */
struct nls_table *nls_io; /* Charset used for input and display */ struct nls_table *nls_io; /* Charset used for input and display */
void *dir_ops; /* Opaque; default directory operations */ const void *dir_ops; /* Opaque; default directory operations */
int dir_per_block; /* dir entries per block */ int dir_per_block; /* dir entries per block */
int dir_per_block_bits; /* log2(dir_per_block) */ int dir_per_block_bits; /* log2(dir_per_block) */
...@@ -399,7 +399,7 @@ extern int fat_count_free_clusters(struct super_block *sb); ...@@ -399,7 +399,7 @@ extern int fat_count_free_clusters(struct super_block *sb);
extern int fat_generic_ioctl(struct inode *inode, struct file *filp, extern int fat_generic_ioctl(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg); unsigned int cmd, unsigned long arg);
extern const struct file_operations fat_file_operations; extern const struct file_operations fat_file_operations;
extern struct inode_operations fat_file_inode_operations; extern const struct inode_operations fat_file_inode_operations;
extern int fat_notify_change(struct dentry * dentry, struct iattr * attr); extern int fat_notify_change(struct dentry * dentry, struct iattr * attr);
extern void fat_truncate(struct inode *inode); extern void fat_truncate(struct inode *inode);
extern int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, extern int fat_getattr(struct vfsmount *mnt, struct dentry *dentry,
...@@ -413,7 +413,7 @@ extern struct inode *fat_build_inode(struct super_block *sb, ...@@ -413,7 +413,7 @@ extern struct inode *fat_build_inode(struct super_block *sb,
struct msdos_dir_entry *de, loff_t i_pos); struct msdos_dir_entry *de, loff_t i_pos);
extern int fat_sync_inode(struct inode *inode); extern int fat_sync_inode(struct inode *inode);
extern int fat_fill_super(struct super_block *sb, void *data, int silent, extern int fat_fill_super(struct super_block *sb, void *data, int silent,
struct inode_operations *fs_dir_inode_ops, int isvfat); const struct inode_operations *fs_dir_inode_ops, int isvfat);
extern int fat_flush_inodes(struct super_block *sb, struct inode *i1, extern int fat_flush_inodes(struct super_block *sb, struct inode *i1,
struct inode *i2); struct inode *i2);
......
...@@ -204,7 +204,7 @@ void ncp_update_inode(struct inode *, struct ncp_entry_info *); ...@@ -204,7 +204,7 @@ void ncp_update_inode(struct inode *, struct ncp_entry_info *);
void ncp_update_inode2(struct inode *, struct ncp_entry_info *); void ncp_update_inode2(struct inode *, struct ncp_entry_info *);
/* linux/fs/ncpfs/dir.c */ /* linux/fs/ncpfs/dir.c */
extern struct inode_operations ncp_dir_inode_operations; extern const struct inode_operations ncp_dir_inode_operations;
extern const struct file_operations ncp_dir_operations; extern const struct file_operations ncp_dir_operations;
int ncp_conn_logged_in(struct super_block *); int ncp_conn_logged_in(struct super_block *);
int ncp_date_dos2unix(__le16 time, __le16 date); int ncp_date_dos2unix(__le16 time, __le16 date);
...@@ -226,7 +226,7 @@ void ncp_lock_server(struct ncp_server *server); ...@@ -226,7 +226,7 @@ void ncp_lock_server(struct ncp_server *server);
void ncp_unlock_server(struct ncp_server *server); void ncp_unlock_server(struct ncp_server *server);
/* linux/fs/ncpfs/file.c */ /* linux/fs/ncpfs/file.c */
extern struct inode_operations ncp_file_inode_operations; extern const struct inode_operations ncp_file_inode_operations;
extern const struct file_operations ncp_file_operations; extern const struct file_operations ncp_file_operations;
int ncp_make_open(struct inode *, int); int ncp_make_open(struct inode *, int);
......
...@@ -331,9 +331,9 @@ static inline void nfs_fattr_init(struct nfs_fattr *fattr) ...@@ -331,9 +331,9 @@ static inline void nfs_fattr_init(struct nfs_fattr *fattr)
/* /*
* linux/fs/nfs/file.c * linux/fs/nfs/file.c
*/ */
extern struct inode_operations nfs_file_inode_operations; extern const struct inode_operations nfs_file_inode_operations;
#ifdef CONFIG_NFS_V3 #ifdef CONFIG_NFS_V3
extern struct inode_operations nfs3_file_inode_operations; extern const struct inode_operations nfs3_file_inode_operations;
#endif /* CONFIG_NFS_V3 */ #endif /* CONFIG_NFS_V3 */
extern const struct file_operations nfs_file_operations; extern const struct file_operations nfs_file_operations;
extern const struct address_space_operations nfs_file_aops; extern const struct address_space_operations nfs_file_aops;
...@@ -380,9 +380,9 @@ extern ssize_t nfs_file_direct_write(struct kiocb *iocb, ...@@ -380,9 +380,9 @@ extern ssize_t nfs_file_direct_write(struct kiocb *iocb,
/* /*
* linux/fs/nfs/dir.c * linux/fs/nfs/dir.c
*/ */
extern struct inode_operations nfs_dir_inode_operations; extern const struct inode_operations nfs_dir_inode_operations;
#ifdef CONFIG_NFS_V3 #ifdef CONFIG_NFS_V3
extern struct inode_operations nfs3_dir_inode_operations; extern const struct inode_operations nfs3_dir_inode_operations;
#endif /* CONFIG_NFS_V3 */ #endif /* CONFIG_NFS_V3 */
extern const struct file_operations nfs_dir_operations; extern const struct file_operations nfs_dir_operations;
extern struct dentry_operations nfs_dentry_operations; extern struct dentry_operations nfs_dentry_operations;
...@@ -392,7 +392,7 @@ extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_ ...@@ -392,7 +392,7 @@ extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_
/* /*
* linux/fs/nfs/symlink.c * linux/fs/nfs/symlink.c
*/ */
extern struct inode_operations nfs_symlink_inode_operations; extern const struct inode_operations nfs_symlink_inode_operations;
/* /*
* linux/fs/nfs/sysctl.c * linux/fs/nfs/sysctl.c
...@@ -409,8 +409,8 @@ extern void nfs_unregister_sysctl(void); ...@@ -409,8 +409,8 @@ extern void nfs_unregister_sysctl(void);
* linux/fs/nfs/namespace.c * linux/fs/nfs/namespace.c
*/ */
extern struct list_head nfs_automount_list; extern struct list_head nfs_automount_list;
extern struct inode_operations nfs_mountpoint_inode_operations; extern const struct inode_operations nfs_mountpoint_inode_operations;
extern struct inode_operations nfs_referral_inode_operations; extern const struct inode_operations nfs_referral_inode_operations;
extern int nfs_mountpoint_expiry_timeout; extern int nfs_mountpoint_expiry_timeout;
extern void nfs_release_automount_timer(void); extern void nfs_release_automount_timer(void);
......
...@@ -767,8 +767,8 @@ struct nfs_access_entry; ...@@ -767,8 +767,8 @@ struct nfs_access_entry;
struct nfs_rpc_ops { struct nfs_rpc_ops {
int version; /* Protocol version */ int version; /* Protocol version */
struct dentry_operations *dentry_ops; struct dentry_operations *dentry_ops;
struct inode_operations *dir_inode_ops; const struct inode_operations *dir_inode_ops;
struct inode_operations *file_inode_ops; const struct inode_operations *file_inode_ops;
int (*getroot) (struct nfs_server *, struct nfs_fh *, int (*getroot) (struct nfs_server *, struct nfs_fh *,
struct nfs_fsinfo *); struct nfs_fsinfo *);
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
struct phone_device { struct phone_device {
struct phone_device *next; struct phone_device *next;
struct file_operations *f_op; const struct file_operations *f_op;
int (*open) (struct phone_device *, struct file *); int (*open) (struct phone_device *, struct file *);
int board; /* Device private index */ int board; /* Device private index */
int minor; int minor;
......
...@@ -55,8 +55,8 @@ struct proc_dir_entry { ...@@ -55,8 +55,8 @@ struct proc_dir_entry {
uid_t uid; uid_t uid;
gid_t gid; gid_t gid;
loff_t size; loff_t size;
struct inode_operations * proc_iops; const struct inode_operations *proc_iops;
const struct file_operations * proc_fops; const struct file_operations *proc_fops;
get_info_t *get_info; get_info_t *get_info;
struct module *owner; struct module *owner;
struct proc_dir_entry *next, *parent, *subdir; struct proc_dir_entry *next, *parent, *subdir;
......
...@@ -116,8 +116,8 @@ extern unsigned long qnx4_block_map(struct inode *inode, long iblock); ...@@ -116,8 +116,8 @@ extern unsigned long qnx4_block_map(struct inode *inode, long iblock);
extern struct buffer_head *qnx4_bread(struct inode *, int, int); extern struct buffer_head *qnx4_bread(struct inode *, int, int);
extern struct inode_operations qnx4_file_inode_operations; extern const struct inode_operations qnx4_file_inode_operations;
extern struct inode_operations qnx4_dir_inode_operations; extern const struct inode_operations qnx4_dir_inode_operations;
extern const struct file_operations qnx4_file_operations; extern const struct file_operations qnx4_file_operations;
extern const struct file_operations qnx4_dir_operations; extern const struct file_operations qnx4_dir_operations;
extern int qnx4_is_free(struct super_block *sb, long block); extern int qnx4_is_free(struct super_block *sb, long block);
......
...@@ -1949,9 +1949,9 @@ int reiserfs_global_version_in_proc(char *buffer, char **start, off_t offset, ...@@ -1949,9 +1949,9 @@ int reiserfs_global_version_in_proc(char *buffer, char **start, off_t offset,
#endif #endif
/* dir.c */ /* dir.c */
extern struct inode_operations reiserfs_dir_inode_operations; extern const struct inode_operations reiserfs_dir_inode_operations;
extern struct inode_operations reiserfs_symlink_inode_operations; extern const struct inode_operations reiserfs_symlink_inode_operations;
extern struct inode_operations reiserfs_special_inode_operations; extern const struct inode_operations reiserfs_special_inode_operations;
extern const struct file_operations reiserfs_dir_operations; extern const struct file_operations reiserfs_dir_operations;
/* tail_conversion.c */ /* tail_conversion.c */
...@@ -1963,7 +1963,7 @@ int indirect2direct(struct reiserfs_transaction_handle *, struct inode *, ...@@ -1963,7 +1963,7 @@ int indirect2direct(struct reiserfs_transaction_handle *, struct inode *,
void reiserfs_unmap_buffer(struct buffer_head *); void reiserfs_unmap_buffer(struct buffer_head *);
/* file.c */ /* file.c */
extern struct inode_operations reiserfs_file_inode_operations; extern const struct inode_operations reiserfs_file_inode_operations;
extern const struct file_operations reiserfs_file_operations; extern const struct file_operations reiserfs_file_operations;
extern const struct address_space_operations reiserfs_address_space_operations; extern const struct address_space_operations reiserfs_address_space_operations;
......
...@@ -957,7 +957,7 @@ extern struct ufs_cg_private_info * ufs_load_cylinder (struct super_block *, uns ...@@ -957,7 +957,7 @@ extern struct ufs_cg_private_info * ufs_load_cylinder (struct super_block *, uns
extern void ufs_put_cylinder (struct super_block *, unsigned); extern void ufs_put_cylinder (struct super_block *, unsigned);
/* dir.c */ /* dir.c */
extern struct inode_operations ufs_dir_inode_operations; extern const struct inode_operations ufs_dir_inode_operations;
extern int ufs_add_link (struct dentry *, struct inode *); extern int ufs_add_link (struct dentry *, struct inode *);
extern ino_t ufs_inode_by_name(struct inode *, struct dentry *); extern ino_t ufs_inode_by_name(struct inode *, struct dentry *);
extern int ufs_make_empty(struct inode *, struct inode *); extern int ufs_make_empty(struct inode *, struct inode *);
...@@ -969,7 +969,7 @@ extern void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de, ...@@ -969,7 +969,7 @@ extern void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de,
struct page *page, struct inode *inode); struct page *page, struct inode *inode);
/* file.c */ /* file.c */
extern struct inode_operations ufs_file_inode_operations; extern const struct inode_operations ufs_file_inode_operations;
extern const struct file_operations ufs_file_operations; extern const struct file_operations ufs_file_operations;
extern const struct address_space_operations ufs_aops; extern const struct address_space_operations ufs_aops;
...@@ -996,7 +996,7 @@ extern void ufs_error (struct super_block *, const char *, const char *, ...) __ ...@@ -996,7 +996,7 @@ extern void ufs_error (struct super_block *, const char *, const char *, ...) __
extern void ufs_panic (struct super_block *, const char *, const char *, ...) __attribute__ ((format (printf, 3, 4))); extern void ufs_panic (struct super_block *, const char *, const char *, ...) __attribute__ ((format (printf, 3, 4)));
/* symlink.c */ /* symlink.c */
extern struct inode_operations ufs_fast_symlink_inode_operations; extern const struct inode_operations ufs_fast_symlink_inode_operations;
/* truncate.c */ /* truncate.c */
extern int ufs_truncate (struct inode *, loff_t); extern int ufs_truncate (struct inode *, loff_t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment