Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-6142 lustre: change various operations structs to const
[fs/lustre-release.git]
/
lustre
/
mdd
/
mdd_device.c
diff --git
a/lustre/mdd/mdd_device.c
b/lustre/mdd/mdd_device.c
index
1a258e1
..
de4c04b
100644
(file)
--- a/
lustre/mdd/mdd_device.c
+++ b/
lustre/mdd/mdd_device.c
@@
-845,7
+845,7
@@
static int mdd_obf_create(const struct lu_env *env, struct md_object *pobj,
RETURN(-EPERM);
}
RETURN(-EPERM);
}
-static struct md_dir_operations mdd_obf_dir_ops = {
+static
const
struct md_dir_operations mdd_obf_dir_ops = {
.mdo_lookup = obf_lookup,
.mdo_create = mdd_obf_create,
.mdo_rename = mdd_dummy_rename,
.mdo_lookup = obf_lookup,
.mdo_create = mdd_obf_create,
.mdo_rename = mdd_dummy_rename,
@@
-853,7
+853,7
@@
static struct md_dir_operations mdd_obf_dir_ops = {
.mdo_unlink = mdd_dummy_unlink
};
.mdo_unlink = mdd_dummy_unlink
};
-static struct md_dir_operations mdd_lpf_dir_ops = {
+static
const
struct md_dir_operations mdd_lpf_dir_ops = {
.mdo_lookup = mdd_lookup,
.mdo_create = mdd_dummy_create,
.mdo_rename = mdd_dummy_rename,
.mdo_lookup = mdd_lookup,
.mdo_create = mdd_dummy_create,
.mdo_rename = mdd_dummy_rename,