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-3421 grant: more aggressively book space for precreate
[fs/lustre-release.git]
/
lustre
/
ofd
/
ofd_dev.c
diff --git
a/lustre/ofd/ofd_dev.c
b/lustre/ofd/ofd_dev.c
index
20e3c59
..
a9237f7
100644
(file)
--- a/
lustre/ofd/ofd_dev.c
+++ b/
lustre/ofd/ofd_dev.c
@@
-373,17
+373,17
@@
static int ofd_recovery_complete(const struct lu_env *env,
{
struct ofd_device *ofd = ofd_dev(dev);
struct lu_device *next = &ofd->ofd_osd->dd_lu_dev;
- int rc = 0;
+ int rc = 0
, max_precreate
;
ENTRY;
/* Grant space for object precreation on the self export.
- * This initial reserved space (i.e.
20MB for zfs and 56
0KB for ldiskfs)
- * is enough to create
20k objects. It is then adapted based on the
- * precreat
e request size (see ofd_grant_create()
+ * This initial reserved space (i.e.
10MB for zfs and 28
0KB for ldiskfs)
+ * is enough to create
10k objects. More space is then acquired for
+ * precreat
ion in ofd_grant_create().
*/
- ofd_grant_connect(env, dev->ld_obd->obd_self_export,
-
OST_MAX_PRECREATE * ofd->ofd_dt_conf.ddp_inodespac
e,
+ max_precreate = OST_MAX_PRECREATE * ofd->ofd_dt_conf.ddp_inodespace / 2;
+
ofd_grant_connect(env, dev->ld_obd->obd_self_export, max_precreat
e,
false);
rc = next->ld_ops->ldo_recovery_complete(env, next);
RETURN(rc);