aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorLukas Czerner <[email protected]>2022-02-01 14:13:45 +0100
committerTheodore Ts'o <[email protected]>2022-02-25 21:27:20 -0500
commite3952fcce1aad934f1322843b564ff86256444b2 (patch)
tree917c415301e4e2147e06234dd7f3013f3ffcaf63 /net/lapb/lapb_out.c
parentcfb92440ee71adcc2105b0890bb01ac3cddb8507 (diff)
ext4: fix remount with 'abort' option
After commit 6e47a3cc68fc ("ext4: get rid of super block and sbi from handle_mount_ops()") the 'abort' options stopped working. This is because we're using ctx_set_mount_flags() helper that's expecting an argument with the appropriate bit set, but instead got EXT4_MF_FS_ABORTED which is a bit position. ext4_set_mount_flag() is using set_bit() while ctx_set_mount_flags() was using bitwise OR. Create a separate helper ctx_set_mount_flag() to handle setting the mount_flags correctly. While we're at it clean up the EXT4_SET_CTX macros so that we're only creating helpers that we actually use to avoid warnings. Fixes: 6e47a3cc68fc ("ext4: get rid of super block and sbi from handle_mount_ops()") Signed-off-by: Lukas Czerner <[email protected]> Cc: Ye Bin <[email protected]> Reviewed-by: Eric Sandeen <[email protected]> Tested-by: Gabriel Krisman Bertazi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions