You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
const: mark remaining inode_operations as const
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
7f09410bbc
commit
6e1d5dcc2b
+1
-1
@@ -151,7 +151,7 @@ struct file_operations nilfs_file_operations = {
|
||||
.splice_read = generic_file_splice_read,
|
||||
};
|
||||
|
||||
struct inode_operations nilfs_file_inode_operations = {
|
||||
const struct inode_operations nilfs_file_inode_operations = {
|
||||
.truncate = nilfs_truncate,
|
||||
.setattr = nilfs_setattr,
|
||||
.permission = nilfs_permission,
|
||||
|
||||
+1
-1
@@ -432,7 +432,7 @@ static const struct address_space_operations def_mdt_aops = {
|
||||
.sync_page = block_sync_page,
|
||||
};
|
||||
|
||||
static struct inode_operations def_mdt_iops;
|
||||
static const struct inode_operations def_mdt_iops;
|
||||
static struct file_operations def_mdt_fops;
|
||||
|
||||
/*
|
||||
|
||||
+3
-3
@@ -448,7 +448,7 @@ out:
|
||||
return err;
|
||||
}
|
||||
|
||||
struct inode_operations nilfs_dir_inode_operations = {
|
||||
const struct inode_operations nilfs_dir_inode_operations = {
|
||||
.create = nilfs_create,
|
||||
.lookup = nilfs_lookup,
|
||||
.link = nilfs_link,
|
||||
@@ -462,12 +462,12 @@ struct inode_operations nilfs_dir_inode_operations = {
|
||||
.permission = nilfs_permission,
|
||||
};
|
||||
|
||||
struct inode_operations nilfs_special_inode_operations = {
|
||||
const struct inode_operations nilfs_special_inode_operations = {
|
||||
.setattr = nilfs_setattr,
|
||||
.permission = nilfs_permission,
|
||||
};
|
||||
|
||||
struct inode_operations nilfs_symlink_inode_operations = {
|
||||
const struct inode_operations nilfs_symlink_inode_operations = {
|
||||
.readlink = generic_readlink,
|
||||
.follow_link = page_follow_link_light,
|
||||
.put_link = page_put_link,
|
||||
|
||||
+4
-4
@@ -295,12 +295,12 @@ void nilfs_clear_gcdat_inode(struct the_nilfs *);
|
||||
* Inodes and files operations
|
||||
*/
|
||||
extern struct file_operations nilfs_dir_operations;
|
||||
extern struct inode_operations nilfs_file_inode_operations;
|
||||
extern const struct inode_operations nilfs_file_inode_operations;
|
||||
extern struct file_operations nilfs_file_operations;
|
||||
extern const struct address_space_operations nilfs_aops;
|
||||
extern struct inode_operations nilfs_dir_inode_operations;
|
||||
extern struct inode_operations nilfs_special_inode_operations;
|
||||
extern struct inode_operations nilfs_symlink_inode_operations;
|
||||
extern const struct inode_operations nilfs_dir_inode_operations;
|
||||
extern const struct inode_operations nilfs_special_inode_operations;
|
||||
extern const struct inode_operations nilfs_symlink_inode_operations;
|
||||
|
||||
/*
|
||||
* filesystem type
|
||||
|
||||
Reference in New Issue
Block a user