* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2012, 2014 Intel Corporation.
+ * Copyright (c) 2012, 2016, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
LASSERT(obd != NULL);
ofd = ofd_dev(obd->obd_lu_dev);
- seq_printf(m, LPU64"\n", ofd->ofd_tot_dirty);
+ seq_printf(m, "%llu\n", ofd->ofd_tot_dirty);
return 0;
}
LPROC_SEQ_FOPS_RO(ofd_tot_dirty);
LASSERT(obd != NULL);
ofd = ofd_dev(obd->obd_lu_dev);
- seq_printf(m, LPU64"\n", ofd->ofd_tot_granted);
+ seq_printf(m, "%llu\n", ofd->ofd_tot_granted);
return 0;
}
LPROC_SEQ_FOPS_RO(ofd_tot_granted);
LASSERT(obd != NULL);
ofd = ofd_dev(obd->obd_lu_dev);
- seq_printf(m, LPU64"\n", ofd->ofd_tot_pending);
+ seq_printf(m, "%llu\n", ofd->ofd_tot_pending);
return 0;
}
LPROC_SEQ_FOPS_RO(ofd_tot_pending);
return -EINVAL;
val = val * ONE_MB_BRW_SIZE;
- if (val <= 0 || val > DT_MAX_BRW_SIZE)
+ if (val <= 0 || val > DT_MAX_BRW_SIZE ||
+ val < (1 << ofd->ofd_blockbits))
return -ERANGE;
spin_lock(&ofd->ofd_flags_lock);
*
* When ofd_grant_compat_disable is set, we don't grant any space to clients
* not supporting OBD_CONNECT_GRANT_PARAM. Otherwise, space granted to such
- * a client is inflated since it consumes PAGE_CACHE_SIZE of grant space per
+ * a client is inflated since it consumes PAGE_SIZE of grant space per
* block, (i.e. typically 4kB units), but underlaying file system might have
* block size bigger than page size, e.g. ZFS. See LU-2049 for details.
*
struct obd_device *obd = m->private;
struct ofd_device *ofd = ofd_dev(obd->obd_lu_dev);
- seq_printf(m, "switch: %s\ndetected: "LPU64"\nrepaired: "LPU64"\n",
+ seq_printf(m, "switch: %s\ndetected: %llu\nrepaired: %llu\n",
ofd->ofd_lfsck_verify_pfid ? "on" : "off",
ofd->ofd_inconsistency_self_detected,
ofd->ofd_inconsistency_self_repaired);