aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2022-02-03 14:14:11 +0100
committerChristian Brauner <[email protected]>2022-02-14 08:37:40 +0100
commit87bb5b60019c60e1f902e6885734cc4e5135c2d9 (patch)
tree0617901debd5f10e521856457ceb6e943a6a9d4a /net/lapb/lapb_subr.c
parentad1844a0127af8fbb87d3d7019907260daf6466b (diff)
fs: clean up mount_setattr control flow
Simplify the control flow of mount_setattr_{prepare,commit} so they become easier to follow. We kept using both an integer error variable that was passed by pointer as well as a pointer as an indicator for whether or not we need to revert or commit the prepared changes. Simplify this and just use the pointer. If we successfully changed properties the revert pointer will be NULL and if we failed to change properties it will indicate where we failed and thus need to stop reverting. Link: https://lore.kernel.org/r/[email protected] Cc: Seth Forshee <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Al Viro <[email protected]> Cc: [email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions