From: Davidlohr Bueso Date: Sat, 13 Dec 2014 00:55:04 +0000 (-0800) Subject: mm/rmap: calculate page offset when needed X-Git-Tag: omap-for-v3.20/drop-legacy-3517~97^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b258d860652934b5e014408302335430b81bd7ce;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed