|
@@ -28,6 +28,10 @@ struct ovl_dir_cache;
|
|
|
|
|
|
#define OVL_MAX_STACK 500
|
|
#define OVL_MAX_STACK 500
|
|
|
|
|
|
|
|
+static bool ovl_redirect_dir_def = IS_ENABLED(CONFIG_OVERLAY_FS_REDIRECT_DIR);
|
|
|
|
+module_param_named(redirect_dir, ovl_redirect_dir_def, bool, 0644);
|
|
|
|
+MODULE_PARM_DESC(ovl_redirect_dir_def,
|
|
|
|
+ "Default to on or off for the redirect_dir feature");
|
|
|
|
|
|
static void ovl_dentry_release(struct dentry *dentry)
|
|
static void ovl_dentry_release(struct dentry *dentry)
|
|
{
|
|
{
|
|
@@ -702,6 +706,7 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
|
|
if (!ufs)
|
|
if (!ufs)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
|
|
+ ufs->config.redirect_dir = ovl_redirect_dir_def;
|
|
err = ovl_parse_opt((char *) data, &ufs->config);
|
|
err = ovl_parse_opt((char *) data, &ufs->config);
|
|
if (err)
|
|
if (err)
|
|
goto out_free_config;
|
|
goto out_free_config;
|