Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-15567

page2inode is not safe for direct I/O pages

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            paf0186 Patrick Farrell (Inactive)
            paf0186 Patrick Farrell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: