LASSERT(seq != NULL);
- cfs_down(&seq->lss_sem);
+ cfs_mutex_lock(&seq->lss_mutex);
rc = seq_proc_write_common(file, buffer, count,
data, &seq->lss_space);
if (rc == 0) {
seq->lss_name, PRANGE(&seq->lss_space));
}
- cfs_up(&seq->lss_sem);
+ cfs_mutex_unlock(&seq->lss_mutex);
RETURN(count);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lss_sem);
+ cfs_mutex_lock(&seq->lss_mutex);
rc = seq_proc_read_common(page, start, off, count, eof,
data, &seq->lss_space);
- cfs_up(&seq->lss_sem);
+ cfs_mutex_unlock(&seq->lss_mutex);
RETURN(rc);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lss_sem);
+ cfs_mutex_lock(&seq->lss_mutex);
rc = lprocfs_write_helper(buffer, count, &val);
if (rc)
seq->lss_name, seq->lss_width);
}
- cfs_up(&seq->lss_sem);
+ cfs_mutex_unlock(&seq->lss_mutex);
RETURN(count);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lss_sem);
+ cfs_mutex_lock(&seq->lss_mutex);
rc = snprintf(page, count, LPU64"\n", seq->lss_width);
- cfs_up(&seq->lss_sem);
+ cfs_mutex_unlock(&seq->lss_mutex);
RETURN(rc);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lcs_sem);
+ cfs_mutex_lock(&seq->lcs_mutex);
rc = seq_proc_write_common(file, buffer, count,
data, &seq->lcs_space);
seq->lcs_name, PRANGE(&seq->lcs_space));
}
- cfs_up(&seq->lcs_sem);
+ cfs_mutex_unlock(&seq->lcs_mutex);
RETURN(count);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lcs_sem);
+ cfs_mutex_lock(&seq->lcs_mutex);
rc = seq_proc_read_common(page, start, off, count, eof,
data, &seq->lcs_space);
- cfs_up(&seq->lcs_sem);
+ cfs_mutex_unlock(&seq->lcs_mutex);
RETURN(rc);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lcs_sem);
+ cfs_mutex_lock(&seq->lcs_mutex);
rc = lprocfs_write_helper(buffer, count, &val);
if (rc) {
- cfs_up(&seq->lcs_sem);
+ cfs_mutex_unlock(&seq->lcs_mutex);
RETURN(rc);
}
}
}
- cfs_up(&seq->lcs_sem);
+ cfs_mutex_unlock(&seq->lcs_mutex);
RETURN(count);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lcs_sem);
+ cfs_mutex_lock(&seq->lcs_mutex);
rc = snprintf(page, count, LPU64"\n", seq->lcs_width);
- cfs_up(&seq->lcs_sem);
+ cfs_mutex_unlock(&seq->lcs_mutex);
RETURN(rc);
}
LASSERT(seq != NULL);
- cfs_down(&seq->lcs_sem);
+ cfs_mutex_lock(&seq->lcs_mutex);
rc = snprintf(page, count, DFID"\n", PFID(&seq->lcs_fid));
- cfs_up(&seq->lcs_sem);
+ cfs_mutex_unlock(&seq->lcs_mutex);
RETURN(rc);
}