[Devel] [PATCH RHEL9 COMMIT] overlayfs: fix lowerpaths handling in mnt_id paths options
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Jul 23 20:14:33 MSK 2024
The commit is pushed to "branch-rh9-5.14.0-427.22.1.vz9.62.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.22.1.vz9.62.8
------>
commit 5b451d7a6110fde794aa2b2b87b738da53ff8e15
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date: Sat Jul 20 01:07:57 2024 +0300
overlayfs: fix lowerpaths handling in mnt_id paths options
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>
Reviewed-by: Pavel Tikhomirov <ptikhomirov 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.
More information about the Devel
mailing list