mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -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
|
|
@ -323,8 +323,8 @@ int hfsplus_file_extend(struct inode *);
|
|||
void hfsplus_file_truncate(struct inode *);
|
||||
|
||||
/* inode.c */
|
||||
extern struct address_space_operations hfsplus_aops;
|
||||
extern struct address_space_operations hfsplus_btree_aops;
|
||||
extern const struct address_space_operations hfsplus_aops;
|
||||
extern const struct address_space_operations hfsplus_btree_aops;
|
||||
|
||||
void hfsplus_inode_read_fork(struct inode *, struct hfsplus_fork_raw *);
|
||||
void hfsplus_inode_write_fork(struct inode *, struct hfsplus_fork_raw *);
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ static int hfsplus_writepages(struct address_space *mapping,
|
|||
return mpage_writepages(mapping, wbc, hfsplus_get_block);
|
||||
}
|
||||
|
||||
struct address_space_operations hfsplus_btree_aops = {
|
||||
const struct address_space_operations hfsplus_btree_aops = {
|
||||
.readpage = hfsplus_readpage,
|
||||
.writepage = hfsplus_writepage,
|
||||
.sync_page = block_sync_page,
|
||||
|
|
@ -119,7 +119,7 @@ struct address_space_operations hfsplus_btree_aops = {
|
|||
.releasepage = hfsplus_releasepage,
|
||||
};
|
||||
|
||||
struct address_space_operations hfsplus_aops = {
|
||||
const struct address_space_operations hfsplus_aops = {
|
||||
.readpage = hfsplus_readpage,
|
||||
.writepage = hfsplus_writepage,
|
||||
.sync_page = block_sync_page,
|
||||
|
|
|
|||
Loading…
Reference in a new issue