diff options
Diffstat (limited to 'mm/truncate.c')
-rw-r--r-- | mm/truncate.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 1d2fb2dca96f..ed778555c9f3 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
@@ -70,7 +70,7 @@ static void truncate_exceptional_pvec_entries(struct address_space *mapping, | |||
70 | return; | 70 | return; |
71 | 71 | ||
72 | for (j = 0; j < pagevec_count(pvec); j++) | 72 | for (j = 0; j < pagevec_count(pvec); j++) |
73 | if (radix_tree_exceptional_entry(pvec->pages[j])) | 73 | if (xa_is_value(pvec->pages[j])) |
74 | break; | 74 | break; |
75 | 75 | ||
76 | if (j == pagevec_count(pvec)) | 76 | if (j == pagevec_count(pvec)) |
@@ -85,7 +85,7 @@ static void truncate_exceptional_pvec_entries(struct address_space *mapping, | |||
85 | struct page *page = pvec->pages[i]; | 85 | struct page *page = pvec->pages[i]; |
86 | pgoff_t index = indices[i]; | 86 | pgoff_t index = indices[i]; |
87 | 87 | ||
88 | if (!radix_tree_exceptional_entry(page)) { | 88 | if (!xa_is_value(page)) { |
89 | pvec->pages[j++] = page; | 89 | pvec->pages[j++] = page; |
90 | continue; | 90 | continue; |
91 | } | 91 | } |
@@ -347,7 +347,7 @@ void truncate_inode_pages_range(struct address_space *mapping, | |||
347 | if (index >= end) | 347 | if (index >= end) |
348 | break; | 348 | break; |
349 | 349 | ||
350 | if (radix_tree_exceptional_entry(page)) | 350 | if (xa_is_value(page)) |
351 | continue; | 351 | continue; |
352 | 352 | ||
353 | if (!trylock_page(page)) | 353 | if (!trylock_page(page)) |
@@ -442,7 +442,7 @@ void truncate_inode_pages_range(struct address_space *mapping, | |||
442 | break; | 442 | break; |
443 | } | 443 | } |
444 | 444 | ||
445 | if (radix_tree_exceptional_entry(page)) | 445 | if (xa_is_value(page)) |
446 | continue; | 446 | continue; |
447 | 447 | ||
448 | lock_page(page); | 448 | lock_page(page); |
@@ -561,7 +561,7 @@ unsigned long invalidate_mapping_pages(struct address_space *mapping, | |||
561 | if (index > end) | 561 | if (index > end) |
562 | break; | 562 | break; |
563 | 563 | ||
564 | if (radix_tree_exceptional_entry(page)) { | 564 | if (xa_is_value(page)) { |
565 | invalidate_exceptional_entry(mapping, index, | 565 | invalidate_exceptional_entry(mapping, index, |
566 | page); | 566 | page); |
567 | continue; | 567 | continue; |
@@ -692,7 +692,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping, | |||
692 | if (index > end) | 692 | if (index > end) |
693 | break; | 693 | break; |
694 | 694 | ||
695 | if (radix_tree_exceptional_entry(page)) { | 695 | if (xa_is_value(page)) { |
696 | if (!invalidate_exceptional_entry2(mapping, | 696 | if (!invalidate_exceptional_entry2(mapping, |
697 | index, page)) | 697 | index, page)) |
698 | ret = -EBUSY; | 698 | ret = -EBUSY; |