[RHEL7] fs/overlayfs: Fixed default value for parameter 'mnt_id_path_opts'

Submitted by Valeriy Vdovin on July 21, 2020, 9:08 a.m.

Details

Message ID 1595322492-600812-1-git-send-email-valeriy.vdovin@virtuozzo.com
State New
Series "fs/overlayfs: Fixed default value for parameter 'mnt_id_path_opts'"
Headers show

Commit Message

Valeriy Vdovin July 21, 2020, 9:08 a.m.
The value queries .config with IS_ENABLED macro but CONFIG_ prefix
is not provided.

Signed-off-by: Valeriy Vdovin <valeriy.vdovin@virtuozzo.com>
---
 fs/overlayfs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 6a26118..6b6227b 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -62,7 +62,7 @@  static bool ovl_dyn_path_opts =
 module_param_named(dyn_path_opts, ovl_dyn_path_opts, bool, 0644);
 MODULE_PARM_DESC(dyn_path_opts, "dyn_path_opts feature enabled");
 
-static bool ovl_mnt_id_path_opts = IS_ENABLED(OVERLAY_FS_PATH_OPTIONS_MNT_ID);
+static bool ovl_mnt_id_path_opts = IS_ENABLED(CONFIG_OVERLAY_FS_PATH_OPTIONS_MNT_ID);
 module_param_named(mnt_id_path_opts, ovl_mnt_id_path_opts, bool, 0644);
 MODULE_PARM_DESC(mnt_id_path_opts, "mnt_id_path_opts feature enabled");
 

Comments

Vasily Averin July 21, 2020, 9:21 a.m.
Fixes commit c14b3044c39507ebd65e1f41c085d9920fa2a6e0
Author: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
Date:   Thu Jun 4 11:34:35 2020 +0300

    overlayfs: add mnt_id paths options

On 7/21/20 12:08 PM, Valeriy Vdovin wrote:
> The value queries .config with IS_ENABLED macro but CONFIG_ prefix
> is not provided.
> 
> Signed-off-by: Valeriy Vdovin <valeriy.vdovin@virtuozzo.com>
> ---
>  fs/overlayfs/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
> index 6a26118..6b6227b 100644
> --- a/fs/overlayfs/super.c
> +++ b/fs/overlayfs/super.c
> @@ -62,7 +62,7 @@ static bool ovl_dyn_path_opts =
>  module_param_named(dyn_path_opts, ovl_dyn_path_opts, bool, 0644);
>  MODULE_PARM_DESC(dyn_path_opts, "dyn_path_opts feature enabled");
>  
> -static bool ovl_mnt_id_path_opts = IS_ENABLED(OVERLAY_FS_PATH_OPTIONS_MNT_ID);
> +static bool ovl_mnt_id_path_opts = IS_ENABLED(CONFIG_OVERLAY_FS_PATH_OPTIONS_MNT_ID);
>  module_param_named(mnt_id_path_opts, ovl_mnt_id_path_opts, bool, 0644);
>  MODULE_PARM_DESC(mnt_id_path_opts, "mnt_id_path_opts feature enabled");
>  
>