diff options
author | Lukas Czerner <lczerner@redhat.com> | 2022-10-04 16:58:03 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-12-01 18:46:54 +0300 |
commit | e3ea75ee651daf5e434afbfdb7dbf75e200ea1f6 (patch) | |
tree | 05196c38534cf3949eb0e172f98907dd233b9bcc /fs/ext4/super.c | |
parent | 56d0d0b9289dae041becc7ee6bd966a00dd610e0 (diff) | |
download | linux-e3ea75ee651daf5e434afbfdb7dbf75e200ea1f6.tar.xz |
ext4: journal_path mount options should follow links
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
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 4749b303f2a9..0f71542cf453 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2247,7 +2247,7 @@ static int ext4_parse_param(struct fs_context *fc, struct fs_parameter *param) return -EINVAL; } - error = fs_lookup_param(fc, param, 1, &path); + error = fs_lookup_param(fc, param, 1, LOOKUP_FOLLOW, &path); if (error) { ext4_msg(NULL, KERN_ERR, "error: could not find " "journal device path"); |