X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fquota%2Fqmt_pool.c;h=14ee84618740f0050cd9626549c9f85952b5e1b0;hb=refs%2Fchanges%2F74%2F33474%2F3;hp=d1eb1fa5a3b145a9979e68d021500a99014e8399;hpb=ccabce23bd9e366c345c852f565766a799f61238;p=fs%2Flustre-release.git diff --git a/lustre/quota/qmt_pool.c b/lustre/quota/qmt_pool.c index d1eb1fa..14ee846 100644 --- 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) { - 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); @@ -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; - rc = lprocfs_str_to_s64(buffer, count, &least_qunit); + rc = kstrtoll_from_user(buffer, count, 0, &least_qunit); if (rc) return rc;