ext4: journal_path mount options should follow links
authorLukas Czerner <lczerner@redhat.com>
Tue, 4 Oct 2022 13:58:03 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:59 +0000 (11:11 +0100)
commit15adfbb2d161086b508b9ce1f91ce81403f265b1
tree0cae751d987c56bfd9ffdc0b44932efb569031d8
parent5e1d519af52fca8d6073b1f2430d2de95969e8cf
ext4: journal_path mount options should follow links

commit e3ea75ee651daf5e434afbfdb7dbf75e200ea1f6 upstream.

Before the commit 461c3af045d3 ("ext4: Change handle_mount_opt() to use
fs_parameter") ext4 mount option journal_path did follow links in the
provided path.

Bring this behavior back by allowing to pass pathwalk flags to
fs_lookup_param().

Fixes: 461c3af045d3 ("ext4: Change handle_mount_opt() to use fs_parameter")
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20221004135803.32283-1-lczerner@redhat.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/filesystems/mount_api.rst
fs/ext4/super.c
fs/fs_parser.c
include/linux/fs_parser.h