aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2012-06-29 15:40:11 +0000
committerGreg Kroah-Hartman <[email protected]>2012-06-29 20:55:35 +0000
commitd36208227d03c44c0a74cd702cc94528162e1703 (patch)
tree57e8fdef7ebf7b01e0377ba68ae58921fb545cf5 /fs/jbd2/commit.c
parentprintk: flush continuation lines immediately to console (diff)
downloadkernel-d36208227d03c44c0a74cd702cc94528162e1703.tar.gz
kernel-d36208227d03c44c0a74cd702cc94528162e1703.zip
printk: Optimize if statement logic where newline exists
In reviewing Kay's fix up patch: "printk: Have printk() never buffer its data", I found two if statements that could be combined and optimized. Put together the two 'cont.len && cont.owner == current' if statements into a single one, and check if we need to call cont_add(). This also removes the unneeded double cont_flush() calls. Link: http://lkml.kernel.org/r/1340869133.876.10.camel@mop Signed-off-by: Steven Rostedt <[email protected]> Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions