mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
iomap: constify struct iomap_ops
Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
This commit is contained in:
parent
b6f41e4482
commit
8ff6daa17b
11 changed files with 33 additions and 33 deletions
|
|
@ -814,7 +814,7 @@ extern const struct file_operations ext2_file_operations;
|
|||
/* inode.c */
|
||||
extern const struct address_space_operations ext2_aops;
|
||||
extern const struct address_space_operations ext2_nobh_aops;
|
||||
extern struct iomap_ops ext2_iomap_ops;
|
||||
extern const struct iomap_ops ext2_iomap_ops;
|
||||
|
||||
/* namei.c */
|
||||
extern const struct inode_operations ext2_dir_inode_operations;
|
||||
|
|
|
|||
|
|
@ -842,13 +842,13 @@ ext2_iomap_end(struct inode *inode, loff_t offset, loff_t length,
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct iomap_ops ext2_iomap_ops = {
|
||||
const struct iomap_ops ext2_iomap_ops = {
|
||||
.iomap_begin = ext2_iomap_begin,
|
||||
.iomap_end = ext2_iomap_end,
|
||||
};
|
||||
#else
|
||||
/* Define empty ops for !CONFIG_FS_DAX case to avoid ugly ifdefs */
|
||||
struct iomap_ops ext2_iomap_ops;
|
||||
const struct iomap_ops ext2_iomap_ops;
|
||||
#endif /* CONFIG_FS_DAX */
|
||||
|
||||
int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
||||
|
|
|
|||
Loading…
Reference in a new issue