aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2020-10-13 16:54:04 -0700
committerLinus Torvalds <[email protected]>2020-10-13 18:38:31 -0700
commit808fbdbea05f1e965da5b887d808025ba22c1946 (patch)
tree9747f34858417c3cdbeb1188020e3820f55f63e0 /include/linux/overflow.h
parentf1dc1685f6ca25d435d58d16e53bb6f336f54cac (diff)
mm/mmap: not necessary to check mapping separately
*root* with type of struct rb_root_cached is an element of *mapping* with type of struct address_space. This implies when we have a valid *root* it must be a part of valid *mapping*. So we can merge these two checks together to make the code more easy to read and to save some cpu cycles. Signed-off-by: Wei Yang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions