Whamcloud - gitweb
LU-14286 osd-ldiskfs: enable fallocate by default
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_handler.c
index 90b5493..9a18ea8 100644 (file)
@@ -7904,8 +7904,8 @@ static int osd_device_init0(const struct lu_env *env,
        o->od_readcache_max_iosize = OSD_READCACHE_MAX_IO_MB << 20;
        o->od_writethrough_max_iosize = OSD_WRITECACHE_MAX_IO_MB << 20;
        o->od_auto_scrub_interval = AS_DEFAULT;
-       /* disable fallocate until issues are fixed: LU-14326/LU-14333 */
-       o->od_fallocate_zero_blocks = -1;
+       /* default fallocate to unwritten extents: LU-14326/LU-14333 */
+       o->od_fallocate_zero_blocks = 0;
 
        cplen = strlcpy(o->od_svname, lustre_cfg_string(cfg, 4),
                        sizeof(o->od_svname));