From: Al Viro Date: Fri, 20 Feb 2009 05:59:13 +0000 (+0000) Subject: constify dentry_operations: FUSE X-Git-Tag: v2.6.30-rc1~647^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4269590a72934bb901b33b686e20605bf66653c4;p=thirdparty%2Flinux.git constify dentry_operations: FUSE Signed-off-by: Al Viro --- diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index fdff346e96fdc..06da05261e04a 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -224,7 +224,7 @@ static int invalid_nodeid(u64 nodeid) return !nodeid || nodeid == FUSE_ROOT_ID; } -struct dentry_operations fuse_dentry_operations = { +const struct dentry_operations fuse_dentry_operations = { .d_revalidate = fuse_dentry_revalidate, }; diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 5e64b815a5a16..6fc5aedaa0d52 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -493,7 +493,7 @@ static inline u64 get_node_id(struct inode *inode) /** Device operations */ extern const struct file_operations fuse_dev_operations; -extern struct dentry_operations fuse_dentry_operations; +extern const struct dentry_operations fuse_dentry_operations; /** * Get a filled in inode