diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2014-12-13 01:55:04 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 21:42:46 +0100 |
commit | b258d860652934b5e014408302335430b81bd7ce (patch) | |
tree | 2c6735a682f865dec8cb85504b4667fe219112dc /mm/mincore.c | |
parent | mm/debug-pagealloc: cleanup page guard code (diff) | |
download | linux-b258d860652934b5e014408302335430b81bd7ce.tar.xz linux-b258d860652934b5e014408302335430b81bd7ce.zip |
mm/rmap: calculate page offset when needed
Call page_to_pgoff() to get the page offset once we are sure we actually
need it, and any very obvious initial function checks have passed.
Trivial micro-optimization, and potentially save some cycles.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mincore.c')
0 files changed, 0 insertions, 0 deletions