From: Jan Kara Date: Thu, 12 May 2016 16:29:14 +0000 (+0200) Subject: dax: Fix condition for filling of PMD holes X-Git-Tag: v4.7-rc1~37^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b9953536c95fd0013695542bfa4694c7468673aa;p=karo-tx-linux.git dax: Fix condition for filling of PMD holes Currently dax_pmd_fault() decides to fill a PMD-sized hole only if returned buffer has BH_Uptodate set. However that doesn't get set for any mapping buffer so that branch is actually a dead code. The BH_Uptodate check doesn't make any sense so just remove it. Signed-off-by: Jan Kara Signed-off-by: Ross Zwisler --- diff --git a/fs/dax.c b/fs/dax.c index ea936b3d93dc..bdad05213e4b 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -788,7 +788,7 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned long address, i_mmap_lock_read(mapping); - if (!write && !buffer_mapped(&bh) && buffer_uptodate(&bh)) { + if (!write && !buffer_mapped(&bh)) { spinlock_t *ptl; pmd_t entry; struct page *zero_page = get_huge_zero_page();