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-477 allocate memory for s_group_desc and s_group_info by vmalloc()
[fs/lustre-release.git]
/
lustre
/
lmv
/
lproc_lmv.c
diff --git
a/lustre/lmv/lproc_lmv.c
b/lustre/lmv/lproc_lmv.c
index
555f4dc
..
030601b
100644
(file)
--- a/
lustre/lmv/lproc_lmv.c
+++ b/
lustre/lmv/lproc_lmv.c
@@
-26,7
+26,7
@@
* GPL HEADER END
*/
/*
* GPL HEADER END
*/
/*
- * Copyright
2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright
(c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
* Use is subject to license terms.
*/
/*
@@
-106,7
+106,7
@@
static int lmv_wr_placement(struct file *file, const char *buffer,
placement_policy_t policy;
struct lmv_obd *lmv;
placement_policy_t policy;
struct lmv_obd *lmv;
- if (copy_from_user(dummy, buffer, MAX_POLICY_STRING_SIZE))
+ if (c
fs_c
opy_from_user(dummy, buffer, MAX_POLICY_STRING_SIZE))
return -EFAULT;
LASSERT(dev != NULL);
return -EFAULT;
LASSERT(dev != NULL);
@@
-121,9
+121,9
@@
static int lmv_wr_placement(struct file *file, const char *buffer,
policy = placement_name2policy(dummy, len);
if (policy != PLACEMENT_INVAL_POLICY) {
policy = placement_name2policy(dummy, len);
if (policy != PLACEMENT_INVAL_POLICY) {
- spin_lock(&lmv->lmv_lock);
+
cfs_
spin_lock(&lmv->lmv_lock);
lmv->lmv_placement = policy;
lmv->lmv_placement = policy;
- spin_unlock(&lmv->lmv_lock);
+
cfs_
spin_unlock(&lmv->lmv_lock);
} else {
CERROR("Invalid placement policy \"%s\"!\n", dummy);
return -EINVAL;
} else {
CERROR("Invalid placement policy \"%s\"!\n", dummy);
return -EINVAL;