[Devel] [PATCH vz9 v2 2/2] overlayfs: fix lowerpaths handling in mnt_id paths options

Konstantin Khorenko khorenko at virtuozzo.com
Sat Jul 20 01:07:57 MSK 2024


Use wrappers for access to lowerpaths and their number.

Fixes: 896ee4b155fe ("overlayfs: add mnt_id paths options")
https://virtuozzo.atlassian.net/browse/PSBM-157244

Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 fs/overlayfs/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 2aeec05c1a34..54904e3197d7 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -402,8 +402,8 @@ static int ovl_show_options(struct seq_file *m, struct dentry *dentry)
 	}
 
 	if (ovl_mnt_id_path_opts) {
-		print_mnt_ids_option(m, "lowerdir_mnt_id", oe->lowerpaths,
-				     ovl_numlower(oe));
+		print_mnt_ids_option(m, "lowerdir_mnt_id", ovl_lowerpaths(oe),
+				     ovl_numlowerpaths(oe));
 		/*
 		 * We don't need to show mnt_id for workdir because it
 		 * on the same mount as upperdir.
-- 
2.43.5



More information about the Devel mailing list