diff options
| author | Eric Sandeen <sandeen@redhat.com> | 2025-12-03 01:30:53 +0300 |
|---|---|---|
| committer | Dominique Martinet <asmadeus@codewreck.org> | 2025-12-05 15:53:16 +0300 |
| commit | f0445613314f474c1a0ec6fa8a5cd153a618f1b6 (patch) | |
| tree | 595ecc59e953c9c184722dc5a0d7be058113125e /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | 1f3e4142c0eb178089ea0cbc97506a061470ad27 (diff) | |
| download | linux-f0445613314f474c1a0ec6fa8a5cd153a618f1b6.tar.xz | |
9p: fix cache/debug options printing in v9fs_show_options
commit 4eb3117888a92 changed the cache= option to accept either string
shortcuts or bitfield values. It also changed /proc/mounts to emit the
option as the hexadecimal numeric value rather than the shortcut string.
However, by printing "cache=%x" without the leading 0x, shortcuts such
as "cache=loose" will emit "cache=f" and 'f' is not a string that is
parseable by kstrtoint(), so remounting may fail if a remount with
"cache=f" is attempted.
debug=%x has had the same problem since options have been displayed in
c4fac9100456 ("9p: Implement show_options")
Fix these by adding the 0x prefix to the hexadecimal value shown in
/proc/mounts.
Fixes: 4eb3117888a92 ("fs/9p: Rework cache modes and add new options to Documentation")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Message-ID: <54b93378-dcf1-4b04-922d-c8b4393da299@redhat.com>
[Dominique: use %#x at Al Viro's suggestion, also handle debug]
Tested-by: Remi Pommarel <repk@triplefau.lt>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
