]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux: kmap() not page_address()
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 6 Apr 2010 23:29:44 +0000 (00:29 +0100)
committerRuss Allbery <rra@debian.org>
Thu, 8 Apr 2010 20:19:52 +0000 (13:19 -0700)
commit97bd679f9de999fbf0e5eb439441f7147cbe5795
treed58f2b8c5bd720c00bcb691db3cb0abd6ec66c23
parent4937ff269ce72ce3edffdcad41ab2a21b61a7942
Linux: kmap() not page_address()

Using page_address() will return NULL if the page is in highmem. To
avoid this, we must kmap() the page we're getting the address of,
and kunmap() when we are done. If the page isn't in high memory, then
kmap() is equivalent to page_address().

Change-Id: I42abfadaf3101bf5ad41bd7e5f720ba2583c4ee5
Reviewed-on: http://gerrit.openafs.org/1705
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit fdb9429eafda330bfdf1feefeb1a9ff61c7746b7)
src/afs/LINUX/osi_fetchstore.c