Skip to content

Commit b995353

Browse files
jankaraRoss Zwisler
authored andcommitted
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 <[email protected]> Signed-off-by: Ross Zwisler <[email protected]>
1 parent 40543f6 commit b995353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/dax.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned long address,
788788

789789
i_mmap_lock_read(mapping);
790790

791-
if (!write && !buffer_mapped(&bh) && buffer_uptodate(&bh)) {
791+
if (!write && !buffer_mapped(&bh)) {
792792
spinlock_t *ptl;
793793
pmd_t entry;
794794
struct page *zero_page = get_huge_zero_page();

0 commit comments

Comments
 (0)