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-11373 tests: increase debug limit sanity 60b
[fs/lustre-release.git]
/
lustre
/
quota
/
qmt_pool.c
diff --git
a/lustre/quota/qmt_pool.c
b/lustre/quota/qmt_pool.c
index
d1eb1fa
..
14ee846
100644
(file)
--- a/
lustre/quota/qmt_pool.c
+++ b/
lustre/quota/qmt_pool.c
@@
-184,9
+184,9
@@
static ssize_t
qpi_soft_least_qunit_seq_write(struct file *file, const char __user *buffer,
size_t count, loff_t *off)
{
qpi_soft_least_qunit_seq_write(struct file *file, const char __user *buffer,
size_t count, loff_t *off)
{
- struct qmt_pool_info
*pool;
-
int qunit, rc
;
-
s64 least_qunit
;
+ struct qmt_pool_info *pool;
+
long long least_qunit
;
+
int qunit, rc
;
pool = ((struct seq_file *)file->private_data)->private;
LASSERT(pool != NULL);
pool = ((struct seq_file *)file->private_data)->private;
LASSERT(pool != NULL);
@@
-195,7
+195,7
@@
qpi_soft_least_qunit_seq_write(struct file *file, const char __user *buffer,
if (pool->qpi_key >> 16 != LQUOTA_RES_DT)
return -EINVAL;
if (pool->qpi_key >> 16 != LQUOTA_RES_DT)
return -EINVAL;
- rc =
lprocfs_str_to_s64(buffer, count
, &least_qunit);
+ rc =
kstrtoll_from_user(buffer, count, 0
, &least_qunit);
if (rc)
return rc;
if (rc)
return rc;