diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-10-09 09:54:36 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-10-09 09:54:36 -0400 |
commit | 82d339d9b3a6395f17d3253887653250b693b74b (patch) | |
tree | 04671df82289708192bd650c67eaa2f8a999132b | |
parent | 94fcca9f8999e7828d5f4dc181daa39cad2af38a (diff) |
Btrfs: constify dentry_operations
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r-- | fs/btrfs/ctree.h | 2 | ||||
-rw-r--r-- | fs/btrfs/inode.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 16ddb19dda86..36a19cd43e03 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2330,7 +2330,7 @@ int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode); | |||
2330 | void btrfs_orphan_cleanup(struct btrfs_root *root); | 2330 | void btrfs_orphan_cleanup(struct btrfs_root *root); |
2331 | int btrfs_cont_expand(struct inode *inode, loff_t size); | 2331 | int btrfs_cont_expand(struct inode *inode, loff_t size); |
2332 | int btrfs_invalidate_inodes(struct btrfs_root *root); | 2332 | int btrfs_invalidate_inodes(struct btrfs_root *root); |
2333 | extern struct dentry_operations btrfs_dentry_operations; | 2333 | extern const struct dentry_operations btrfs_dentry_operations; |
2334 | 2334 | ||
2335 | /* ioctl.c */ | 2335 | /* ioctl.c */ |
2336 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | 2336 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d3585cb6483c..d960492d3d88 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -5840,6 +5840,6 @@ static struct inode_operations btrfs_symlink_inode_operations = { | |||
5840 | .removexattr = btrfs_removexattr, | 5840 | .removexattr = btrfs_removexattr, |
5841 | }; | 5841 | }; |
5842 | 5842 | ||
5843 | struct dentry_operations btrfs_dentry_operations = { | 5843 | const struct dentry_operations btrfs_dentry_operations = { |
5844 | .d_delete = btrfs_dentry_delete, | 5844 | .d_delete = btrfs_dentry_delete, |
5845 | }; | 5845 | }; |