diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2008-12-08 00:52:49 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-19 04:40:35 -0500 |
commit | baa5835df10254762aedb6cb23a9c1508f969736 (patch) | |
tree | a8f8b1117aa752fa2fad457e972de923eb4c1da6 /kernel/power/snapshot.c | |
parent | 846705deb059c352cc0e5806d5964f815b8c6d98 (diff) | |
download | op-kernel-dev-baa5835df10254762aedb6cb23a9c1508f969736.zip op-kernel-dev-baa5835df10254762aedb6cb23a9c1508f969736.tar.gz |
Hibernate: Replace unnecessary evaluation of pfn_to_page()
Replace one evaluation of pfn_to_page() in copy_data_pages() with
the value of a local variable containing the right number already.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'kernel/power/snapshot.c')
-rw-r--r-- | kernel/power/snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index ec9f153..f5fc2d7 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -981,7 +981,7 @@ static void copy_data_page(unsigned long dst_pfn, unsigned long src_pfn) * data modified by kmap_atomic() */ safe_copy_page(buffer, s_page); - dst = kmap_atomic(pfn_to_page(dst_pfn), KM_USER0); + dst = kmap_atomic(d_page, KM_USER0); memcpy(dst, buffer, PAGE_SIZE); kunmap_atomic(dst, KM_USER0); } else { |