-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
lov = &dev->u.lov;
*eof = 1;
return snprintf(page, count, "%d%%\n",
- (lov->lov_qos.lq_prio_free * 100) >> 8);
+ (lov->lov_qos.lq_prio_free * 100 + 255) >> 8);
}
static int lov_wr_qos_priofree(struct file *file, const char *buffer,
lov = &dev->u.lov;
*eof = 1;
return snprintf(page, count, "%d%%\n",
- (lov->lov_qos.lq_threshold_rr * 100) >> 8);
+ (lov->lov_qos.lq_threshold_rr * 100 + 255) >> 8);
}
static int lov_wr_qos_thresholdrr(struct file *file, const char *buffer,