aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ctree.h2
-rw-r--r--fs/btrfs/file.c2
-rw-r--r--fs/btrfs/inode.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 8184f2feb2f..dd8ced9814c 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2335,7 +2335,7 @@ int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync);
2335int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, 2335int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end,
2336 int skip_pinned); 2336 int skip_pinned);
2337int btrfs_check_file(struct btrfs_root *root, struct inode *inode); 2337int btrfs_check_file(struct btrfs_root *root, struct inode *inode);
2338extern struct file_operations btrfs_file_operations; 2338extern const struct file_operations btrfs_file_operations;
2339int btrfs_drop_extents(struct btrfs_trans_handle *trans, 2339int btrfs_drop_extents(struct btrfs_trans_handle *trans,
2340 struct btrfs_root *root, struct inode *inode, 2340 struct btrfs_root *root, struct inode *inode,
2341 u64 start, u64 end, u64 locked_end, 2341 u64 start, u64 end, u64 locked_end,
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index ca784a7fbeb..f19e1259a97 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1213,7 +1213,7 @@ static int btrfs_file_mmap(struct file *filp, struct vm_area_struct *vma)
1213 return 0; 1213 return 0;
1214} 1214}
1215 1215
1216struct file_operations btrfs_file_operations = { 1216const struct file_operations btrfs_file_operations = {
1217 .llseek = generic_file_llseek, 1217 .llseek = generic_file_llseek,
1218 .read = do_sync_read, 1218 .read = do_sync_read,
1219 .aio_read = generic_file_aio_read, 1219 .aio_read = generic_file_aio_read,
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index f4001112df7..112e5aa8589 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -62,7 +62,7 @@ static const struct inode_operations btrfs_special_inode_operations;
62static const struct inode_operations btrfs_file_inode_operations; 62static const struct inode_operations btrfs_file_inode_operations;
63static const struct address_space_operations btrfs_aops; 63static const struct address_space_operations btrfs_aops;
64static const struct address_space_operations btrfs_symlink_aops; 64static const struct address_space_operations btrfs_symlink_aops;
65static struct file_operations btrfs_dir_file_operations; 65static const struct file_operations btrfs_dir_file_operations;
66static struct extent_io_ops btrfs_extent_io_ops; 66static struct extent_io_ops btrfs_extent_io_ops;
67 67
68static struct kmem_cache *btrfs_inode_cachep; 68static struct kmem_cache *btrfs_inode_cachep;
@@ -5715,7 +5715,7 @@ static const struct inode_operations btrfs_dir_ro_inode_operations = {
5715 .permission = btrfs_permission, 5715 .permission = btrfs_permission,
5716}; 5716};
5717 5717
5718static struct file_operations btrfs_dir_file_operations = { 5718static const struct file_operations btrfs_dir_file_operations = {
5719 .llseek = generic_file_llseek, 5719 .llseek = generic_file_llseek,
5720 .read = generic_read_dir, 5720 .read = generic_read_dir,
5721 .readdir = btrfs_real_readdir, 5721 .readdir = btrfs_real_readdir,