diff options
author | Liam R. Howlett <Liam.Howlett@Oracle.com> | 2020-10-17 16:14:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-18 09:27:09 -0700 |
commit | 3903b55a6117ee5a8c90108beaf8d921474aa05a (patch) | |
tree | 4bdc04d5999b35923f276000b8abb60cd919599b /lib/math/int_pow.c | |
parent | 4dc200cee1950ac3f9b99f0c8d4a750b62958f81 (diff) | |
download | linux-3903b55a6117ee5a8c90108beaf8d921474aa05a.tar.gz linux-3903b55a6117ee5a8c90108beaf8d921474aa05a.tar.bz2 linux-3903b55a6117ee5a8c90108beaf8d921474aa05a.zip |
mm/mmap: add inline vma_next() for readability of mmap code
There are three places that the next vma is required which uses the same
block of code. Replace the block with a function and add comments on what
happens in the case where NULL is encountered.
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200818154707.2515169-1-Liam.Howlett@Oracle.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/math/int_pow.c')
0 files changed, 0 insertions, 0 deletions