summaryrefslogtreecommitdiffstats
path: root/mm/debug.c
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@aol.com>2018-12-28 00:33:34 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2018-12-28 12:11:46 -0800
commit20ff1c950500380c6f74ec1a0d6f4eafab673ef6 (patch)
tree917edac99a1ab31b2f643c796330315981f30480 /mm/debug.c
parent368686a95e55fd66b88542b5b23d802a4886b1aa (diff)
downloadlinux-20ff1c950500380c6f74ec1a0d6f4eafab673ef6.tar.gz
linux-20ff1c950500380c6f74ec1a0d6f4eafab673ef6.tar.bz2
linux-20ff1c950500380c6f74ec1a0d6f4eafab673ef6.zip
mm/readahead.c: simplify get_next_ra_size()
It's a trivial simplification for get_next_ra_size() and clear enough for humans to understand. It also fixes potential overflow if ra->size(< ra_pages) is too large. Link: http://lkml.kernel.org/r/1540707206-19649-1-git-send-email-hsiangkao@aol.com Signed-off-by: Gao Xiang <hsiangkao@aol.com> Reviewed-by: Fengguang Wu <fengguang.wu@intel.com> Reviewed-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions