Btrfs: constify dentry_operations
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 9 Oct 2009 13:54:36 +0000 (09:54 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 9 Oct 2009 13:54:36 +0000 (09:54 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c

index 16ddb19dda862b8b7c5ea541a701dd7cd4643e8d..36a19cd43e035c49d87e01b10c5a80e8b5b3fcd9 100644 (file)
@@ -2330,7 +2330,7 @@ int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode);
 void btrfs_orphan_cleanup(struct btrfs_root *root);
 int btrfs_cont_expand(struct inode *inode, loff_t size);
 int btrfs_invalidate_inodes(struct btrfs_root *root);
-extern struct dentry_operations btrfs_dentry_operations;
+extern const struct dentry_operations btrfs_dentry_operations;
 
 /* ioctl.c */
 long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
index d3585cb6483c5da395a3c300d4cbfae9afa5c7e1..d960492d3d883a7ca3962f74cfc79668ae11ef3f 100644 (file)
@@ -5840,6 +5840,6 @@ static struct inode_operations btrfs_symlink_inode_operations = {
        .removexattr    = btrfs_removexattr,
 };
 
-struct dentry_operations btrfs_dentry_operations = {
+const struct dentry_operations btrfs_dentry_operations = {
        .d_delete       = btrfs_dentry_delete,
 };