]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/ntfs/aops.h
Merge branch 'for-6.0/dax' into libnvdimm-fixes
[people/ms/linux.git] / fs / ntfs / aops.h
index 934d5f79b9e7a1fc992367dfd1381edbef1ed8ac..0cac5458c023ea594f11eefdd0e0650fdeb36c2b 100644 (file)
@@ -74,13 +74,8 @@ static inline struct page *ntfs_map_page(struct address_space *mapping,
 {
        struct page *page = read_mapping_page(mapping, index, NULL);
 
-       if (!IS_ERR(page)) {
+       if (!IS_ERR(page))
                kmap(page);
-               if (!PageError(page))
-                       return page;
-               ntfs_unmap_page(page);
-               return ERR_PTR(-EIO);
-       }
        return page;
 }