X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_dev.c;h=a9237f7a168e5d647028c79221f0b547aeb0b7fe;hp=20e3c5926f1c118190346b7122bfb39761a5efd6;hb=863de7db65825b5862459127da1140d3ac5bcc41;hpb=0aec97df129d2c6263c66454ee9039cd5dbfdf85 diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index 20e3c59..a9237f7 100644 --- 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 560KB for ldiskfs) - * is enough to create 20k objects. It is then adapted based on the - * precreate request size (see ofd_grant_create() + * This initial reserved space (i.e. 10MB for zfs and 280KB for ldiskfs) + * is enough to create 10k objects. More space is then acquired for + * precreation in ofd_grant_create(). */ - ofd_grant_connect(env, dev->ld_obd->obd_self_export, - OST_MAX_PRECREATE * ofd->ofd_dt_conf.ddp_inodespace, + max_precreate = OST_MAX_PRECREATE * ofd->ofd_dt_conf.ddp_inodespace / 2; + ofd_grant_connect(env, dev->ld_obd->obd_self_export, max_precreate, false); rc = next->ld_ops->ldo_recovery_complete(env, next); RETURN(rc);