mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
[PATCH] mark address_space_operations const
Same as with already do with the file operations: keep them in .rodata and prevents people from doing runtime patching. Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Steven French <sfrench@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
a052b68b1e
commit
f5e54d6e53
89 changed files with 121 additions and 121 deletions
|
|
@ -27,8 +27,8 @@ extern struct inode_operations coda_dir_inode_operations;
|
|||
extern struct inode_operations coda_file_inode_operations;
|
||||
extern struct inode_operations coda_ioctl_inode_operations;
|
||||
|
||||
extern struct address_space_operations coda_file_aops;
|
||||
extern struct address_space_operations coda_symlink_aops;
|
||||
extern const struct address_space_operations coda_file_aops;
|
||||
extern const struct address_space_operations coda_symlink_aops;
|
||||
|
||||
extern const struct file_operations coda_dir_operations;
|
||||
extern const struct file_operations coda_file_operations;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ struct statfs;
|
|||
|
||||
extern struct inode_operations efs_dir_inode_operations;
|
||||
extern const struct file_operations efs_dir_operations;
|
||||
extern struct address_space_operations efs_symlink_aops;
|
||||
extern const struct address_space_operations efs_symlink_aops;
|
||||
|
||||
extern void efs_read_inode(struct inode *);
|
||||
extern efs_block_t efs_map_block(struct inode *, efs_block_t);
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ struct address_space {
|
|||
unsigned int truncate_count; /* Cover race condition with truncate */
|
||||
unsigned long nrpages; /* number of total pages */
|
||||
pgoff_t writeback_index;/* writeback starts here */
|
||||
struct address_space_operations *a_ops; /* methods */
|
||||
const struct address_space_operations *a_ops; /* methods */
|
||||
unsigned long flags; /* error bits/gfp mask */
|
||||
struct backing_dev_info *backing_dev_info; /* device readahead, etc */
|
||||
spinlock_t private_lock; /* for use by the address_space */
|
||||
|
|
@ -1405,7 +1405,7 @@ extern void bd_forget(struct inode *inode);
|
|||
extern void bdput(struct block_device *);
|
||||
extern struct block_device *open_by_devnum(dev_t, unsigned);
|
||||
extern const struct file_operations def_blk_fops;
|
||||
extern struct address_space_operations def_blk_aops;
|
||||
extern const struct address_space_operations def_blk_aops;
|
||||
extern const struct file_operations def_chr_fops;
|
||||
extern const struct file_operations bad_sock_fops;
|
||||
extern const struct file_operations def_fifo_fops;
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ extern struct inode_operations nfs_file_inode_operations;
|
|||
extern struct inode_operations nfs3_file_inode_operations;
|
||||
#endif /* CONFIG_NFS_V3 */
|
||||
extern const struct file_operations nfs_file_operations;
|
||||
extern struct address_space_operations nfs_file_aops;
|
||||
extern const struct address_space_operations nfs_file_aops;
|
||||
|
||||
static inline struct rpc_cred *nfs_file_cred(struct file *file)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1973,7 +1973,7 @@ void reiserfs_unmap_buffer(struct buffer_head *);
|
|||
/* file.c */
|
||||
extern struct inode_operations reiserfs_file_inode_operations;
|
||||
extern const struct file_operations reiserfs_file_operations;
|
||||
extern struct address_space_operations reiserfs_address_space_operations;
|
||||
extern const struct address_space_operations reiserfs_address_space_operations;
|
||||
|
||||
/* fix_nodes.c */
|
||||
|
||||
|
|
|
|||
|
|
@ -966,7 +966,7 @@ extern void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de,
|
|||
extern struct inode_operations ufs_file_inode_operations;
|
||||
extern const struct file_operations ufs_file_operations;
|
||||
|
||||
extern struct address_space_operations ufs_aops;
|
||||
extern const struct address_space_operations ufs_aops;
|
||||
|
||||
/* ialloc.c */
|
||||
extern void ufs_free_inode (struct inode *inode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue