commit | b258d860652934b5e014408302335430b81bd7ce | [log] [tgz] |
---|---|---|
author | Davidlohr Bueso <dave@stgolabs.net> | Fri Dec 12 16:55:04 2014 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Sat Dec 13 12:42:46 2014 -0800 |
tree | 2c6735a682f865dec8cb85504b4667fe219112dc | |
parent | 2847cf95c68fa5fa391c58a669e761c4b0c8fc57 [diff] |
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>