Details
-
Improvement
-
Resolution: Duplicate
-
Blocker
-
None
-
None
-
None
-
9223372036854775807
Description
The page2inode helper checks if page->mapping exists and then attempts to get the inode if page->mapping is not null. Direct I/O pages do not have a mapping, but testing has shown that page->mapping is not zeroed as part of page allocation, so it cannot be depended on for direct I/O pages.
That's OK, since we have the cl_page struct we can use - so we use that instead, except in ll_dom_readpage, which is a page cache helper and only works with cached pages.