summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>2010-09-10 13:23:04 +0900
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-23 17:29:18 -0700
commit56c9cfb13c9b6516017eea4e8cbe22ea02e07ee6 (patch)
tree1b09c9350d8f48d81514f274a3a1933dc9f1a2ef /block
parentcd67f0d2a9a6b5b9f79f4343dc8805757d9ebae2 (diff)
downloadop-kernel-dev-56c9cfb13c9b6516017eea4e8cbe22ea02e07ee6.zip
op-kernel-dev-56c9cfb13c9b6516017eea4e8cbe22ea02e07ee6.tar.gz
hugetlb, rmap: fix confusing page locking in hugetlb_cow()
The "if (!trylock_page)" block in the avoidcopy path of hugetlb_cow() looks confusing and is buggy. Originally this trylock_page() was intended to make sure that old_page is locked even when old_page != pagecache_page, because then only pagecache_page is locked. This patch fixes it by moving page locking into hugetlb_fault(). Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Acked-by: Rik van Riel <riel@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud