mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -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 <[email protected]> Cc: Steven French <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a052b68b1e
commit
f5e54d6e53
89 changed files with 121 additions and 121 deletions
|
|
@ -305,7 +305,7 @@ static ssize_t jfs_direct_IO(int rw, struct kiocb *iocb,
|
|||
offset, nr_segs, jfs_get_block, NULL);
|
||||
}
|
||||
|
||||
struct address_space_operations jfs_aops = {
|
||||
const struct address_space_operations jfs_aops = {
|
||||
.readpage = jfs_readpage,
|
||||
.readpages = jfs_readpages,
|
||||
.writepage = jfs_writepage,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ extern void jfs_free_zero_link(struct inode *);
|
|||
extern struct dentry *jfs_get_parent(struct dentry *dentry);
|
||||
extern void jfs_set_inode_flags(struct inode *);
|
||||
|
||||
extern struct address_space_operations jfs_aops;
|
||||
extern const struct address_space_operations jfs_aops;
|
||||
extern struct inode_operations jfs_dir_inode_operations;
|
||||
extern const struct file_operations jfs_dir_operations;
|
||||
extern struct inode_operations jfs_file_inode_operations;
|
||||
|
|
|
|||
|
|
@ -577,7 +577,7 @@ static void metapage_invalidatepage(struct page *page, unsigned long offset)
|
|||
metapage_releasepage(page, 0);
|
||||
}
|
||||
|
||||
struct address_space_operations jfs_metapage_aops = {
|
||||
const struct address_space_operations jfs_metapage_aops = {
|
||||
.readpage = metapage_readpage,
|
||||
.writepage = metapage_writepage,
|
||||
.sync_page = block_sync_page,
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ static inline void metapage_homeok(struct metapage *mp)
|
|||
put_metapage(mp);
|
||||
}
|
||||
|
||||
extern struct address_space_operations jfs_metapage_aops;
|
||||
extern const struct address_space_operations jfs_metapage_aops;
|
||||
|
||||
/*
|
||||
* This routines invalidate all pages for an extent.
|
||||
|
|
|
|||
Loading…
Reference in a new issue