From cddcedce72d2d4b7cd165e472fee84cd7335cb98 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 3 Aug 2010 10:25:30 -0700 Subject: [PATCH] --- yaml --- r: 208860 b: refs/heads/master c: 52dfb8ac0ef41168c1a10590b7259a5ab1cd2ab7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ceph/dir.c | 8 ++++---- trunk/fs/ceph/super.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 35eff927cee7..6515f694c35f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 213c99ee0cf17ff0fbffb6fb540bd29615cd19d5 +refs/heads/master: 52dfb8ac0ef41168c1a10590b7259a5ab1cd2ab7 diff --git a/trunk/fs/ceph/dir.c b/trunk/fs/ceph/dir.c index 0ec6e67533ef..67bbb41d5526 100644 --- a/trunk/fs/ceph/dir.c +++ b/trunk/fs/ceph/dir.c @@ -27,7 +27,7 @@ const struct inode_operations ceph_dir_iops; const struct file_operations ceph_dir_fops; -struct dentry_operations ceph_dentry_ops; +const struct dentry_operations ceph_dentry_ops; /* * Initialize ceph dentry state. @@ -1241,16 +1241,16 @@ const struct inode_operations ceph_dir_iops = { .create = ceph_create, }; -struct dentry_operations ceph_dentry_ops = { +const struct dentry_operations ceph_dentry_ops = { .d_revalidate = ceph_d_revalidate, .d_release = ceph_dentry_release, }; -struct dentry_operations ceph_snapdir_dentry_ops = { +const struct dentry_operations ceph_snapdir_dentry_ops = { .d_revalidate = ceph_snapdir_d_revalidate, .d_release = ceph_dentry_release, }; -struct dentry_operations ceph_snap_dentry_ops = { +const struct dentry_operations ceph_snap_dentry_ops = { .d_release = ceph_dentry_release, }; diff --git a/trunk/fs/ceph/super.h b/trunk/fs/ceph/super.h index 95adce441cc0..2482d696f0de 100644 --- a/trunk/fs/ceph/super.h +++ b/trunk/fs/ceph/super.h @@ -861,7 +861,7 @@ extern void ceph_release_page_vector(struct page **pages, int num_pages); /* dir.c */ extern const struct file_operations ceph_dir_fops; extern const struct inode_operations ceph_dir_iops; -extern struct dentry_operations ceph_dentry_ops, ceph_snap_dentry_ops, +extern const struct dentry_operations ceph_dentry_ops, ceph_snap_dentry_ops, ceph_snapdir_dentry_ops; extern int ceph_handle_notrace_create(struct inode *dir, struct dentry *dentry);