/* * By creating our own shmemfs mountpoint, we can pass in * mount flags that better match our usecase. However, we * only do so on platforms which benefit from it.
*/ if (!IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE)) goto err;
/* The user doesn't want to enable Super Pages */ if (!super_pages) goto err;
type = get_fs_type("tmpfs"); if (!type) goto err;
fc = fs_context_for_mount(type, SB_KERNMOUNT); if (IS_ERR(fc)) goto err;
ret = add_param(fc, "source", "tmpfs"); if (!ret)
ret = add_param(fc, "huge", "within_size"); if (!ret)
gemfs = fc_mount_longterm(fc);
put_fs_context(fc); if (ret) goto err;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.