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

[PATCH] mark struct inode_operations const 1

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 9c2e08c5
...@@ -220,7 +220,7 @@ static int spufs_dir_close(struct inode *inode, struct file *file) ...@@ -220,7 +220,7 @@ static int spufs_dir_close(struct inode *inode, struct file *file)
return dcache_dir_close(inode, file); return dcache_dir_close(inode, file);
} }
struct inode_operations spufs_dir_inode_operations = { const struct inode_operations spufs_dir_inode_operations = {
.lookup = simple_lookup, .lookup = simple_lookup,
}; };
......
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
#include "v9fs_vfs.h" #include "v9fs_vfs.h"
#include "fid.h" #include "fid.h"
static struct inode_operations v9fs_dir_inode_operations; static const struct inode_operations v9fs_dir_inode_operations;
static struct inode_operations v9fs_dir_inode_operations_ext; static const struct inode_operations v9fs_dir_inode_operations_ext;
static struct inode_operations v9fs_file_inode_operations; static const struct inode_operations v9fs_file_inode_operations;
static struct inode_operations v9fs_symlink_inode_operations; static const struct inode_operations v9fs_symlink_inode_operations;
/** /**
* unixmode2p9mode - convert unix mode bits to plan 9 * unixmode2p9mode - convert unix mode bits to plan 9
...@@ -1303,7 +1303,7 @@ v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t rdev) ...@@ -1303,7 +1303,7 @@ v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t rdev)
return retval; return retval;
} }
static struct inode_operations v9fs_dir_inode_operations_ext = { static const struct inode_operations v9fs_dir_inode_operations_ext = {
.create = v9fs_vfs_create, .create = v9fs_vfs_create,
.lookup = v9fs_vfs_lookup, .lookup = v9fs_vfs_lookup,
.symlink = v9fs_vfs_symlink, .symlink = v9fs_vfs_symlink,
...@@ -1318,7 +1318,7 @@ static struct inode_operations v9fs_dir_inode_operations_ext = { ...@@ -1318,7 +1318,7 @@ static struct inode_operations v9fs_dir_inode_operations_ext = {
.setattr = v9fs_vfs_setattr, .setattr = v9fs_vfs_setattr,
}; };
static struct inode_operations v9fs_dir_inode_operations = { static const struct inode_operations v9fs_dir_inode_operations = {
.create = v9fs_vfs_create, .create = v9fs_vfs_create,
.lookup = v9fs_vfs_lookup, .lookup = v9fs_vfs_lookup,
.unlink = v9fs_vfs_unlink, .unlink = v9fs_vfs_unlink,
...@@ -1330,12 +1330,12 @@ static struct inode_operations v9fs_dir_inode_operations = { ...@@ -1330,12 +1330,12 @@ static struct inode_operations v9fs_dir_inode_operations = {
.setattr = v9fs_vfs_setattr, .setattr = v9fs_vfs_setattr,
}; };
static struct inode_operations v9fs_file_inode_operations = { static const struct inode_operations v9fs_file_inode_operations = {
.getattr = v9fs_vfs_getattr, .getattr = v9fs_vfs_getattr,
.setattr = v9fs_vfs_setattr, .setattr = v9fs_vfs_setattr,
}; };
static struct inode_operations v9fs_symlink_inode_operations = { static const struct inode_operations v9fs_symlink_inode_operations = {
.readlink = v9fs_vfs_readlink, .readlink = v9fs_vfs_readlink,
.follow_link = v9fs_vfs_follow_link, .follow_link = v9fs_vfs_follow_link,
.put_link = v9fs_vfs_put_link, .put_link = v9fs_vfs_put_link,
......
...@@ -84,7 +84,7 @@ void __adfs_error(struct super_block *sb, const char *function, ...@@ -84,7 +84,7 @@ void __adfs_error(struct super_block *sb, const char *function,
*/ */
/* dir_*.c */ /* dir_*.c */
extern struct inode_operations adfs_dir_inode_operations; extern const struct inode_operations adfs_dir_inode_operations;
extern const struct file_operations adfs_dir_operations; extern const struct file_operations adfs_dir_operations;
extern struct dentry_operations adfs_dentry_operations; extern struct dentry_operations adfs_dentry_operations;
extern struct adfs_dir_ops adfs_f_dir_ops; extern struct adfs_dir_ops adfs_f_dir_ops;
...@@ -93,7 +93,7 @@ extern struct adfs_dir_ops adfs_fplus_dir_ops; ...@@ -93,7 +93,7 @@ extern struct adfs_dir_ops adfs_fplus_dir_ops;
extern int adfs_dir_update(struct super_block *sb, struct object_info *obj); extern int adfs_dir_update(struct super_block *sb, struct object_info *obj);
/* file.c */ /* file.c */
extern struct inode_operations adfs_file_inode_operations; extern const struct inode_operations adfs_file_inode_operations;
extern const struct file_operations adfs_file_operations; extern const struct file_operations adfs_file_operations;
static inline __u32 signed_asl(__u32 val, signed int shift) static inline __u32 signed_asl(__u32 val, signed int shift)
......
...@@ -295,7 +295,7 @@ adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) ...@@ -295,7 +295,7 @@ adfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
/* /*
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations adfs_dir_inode_operations = { const struct inode_operations adfs_dir_inode_operations = {
.lookup = adfs_lookup, .lookup = adfs_lookup,
.setattr = adfs_notify_change, .setattr = adfs_notify_change,
}; };
...@@ -36,6 +36,6 @@ const struct file_operations adfs_file_operations = { ...@@ -36,6 +36,6 @@ const struct file_operations adfs_file_operations = {
.sendfile = generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations adfs_file_inode_operations = { const struct inode_operations adfs_file_inode_operations = {
.setattr = adfs_notify_change, .setattr = adfs_notify_change,
}; };
...@@ -188,9 +188,9 @@ extern void affs_dir_truncate(struct inode *); ...@@ -188,9 +188,9 @@ extern void affs_dir_truncate(struct inode *);
/* jump tables */ /* jump tables */
extern struct inode_operations affs_file_inode_operations; extern const struct inode_operations affs_file_inode_operations;
extern struct inode_operations affs_dir_inode_operations; extern const struct inode_operations affs_dir_inode_operations;
extern struct inode_operations affs_symlink_inode_operations; extern const struct inode_operations affs_symlink_inode_operations;
extern const struct file_operations affs_file_operations; extern const struct file_operations affs_file_operations;
extern const struct file_operations affs_file_operations_ofs; extern const struct file_operations affs_file_operations_ofs;
extern const struct file_operations affs_dir_operations; extern const struct file_operations affs_dir_operations;
......
...@@ -26,7 +26,7 @@ const struct file_operations affs_dir_operations = { ...@@ -26,7 +26,7 @@ const struct file_operations affs_dir_operations = {
/* /*
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations affs_dir_inode_operations = { const struct inode_operations affs_dir_inode_operations = {
.create = affs_create, .create = affs_create,
.lookup = affs_lookup, .lookup = affs_lookup,
.link = affs_link, .link = affs_link,
......
...@@ -38,7 +38,7 @@ const struct file_operations affs_file_operations = { ...@@ -38,7 +38,7 @@ const struct file_operations affs_file_operations = {
.sendfile = generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations affs_file_inode_operations = { const struct inode_operations affs_file_inode_operations = {
.truncate = affs_truncate, .truncate = affs_truncate,
.setattr = affs_notify_change, .setattr = affs_notify_change,
}; };
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "affs.h" #include "affs.h"
extern struct inode_operations affs_symlink_inode_operations; extern const struct inode_operations affs_symlink_inode_operations;
extern struct timezone sys_tz; extern struct timezone sys_tz;
void void
......
...@@ -70,7 +70,7 @@ const struct address_space_operations affs_symlink_aops = { ...@@ -70,7 +70,7 @@ const struct address_space_operations affs_symlink_aops = {
.readpage = affs_symlink_readpage, .readpage = affs_symlink_readpage,
}; };
struct inode_operations affs_symlink_inode_operations = { const struct inode_operations affs_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,
......
...@@ -37,7 +37,7 @@ const struct file_operations afs_dir_file_operations = { ...@@ -37,7 +37,7 @@ const struct file_operations afs_dir_file_operations = {
.readdir = afs_dir_readdir, .readdir = afs_dir_readdir,
}; };
struct inode_operations afs_dir_inode_operations = { const struct inode_operations afs_dir_inode_operations = {
.lookup = afs_dir_lookup, .lookup = afs_dir_lookup,
.getattr = afs_inode_getattr, .getattr = afs_inode_getattr,
#if 0 /* TODO */ #if 0 /* TODO */
......
...@@ -30,7 +30,7 @@ static int afs_file_readpage(struct file *file, struct page *page); ...@@ -30,7 +30,7 @@ static int afs_file_readpage(struct file *file, struct page *page);
static void afs_file_invalidatepage(struct page *page, unsigned long offset); static void afs_file_invalidatepage(struct page *page, unsigned long offset);
static int afs_file_releasepage(struct page *page, gfp_t gfp_flags); static int afs_file_releasepage(struct page *page, gfp_t gfp_flags);
struct inode_operations afs_file_inode_operations = { const struct inode_operations afs_file_inode_operations = {
.getattr = afs_inode_getattr, .getattr = afs_inode_getattr,
}; };
......
...@@ -63,14 +63,14 @@ extern struct cachefs_index_def afs_cache_cell_index_def; ...@@ -63,14 +63,14 @@ extern struct cachefs_index_def afs_cache_cell_index_def;
/* /*
* dir.c * dir.c
*/ */
extern struct inode_operations afs_dir_inode_operations; extern const struct inode_operations afs_dir_inode_operations;
extern const struct file_operations afs_dir_file_operations; extern const struct file_operations afs_dir_file_operations;
/* /*
* file.c * file.c
*/ */
extern const struct address_space_operations afs_fs_aops; extern const struct address_space_operations afs_fs_aops;
extern struct inode_operations afs_file_inode_operations; extern const struct inode_operations afs_file_inode_operations;
#ifdef AFS_CACHING_SUPPORT #ifdef AFS_CACHING_SUPPORT
extern int afs_cache_get_page_cookie(struct page *page, extern int afs_cache_get_page_cookie(struct page *page,
...@@ -104,7 +104,7 @@ extern struct cachefs_netfs afs_cache_netfs; ...@@ -104,7 +104,7 @@ extern struct cachefs_netfs afs_cache_netfs;
/* /*
* mntpt.c * mntpt.c
*/ */
extern struct inode_operations afs_mntpt_inode_operations; extern const struct inode_operations afs_mntpt_inode_operations;
extern const struct file_operations afs_mntpt_file_operations; extern const struct file_operations afs_mntpt_file_operations;
extern struct afs_timer afs_mntpt_expiry_timer; extern struct afs_timer afs_mntpt_expiry_timer;
extern struct afs_timer_ops afs_mntpt_expiry_timer_ops; extern struct afs_timer_ops afs_mntpt_expiry_timer_ops;
......
...@@ -36,7 +36,7 @@ const struct file_operations afs_mntpt_file_operations = { ...@@ -36,7 +36,7 @@ const struct file_operations afs_mntpt_file_operations = {
.open = afs_mntpt_open, .open = afs_mntpt_open,
}; };
struct inode_operations afs_mntpt_inode_operations = { const struct inode_operations afs_mntpt_inode_operations = {
.lookup = afs_mntpt_lookup, .lookup = afs_mntpt_lookup,
.follow_link = afs_mntpt_follow_link, .follow_link = afs_mntpt_follow_link,
.readlink = page_readlink, .readlink = page_readlink,
......
...@@ -142,8 +142,8 @@ struct autofs_dir_ent *autofs_expire(struct super_block *,struct autofs_sb_info ...@@ -142,8 +142,8 @@ struct autofs_dir_ent *autofs_expire(struct super_block *,struct autofs_sb_info
/* Operations structures */ /* Operations structures */
extern struct inode_operations autofs_root_inode_operations; extern const struct inode_operations autofs_root_inode_operations;
extern struct inode_operations autofs_symlink_inode_operations; extern const struct inode_operations autofs_symlink_inode_operations;
extern const struct file_operations autofs_root_operations; extern const struct file_operations autofs_root_operations;
/* Initializing function */ /* Initializing function */
......
...@@ -32,7 +32,7 @@ const struct file_operations autofs_root_operations = { ...@@ -32,7 +32,7 @@ const struct file_operations autofs_root_operations = {
.ioctl = autofs_root_ioctl, .ioctl = autofs_root_ioctl,
}; };
struct inode_operations autofs_root_inode_operations = { const struct inode_operations autofs_root_inode_operations = {
.lookup = autofs_root_lookup, .lookup = autofs_root_lookup,
.unlink = autofs_root_unlink, .unlink = autofs_root_unlink,
.symlink = autofs_root_symlink, .symlink = autofs_root_symlink,
......
...@@ -20,7 +20,7 @@ static void *autofs_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -20,7 +20,7 @@ static void *autofs_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
struct inode_operations autofs_symlink_inode_operations = { const struct inode_operations autofs_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = autofs_follow_link .follow_link = autofs_follow_link
}; };
...@@ -168,11 +168,11 @@ int autofs4_expire_multi(struct super_block *, struct vfsmount *, ...@@ -168,11 +168,11 @@ int autofs4_expire_multi(struct super_block *, struct vfsmount *,
/* Operations structures */ /* Operations structures */
extern struct inode_operations autofs4_symlink_inode_operations; extern const struct inode_operations autofs4_symlink_inode_operations;
extern struct inode_operations autofs4_dir_inode_operations; extern const struct inode_operations autofs4_dir_inode_operations;
extern struct inode_operations autofs4_root_inode_operations; extern const struct inode_operations autofs4_root_inode_operations;
extern struct inode_operations autofs4_indirect_root_inode_operations; extern const struct inode_operations autofs4_indirect_root_inode_operations;
extern struct inode_operations autofs4_direct_root_inode_operations; extern const struct inode_operations autofs4_direct_root_inode_operations;
extern const struct file_operations autofs4_dir_operations; extern const struct file_operations autofs4_dir_operations;
extern const struct file_operations autofs4_root_operations; extern const struct file_operations autofs4_root_operations;
......
...@@ -47,7 +47,7 @@ const struct file_operations autofs4_dir_operations = { ...@@ -47,7 +47,7 @@ const struct file_operations autofs4_dir_operations = {
.readdir = autofs4_dir_readdir, .readdir = autofs4_dir_readdir,
}; };
struct inode_operations autofs4_indirect_root_inode_operations = { const struct inode_operations autofs4_indirect_root_inode_operations = {
.lookup = autofs4_lookup, .lookup = autofs4_lookup,
.unlink = autofs4_dir_unlink, .unlink = autofs4_dir_unlink,
.symlink = autofs4_dir_symlink, .symlink = autofs4_dir_symlink,
...@@ -55,7 +55,7 @@ struct inode_operations autofs4_indirect_root_inode_operations = { ...@@ -55,7 +55,7 @@ struct inode_operations autofs4_indirect_root_inode_operations = {
.rmdir = autofs4_dir_rmdir, .rmdir = autofs4_dir_rmdir,
}; };
struct inode_operations autofs4_direct_root_inode_operations = { const struct inode_operations autofs4_direct_root_inode_operations = {
.lookup = autofs4_lookup, .lookup = autofs4_lookup,
.unlink = autofs4_dir_unlink, .unlink = autofs4_dir_unlink,
.mkdir = autofs4_dir_mkdir, .mkdir = autofs4_dir_mkdir,
...@@ -63,7 +63,7 @@ struct inode_operations autofs4_direct_root_inode_operations = { ...@@ -63,7 +63,7 @@ struct inode_operations autofs4_direct_root_inode_operations = {
.follow_link = autofs4_follow_link, .follow_link = autofs4_follow_link,
}; };
struct inode_operations autofs4_dir_inode_operations = { const struct inode_operations autofs4_dir_inode_operations = {
.lookup = autofs4_lookup, .lookup = autofs4_lookup,
.unlink = autofs4_dir_unlink, .unlink = autofs4_dir_unlink,
.symlink = autofs4_dir_symlink, .symlink = autofs4_dir_symlink,
......
...@@ -19,7 +19,7 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -19,7 +19,7 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
struct inode_operations autofs4_symlink_inode_operations = { const struct inode_operations autofs4_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = autofs4_follow_link .follow_link = autofs4_follow_link
}; };
...@@ -291,7 +291,7 @@ static int bad_inode_removexattr(struct dentry *dentry, const char *name) ...@@ -291,7 +291,7 @@ static int bad_inode_removexattr(struct dentry *dentry, const char *name)
return -EIO; return -EIO;
} }
static struct inode_operations bad_inode_ops = static const struct inode_operations bad_inode_ops =
{ {
.create = bad_inode_create, .create = bad_inode_create,
.lookup = bad_inode_lookup, .lookup = bad_inode_lookup,
......
...@@ -68,7 +68,7 @@ static const struct file_operations befs_dir_operations = { ...@@ -68,7 +68,7 @@ static const struct file_operations befs_dir_operations = {
.readdir = befs_readdir, .readdir = befs_readdir,
}; };
static struct inode_operations befs_dir_inode_operations = { static const struct inode_operations befs_dir_inode_operations = {
.lookup = befs_lookup, .lookup = befs_lookup,
}; };
...@@ -78,7 +78,7 @@ static const struct address_space_operations befs_aops = { ...@@ -78,7 +78,7 @@ static const struct address_space_operations befs_aops = {
.bmap = befs_bmap, .bmap = befs_bmap,
}; };
static struct inode_operations befs_symlink_inode_operations = { static const struct inode_operations befs_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = befs_follow_link, .follow_link = befs_follow_link,
.put_link = befs_put_link, .put_link = befs_put_link,
......
...@@ -48,12 +48,12 @@ static inline struct bfs_inode_info *BFS_I(struct inode *inode) ...@@ -48,12 +48,12 @@ static inline struct bfs_inode_info *BFS_I(struct inode *inode)
/* file.c */ /* file.c */
extern struct inode_operations bfs_file_inops; extern const struct inode_operations bfs_file_inops;
extern const struct file_operations bfs_file_operations; extern const struct file_operations bfs_file_operations;
extern const struct address_space_operations bfs_aops; extern const struct address_space_operations bfs_aops;
/* dir.c */ /* dir.c */
extern struct inode_operations bfs_dir_inops; extern const struct inode_operations bfs_dir_inops;
extern const struct file_operations bfs_dir_operations; extern const struct file_operations bfs_dir_operations;
#endif /* _FS_BFS_BFS_H */ #endif /* _FS_BFS_BFS_H */
...@@ -260,7 +260,7 @@ static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry, ...@@ -260,7 +260,7 @@ static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry,
return error; return error;
} }
struct inode_operations bfs_dir_inops = { const struct inode_operations bfs_dir_inops = {
.create = bfs_create, .create = bfs_create,
.lookup = bfs_lookup, .lookup = bfs_lookup,
.link = bfs_link, .link = bfs_link,
......
...@@ -164,4 +164,4 @@ const struct address_space_operations bfs_aops = { ...@@ -164,4 +164,4 @@ const struct address_space_operations bfs_aops = {
.bmap = bfs_bmap, .bmap = bfs_bmap,
}; };
struct inode_operations bfs_file_inops; const struct inode_operations bfs_file_inops;
...@@ -533,7 +533,7 @@ static struct file_system_type cifs_fs_type = { ...@@ -533,7 +533,7 @@ static struct file_system_type cifs_fs_type = {
.kill_sb = kill_anon_super, .kill_sb = kill_anon_super,
/* .fs_flags */ /* .fs_flags */
}; };
struct inode_operations cifs_dir_inode_ops = { const struct inode_operations cifs_dir_inode_ops = {
.create = cifs_create, .create = cifs_create,
.lookup = cifs_lookup, .lookup = cifs_lookup,
.getattr = cifs_getattr, .getattr = cifs_getattr,
...@@ -555,7 +555,7 @@ struct inode_operations cifs_dir_inode_ops = { ...@@ -555,7 +555,7 @@ struct inode_operations cifs_dir_inode_ops = {
#endif #endif
}; };
struct inode_operations cifs_file_inode_ops = { const struct inode_operations cifs_file_inode_ops = {
/* revalidate:cifs_revalidate, */ /* revalidate:cifs_revalidate, */
.setattr = cifs_setattr, .setattr = cifs_setattr,
.getattr = cifs_getattr, /* do we need this anymore? */ .getattr = cifs_getattr, /* do we need this anymore? */
...@@ -569,7 +569,7 @@ struct inode_operations cifs_file_inode_ops = { ...@@ -569,7 +569,7 @@ struct inode_operations cifs_file_inode_ops = {
#endif #endif
}; };
struct inode_operations cifs_symlink_inode_ops = { const struct inode_operations cifs_symlink_inode_ops = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = cifs_follow_link, .follow_link = cifs_follow_link,
.put_link = cifs_put_link, .put_link = cifs_put_link,
......
...@@ -42,7 +42,7 @@ extern void cifs_delete_inode(struct inode *); ...@@ -42,7 +42,7 @@ extern void cifs_delete_inode(struct inode *);
/* extern void cifs_write_inode(struct inode *); *//* BB not needed yet */ /* extern void cifs_write_inode(struct inode *); *//* BB not needed yet */
/* Functions related to inodes */ /* Functions related to inodes */
extern struct inode_operations cifs_dir_inode_ops; extern const struct inode_operations cifs_dir_inode_ops;
extern int cifs_create(struct inode *, struct dentry *, int, extern int cifs_create(struct inode *, struct dentry *, int,
struct nameidata *); struct nameidata *);
extern struct dentry * cifs_lookup(struct inode *, struct dentry *, extern struct dentry * cifs_lookup(struct inode *, struct dentry *,
...@@ -58,8 +58,8 @@ extern int cifs_revalidate(struct dentry *); ...@@ -58,8 +58,8 @@ extern int cifs_revalidate(struct dentry *);
extern int cifs_getattr(struct vfsmount *, struct dentry *, struct kstat *); extern int cifs_getattr(struct vfsmount *, struct dentry *, struct kstat *);
extern int cifs_setattr(struct dentry *, struct iattr *); extern int cifs_setattr(struct dentry *, struct iattr *);
extern struct inode_operations cifs_file_inode_ops; extern const struct inode_operations cifs_file_inode_ops;
extern struct inode_operations cifs_symlink_inode_ops; extern const struct inode_operations cifs_symlink_inode_ops;
/* Functions related to files and directories */ /* Functions related to files and directories */
extern const struct file_operations cifs_file_ops; extern const struct file_operations cifs_file_ops;
......
...@@ -16,7 +16,7 @@ static inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2) ...@@ -16,7 +16,7 @@ static inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2)
return memcmp(fid1, fid2, sizeof(*fid1)) == 0; return memcmp(fid1, fid2, sizeof(*fid1)) == 0;
} }
static struct inode_operations coda_symlink_inode_operations = { static const struct inode_operations coda_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,
......
...@@ -66,7 +66,7 @@ static struct dentry_operations coda_dentry_operations = ...@@ -66,7 +66,7 @@ static struct dentry_operations coda_dentry_operations =
.d_delete = coda_dentry_delete, .d_delete = coda_dentry_delete,
}; };
struct inode_operations coda_dir_inode_operations = const struct inode_operations coda_dir_inode_operations =
{ {
.create = coda_create, .create = coda_create,
.lookup = coda_lookup, .lookup = coda_lookup,
......
...@@ -271,7 +271,7 @@ int coda_setattr(struct dentry *de, struct iattr *iattr) ...@@ -271,7 +271,7 @@ int coda_setattr(struct dentry *de, struct iattr *iattr)
return error; return error;
} }
struct inode_operations coda_file_inode_operations = { const struct inode_operations coda_file_inode_operations = {
.permission = coda_permission, .permission = coda_permission,
.getattr = coda_getattr, .getattr = coda_getattr,
.setattr = coda_setattr, .setattr = coda_setattr,
......
...@@ -30,7 +30,7 @@ static int coda_pioctl(struct inode * inode, struct file * filp, ...@@ -30,7 +30,7 @@ static int coda_pioctl(struct inode * inode, struct file * filp,
unsigned int cmd, unsigned long user_data); unsigned int cmd, unsigned long user_data);
/* exported from this file */ /* exported from this file */
struct inode_operations coda_ioctl_inode_operations = const struct inode_operations coda_ioctl_inode_operations =
{ {
.permission = coda_ioctl_permission, .permission = coda_ioctl_permission,
.setattr = coda_setattr, .setattr = coda_setattr,
......
...@@ -75,8 +75,8 @@ extern struct super_block * configfs_sb; ...@@ -75,8 +75,8 @@ extern struct super_block * configfs_sb;
extern const struct file_operations configfs_dir_operations; extern const struct file_operations configfs_dir_operations;
extern const struct file_operations configfs_file_operations; extern const struct file_operations configfs_file_operations;
extern const struct file_operations bin_fops; extern const struct file_operations bin_fops;
extern struct inode_operations configfs_dir_inode_operations; extern const struct inode_operations configfs_dir_inode_operations;
extern struct inode_operations configfs_symlink_inode_operations; extern const struct inode_operations configfs_symlink_inode_operations;
extern int configfs_symlink(struct inode *dir, struct dentry *dentry, extern int configfs_symlink(struct inode *dir, struct dentry *dentry,
const char *symname); const char *symname);
......
...@@ -930,7 +930,7 @@ static int configfs_rmdir(struct inode *dir, struct dentry *dentry) ...@@ -930,7 +930,7 @@ static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
return 0; return 0;
} }
struct inode_operations configfs_dir_inode_operations = { const struct inode_operations configfs_dir_inode_operations = {
.mkdir = configfs_mkdir, .mkdir = configfs_mkdir,
.rmdir = configfs_rmdir, .rmdir = configfs_rmdir,
.symlink = configfs_symlink, .symlink = configfs_symlink,
......
...@@ -49,7 +49,7 @@ static struct backing_dev_info configfs_backing_dev_info = { ...@@ -49,7 +49,7 @@ static struct backing_dev_info configfs_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 configfs_inode_operations ={ static const struct inode_operations configfs_inode_operations ={
.setattr = configfs_setattr, .setattr = configfs_setattr,
}; };
......
...@@ -272,7 +272,7 @@ static void configfs_put_link(struct dentry *dentry, struct nameidata *nd, ...@@ -272,7 +272,7 @@ static void configfs_put_link(struct dentry *dentry, struct nameidata *nd,
} }
} }
struct inode_operations configfs_symlink_inode_operations = { const struct inode_operations configfs_symlink_inode_operations = {
.follow_link = configfs_follow_link, .follow_link = configfs_follow_link,
.readlink = generic_readlink, .readlink = generic_readlink,
.put_link = configfs_put_link, .put_link = configfs_put_link,
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
static struct super_operations cramfs_ops; static struct super_operations cramfs_ops;
static struct inode_operations cramfs_dir_inode_operations; static const struct inode_operations cramfs_dir_inode_operations;
static const struct file_operations cramfs_directory_operations; static const struct file_operations cramfs_directory_operations;
static const struct address_space_operations cramfs_aops; static const struct address_space_operations cramfs_aops;
...@@ -518,7 +518,7 @@ static const struct file_operations cramfs_directory_operations = { ...@@ -518,7 +518,7 @@ static const struct file_operations cramfs_directory_operations = {
.readdir = cramfs_readdir, .readdir = cramfs_readdir,
}; };
static struct inode_operations cramfs_dir_inode_operations = { static const struct inode_operations cramfs_dir_inode_operations = {
.lookup = cramfs_lookup, .lookup = cramfs_lookup,
}; };
......
...@@ -446,9 +446,9 @@ void __ecryptfs_printk(const char *fmt, ...); ...@@ -446,9 +446,9 @@ void __ecryptfs_printk(const char *fmt, ...);
extern const struct file_operations ecryptfs_main_fops; extern const struct file_operations ecryptfs_main_fops;
extern const struct file_operations ecryptfs_dir_fops; extern const struct file_operations ecryptfs_dir_fops;
extern struct inode_operations ecryptfs_main_iops; extern const struct inode_operations ecryptfs_main_iops;
extern struct inode_operations ecryptfs_dir_iops; extern const struct inode_operations ecryptfs_dir_iops;
extern struct inode_operations ecryptfs_symlink_iops; extern const struct inode_operations ecryptfs_symlink_iops;
extern struct super_operations ecryptfs_sops; extern struct super_operations ecryptfs_sops;
extern struct dentry_operations ecryptfs_dops; extern struct dentry_operations ecryptfs_dops;
extern struct address_space_operations ecryptfs_aops; extern struct address_space_operations ecryptfs_aops;
......
...@@ -989,7 +989,7 @@ int ecryptfs_inode_set(struct inode *inode, void *lower_inode) ...@@ -989,7 +989,7 @@ int ecryptfs_inode_set(struct inode *inode, void *lower_inode)
return 0; return 0;
} }
struct inode_operations ecryptfs_symlink_iops = { const struct inode_operations ecryptfs_symlink_iops = {
.readlink = ecryptfs_readlink, .readlink = ecryptfs_readlink,
.follow_link = ecryptfs_follow_link, .follow_link = ecryptfs_follow_link,
.put_link = ecryptfs_put_link, .put_link = ecryptfs_put_link,
...@@ -1001,7 +1001,7 @@ struct inode_operations ecryptfs_symlink_iops = { ...@@ -1001,7 +1001,7 @@ struct inode_operations ecryptfs_symlink_iops = {
.removexattr = ecryptfs_removexattr .removexattr = ecryptfs_removexattr
}; };
struct inode_operations ecryptfs_dir_iops = { const struct inode_operations ecryptfs_dir_iops = {
.create = ecryptfs_create, .create = ecryptfs_create,
.lookup = ecryptfs_lookup, .lookup = ecryptfs_lookup,
.link = ecryptfs_link, .link = ecryptfs_link,
...@@ -1019,7 +1019,7 @@ struct inode_operations ecryptfs_dir_iops = { ...@@ -1019,7 +1019,7 @@ struct inode_operations ecryptfs_dir_iops = {
.removexattr = ecryptfs_removexattr .removexattr = ecryptfs_removexattr
}; };
struct inode_operations ecryptfs_main_iops = { const struct inode_operations ecryptfs_main_iops = {
.permission = ecryptfs_permission, .permission = ecryptfs_permission,
.setattr = ecryptfs_setattr, .setattr = ecryptfs_setattr,
.setxattr = ecryptfs_setxattr, .setxattr = ecryptfs_setxattr,
......
...@@ -15,7 +15,7 @@ const struct file_operations efs_dir_operations = { ...@@ -15,7 +15,7 @@ const struct file_operations efs_dir_operations = {
.readdir = efs_readdir, .readdir = efs_readdir,
}; };
struct inode_operations efs_dir_inode_operations = { const struct inode_operations efs_dir_inode_operations = {
.lookup = efs_lookup, .lookup = efs_lookup,
}; };
......
...@@ -158,7 +158,7 @@ extern void ext2_write_super (struct super_block *); ...@@ -158,7 +158,7 @@ extern void ext2_write_super (struct super_block *);
extern const struct file_operations ext2_dir_operations; extern const struct file_operations ext2_dir_operations;
/* file.c */ /* file.c */
extern struct inode_operations ext2_file_inode_operations; extern const struct inode_operations ext2_file_inode_operations;
extern const struct file_operations ext2_file_operations; extern const struct file_operations ext2_file_operations;
extern const struct file_operations ext2_xip_file_operations; extern const struct file_operations ext2_xip_file_operations;
...@@ -168,9 +168,9 @@ extern const struct address_space_operations ext2_aops_xip; ...@@ -168,9 +168,9 @@ extern const struct address_space_operations ext2_aops_xip;
extern const struct address_space_operations ext2_nobh_aops; extern const struct address_space_operations ext2_nobh_aops;
/* namei.c */ /* namei.c */
extern struct inode_operations ext2_dir_inode_operations; extern const struct inode_operations ext2_dir_inode_operations;
extern struct inode_operations ext2_special_inode_operations; extern const struct inode_operations ext2_special_inode_operations;
/* symlink.c */ /* symlink.c */
extern struct inode_operations ext2_fast_symlink_inode_operations; extern const struct inode_operations ext2_fast_symlink_inode_operations;
extern struct inode_operations ext2_symlink_inode_operations; extern const struct inode_operations ext2_symlink_inode_operations;
...@@ -75,7 +75,7 @@ const struct file_operations ext2_xip_file_operations = { ...@@ -75,7 +75,7 @@ const struct file_operations ext2_xip_file_operations = {
}; };
#endif #endif
struct inode_operations ext2_file_inode_operations = { const struct inode_operations ext2_file_inode_operations = {
.truncate = ext2_truncate, .truncate = ext2_truncate,
#ifdef CONFIG_EXT2_FS_XATTR #ifdef CONFIG_EXT2_FS_XATTR
.setxattr = generic_setxattr, .setxattr = generic_setxattr,
......
...@@ -373,7 +373,7 @@ static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry, ...@@ -373,7 +373,7 @@ static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry,
return err; return err;
} }
struct inode_operations ext2_dir_inode_operations = { const struct inode_operations ext2_dir_inode_operations = {
.create = ext2_create, .create = ext2_create,
.lookup = ext2_lookup, .lookup = ext2_lookup,
.link = ext2_link, .link = ext2_link,
...@@ -393,7 +393,7 @@ struct inode_operations ext2_dir_inode_operations = { ...@@ -393,7 +393,7 @@ struct inode_operations ext2_dir_inode_operations = {
.permission = ext2_permission, .permission = ext2_permission,
}; };
struct inode_operations ext2_special_inode_operations = { const struct inode_operations ext2_special_inode_operations = {
#ifdef CONFIG_EXT2_FS_XATTR #ifdef CONFIG_EXT2_FS_XATTR
.setxattr = generic_setxattr, .setxattr = generic_setxattr,
.getxattr = generic_getxattr, .getxattr = generic_getxattr,
......
...@@ -28,7 +28,7 @@ static void *ext2_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -28,7 +28,7 @@ static void *ext2_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
struct inode_operations ext2_symlink_inode_operations = { const struct inode_operations ext2_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,
...@@ -40,7 +40,7 @@ struct inode_operations ext2_symlink_inode_operations = { ...@@ -40,7 +40,7 @@ struct inode_operations ext2_symlink_inode_operations = {
#endif #endif
}; };
struct inode_operations ext2_fast_symlink_inode_operations = { const struct inode_operations ext2_fast_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = ext2_follow_link, .follow_link = ext2_follow_link,
#ifdef CONFIG_EXT2_FS_XATTR #ifdef CONFIG_EXT2_FS_XATTR
......
...@@ -125,7 +125,7 @@ const struct file_operations ext3_file_operations = { ...@@ -125,7 +125,7 @@ const struct file_operations ext3_file_operations = {
.splice_write = generic_file_splice_write, .splice_write = generic_file_splice_write,
}; };
struct inode_operations ext3_file_inode_operations = { const struct inode_operations ext3_file_inode_operations = {
.truncate = ext3_truncate, .truncate = ext3_truncate,
.setattr = ext3_setattr, .setattr = ext3_setattr,
#ifdef CONFIG_EXT3_FS_XATTR #ifdef CONFIG_EXT3_FS_XATTR
......
...@@ -2365,7 +2365,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry, ...@@ -2365,7 +2365,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry,
/* /*
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations ext3_dir_inode_operations = { const struct inode_operations ext3_dir_inode_operations = {
.create = ext3_create, .create = ext3_create,
.lookup = ext3_lookup, .lookup = ext3_lookup,
.link = ext3_link, .link = ext3_link,
...@@ -2385,7 +2385,7 @@ struct inode_operations ext3_dir_inode_operations = { ...@@ -2385,7 +2385,7 @@ struct inode_operations ext3_dir_inode_operations = {
.permission = ext3_permission, .permission = ext3_permission,
}; };
struct inode_operations ext3_special_inode_operations = { const struct inode_operations ext3_special_inode_operations = {
.setattr = ext3_setattr, .setattr = ext3_setattr,
#ifdef CONFIG_EXT3_FS_XATTR #ifdef CONFIG_EXT3_FS_XATTR
.setxattr = generic_setxattr, .setxattr = generic_setxattr,
......
...@@ -30,7 +30,7 @@ static void * ext3_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -30,7 +30,7 @@ static void * ext3_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
struct inode_operations ext3_symlink_inode_operations = { const struct inode_operations ext3_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,
...@@ -42,7 +42,7 @@ struct inode_operations ext3_symlink_inode_operations = { ...@@ -42,7 +42,7 @@ struct inode_operations ext3_symlink_inode_operations = {
#endif #endif
}; };
struct inode_operations ext3_fast_symlink_inode_operations = { const struct inode_operations ext3_fast_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = ext3_follow_link, .follow_link = ext3_follow_link,
#ifdef CONFIG_EXT3_FS_XATTR #ifdef CONFIG_EXT3_FS_XATTR
......
...@@ -125,7 +125,7 @@ const struct file_operations ext4_file_operations = { ...@@ -125,7 +125,7 @@ const struct file_operations ext4_file_operations = {
.splice_write = generic_file_splice_write, .splice_write = generic_file_splice_write,
}; };
struct inode_operations ext4_file_inode_operations = { const struct inode_operations ext4_file_inode_operations = {
.truncate = ext4_truncate, .truncate = ext4_truncate,
.setattr = ext4_setattr, .setattr = ext4_setattr,
#ifdef CONFIG_EXT4DEV_FS_XATTR #ifdef CONFIG_EXT4DEV_FS_XATTR
......
...@@ -2363,7 +2363,7 @@ static int ext4_rename (struct inode * old_dir, struct dentry *old_dentry, ...@@ -2363,7 +2363,7 @@ static int ext4_rename (struct inode * old_dir, struct dentry *old_dentry,
/* /*
* directories can handle most operations... * directories can handle most operations...
*/ */
struct inode_operations ext4_dir_inode_operations = { const struct inode_operations ext4_dir_inode_operations = {
.create = ext4_create, .create = ext4_create,
.lookup = ext4_lookup, .lookup = ext4_lookup,
.link = ext4_link, .link = ext4_link,
...@@ -2383,7 +2383,7 @@ struct inode_operations ext4_dir_inode_operations = { ...@@ -2383,7 +2383,7 @@ struct inode_operations ext4_dir_inode_operations = {
.permission = ext4_permission, .permission = ext4_permission,
}; };
struct inode_operations ext4_special_inode_operations = { const struct inode_operations ext4_special_inode_operations = {
.setattr = ext4_setattr, .setattr = ext4_setattr,
#ifdef CONFIG_EXT4DEV_FS_XATTR #ifdef CONFIG_EXT4DEV_FS_XATTR
.setxattr = generic_setxattr, .setxattr = generic_setxattr,
......
...@@ -30,7 +30,7 @@ static void * ext4_follow_link(struct dentry *dentry, struct nameidata *nd) ...@@ -30,7 +30,7 @@ static void * ext4_follow_link(struct dentry *dentry, struct nameidata *nd)
return NULL; return NULL;
} }
struct inode_operations ext4_symlink_inode_operations = { const struct inode_operations ext4_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,
...@@ -42,7 +42,7 @@ struct inode_operations ext4_symlink_inode_operations = { ...@@ -42,7 +42,7 @@ struct inode_operations ext4_symlink_inode_operations = {
#endif #endif
}; };
struct inode_operations ext4_fast_symlink_inode_operations = { const struct inode_operations ext4_fast_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = ext4_follow_link, .follow_link = ext4_follow_link,
#ifdef CONFIG_EXT4DEV_FS_XATTR #ifdef CONFIG_EXT4DEV_FS_XATTR
......
...@@ -312,7 +312,7 @@ int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) ...@@ -312,7 +312,7 @@ int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
} }
EXPORT_SYMBOL_GPL(fat_getattr); EXPORT_SYMBOL_GPL(fat_getattr);
struct inode_operations fat_file_inode_operations = { const struct inode_operations fat_file_inode_operations = {
.truncate = fat_truncate, .truncate = fat_truncate,
.setattr = fat_notify_change, .setattr = fat_notify_change,
.getattr = fat_getattr, .getattr = fat_getattr,
......
...@@ -1151,7 +1151,7 @@ static int fat_read_root(struct inode *inode) ...@@ -1151,7 +1151,7 @@ static int fat_read_root(struct inode *inode)
* Read the super block of an MS-DOS FS. * Read the super block of an MS-DOS FS.
*/ */
int fat_fill_super(struct super_block *sb, void *data, int silent, 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)
{ {
struct inode *root_inode = NULL; struct inode *root_inode = NULL;
struct buffer_head *bh; struct buffer_head *bh;
......
...@@ -62,7 +62,7 @@ extern void vxfs_read_inode(struct inode *); ...@@ -62,7 +62,7 @@ extern void vxfs_read_inode(struct inode *);
extern void vxfs_clear_inode(struct inode *); extern void vxfs_clear_inode(struct inode *);
/* vxfs_lookup.c */ /* vxfs_lookup.c */
extern struct inode_operations vxfs_dir_inode_ops; extern const struct inode_operations vxfs_dir_inode_ops;
extern const struct file_operations vxfs_dir_operations; extern const struct file_operations vxfs_dir_operations;
/* vxfs_olt.c */ /* vxfs_olt.c */
......
...@@ -48,7 +48,7 @@ static int vxfs_immed_readpage(struct file *, struct page *); ...@@ -48,7 +48,7 @@ static int vxfs_immed_readpage(struct file *, struct page *);
* Unliked all other operations we do not go through the pagecache, * Unliked all other operations we do not go through the pagecache,
* but do all work directly on the inode. * but do all work directly on the inode.
*/ */
struct inode_operations vxfs_immed_symlink_iops = { const struct inode_operations vxfs_immed_symlink_iops = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = vxfs_immed_follow_link, .follow_link = vxfs_immed_follow_link,
}; };
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
extern const struct address_space_operations vxfs_aops; extern const struct address_space_operations vxfs_aops;
extern const struct address_space_operations vxfs_immed_aops; extern const struct address_space_operations vxfs_immed_aops;
extern struct inode_operations vxfs_immed_symlink_iops; extern const struct inode_operations vxfs_immed_symlink_iops;
struct kmem_cache *vxfs_inode_cachep; struct kmem_cache *vxfs_inode_cachep;
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
static struct dentry * vxfs_lookup(struct inode *, struct dentry *, struct nameidata *); static struct dentry * vxfs_lookup(struct inode *, struct dentry *, struct nameidata *);
static int vxfs_readdir(struct file *, void *, filldir_t); static int vxfs_readdir(struct file *, void *, filldir_t);
struct inode_operations vxfs_dir_inode_ops = { const struct inode_operations vxfs_dir_inode_ops = {
.lookup = vxfs_lookup, .lookup = vxfs_lookup,
}; };
......
...@@ -73,7 +73,7 @@ static struct dentry *fuse_ctl_add_dentry(struct dentry *parent, ...@@ -73,7 +73,7 @@ static struct dentry *fuse_ctl_add_dentry(struct dentry *parent,
struct fuse_conn *fc, struct fuse_conn *fc,
const char *name, const char *name,
int mode, int nlink, int mode, int nlink,
struct inode_operations *iop, const struct inode_operations *iop,
const struct file_operations *fop) const struct file_operations *fop)
{ {
struct dentry *dentry; struct dentry *dentry;
......
...@@ -1242,7 +1242,7 @@ static int fuse_removexattr(struct dentry *entry, const char *name) ...@@ -1242,7 +1242,7 @@ static int fuse_removexattr(struct dentry *entry, const char *name)
return err; return err;
} }
static struct inode_operations fuse_dir_inode_operations = { static const struct inode_operations fuse_dir_inode_operations = {
.lookup = fuse_lookup, .lookup = fuse_lookup,
.mkdir = fuse_mkdir, .mkdir = fuse_mkdir,
.symlink = fuse_symlink, .symlink = fuse_symlink,
...@@ -1270,7 +1270,7 @@ static const struct file_operations fuse_dir_operations = { ...@@ -1270,7 +1270,7 @@ static const struct file_operations fuse_dir_operations = {
.fsync = fuse_dir_fsync, .fsync = fuse_dir_fsync,
}; };
static struct inode_operations fuse_common_inode_operations = { static const struct inode_operations fuse_common_inode_operations = {
.setattr = fuse_setattr, .setattr = fuse_setattr,
.permission = fuse_permission, .permission = fuse_permission,
.getattr = fuse_getattr, .getattr = fuse_getattr,
...@@ -1280,7 +1280,7 @@ static struct inode_operations fuse_common_inode_operations = { ...@@ -1280,7 +1280,7 @@ static struct inode_operations fuse_common_inode_operations = {
.removexattr = fuse_removexattr, .removexattr = fuse_removexattr,
}; };
static struct inode_operations fuse_symlink_inode_operations = { static const struct inode_operations fuse_symlink_inode_operations = {
.setattr = fuse_setattr, .setattr = fuse_setattr,
.follow_link = fuse_follow_link, .follow_link = fuse_follow_link,
.put_link = fuse_put_link, .put_link = fuse_put_link,
......
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