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-1445 fid: Add DATA fid type in fid_request.
[fs/lustre-release.git]
/
lustre
/
fid
/
lproc_fid.c
diff --git
a/lustre/fid/lproc_fid.c
b/lustre/fid/lproc_fid.c
index
3bb44f2
..
3670ee4
100644
(file)
--- a/
lustre/fid/lproc_fid.c
+++ b/
lustre/fid/lproc_fid.c
@@
-262,6
+262,7
@@
seq_client_proc_write_width(struct file *file, const char *buffer,
unsigned long count, void *data)
{
struct lu_client_seq *seq = (struct lu_client_seq *)data;
unsigned long count, void *data)
{
struct lu_client_seq *seq = (struct lu_client_seq *)data;
+ __u64 max;
int rc, val;
ENTRY;
int rc, val;
ENTRY;
@@
-275,7
+276,12
@@
seq_client_proc_write_width(struct file *file, const char *buffer,
RETURN(rc);
}
RETURN(rc);
}
- if (val <= LUSTRE_METADATA_SEQ_MAX_WIDTH && val > 0) {
+ if (seq->lcs_type == LUSTRE_SEQ_DATA)
+ max = LUSTRE_DATA_SEQ_MAX_WIDTH;
+ else
+ max = LUSTRE_METADATA_SEQ_MAX_WIDTH;
+
+ if (val <= max && val > 0) {
seq->lcs_width = val;
if (rc == 0) {
seq->lcs_width = val;
if (rc == 0) {