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

Simplify code of ll_direct_rw_pages

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • None
    • None
    • 9223372036854775807

    Description

      In function ll_direct_rw_pages, the cl_page_find will return a cl_page with cp_type of CPT_TRANSIENT for sure. And we will not cache this type of cl_page anymore.

      So, i think we could remove the code of the logical when the cp_type is equal CPT_CACHABLE which is the code need in old version that cached the cl_page into the radix tree no matter what the type is.

      Attachments

        Activity

          [LU-6418] Simplify code of ll_direct_rw_pages

          The work should be already in Lustre.

          jay Jinshan Xiong (Inactive) added a comment - The work should be already in Lustre.

          sure, thanks!

          gnlwlb wu libin (Inactive) added a comment - sure, thanks!

          indeed, I forgot that we have changed cl_page_find() implementation. Yes, your patch is correct.

          jay Jinshan Xiong (Inactive) added a comment - indeed, I forgot that we have changed cl_page_find() implementation. Yes, your patch is correct.

          Hi, Jinshan, from the code of cl_page_find, it seems that cp_type of the cl_page impossible to be CPT_CACHEABLE here.So the codes of the "if (clp->cp_type == CPT_CACHEABLE)" branch are redundant, right? Please take a look at it again, sorry if i have missed something.

          gnlwlb wu libin (Inactive) added a comment - Hi, Jinshan, from the code of cl_page_find, it seems that cp_type of the cl_page impossible to be CPT_CACHEABLE here.So the codes of the "if (clp->cp_type == CPT_CACHEABLE)" branch are redundant, right? Please take a look at it again, sorry if i have missed something.

          Please reopen this ticket if anything new comes up.

          jay Jinshan Xiong (Inactive) added a comment - Please reopen this ticket if anything new comes up.
          pjones Peter Jones added a comment -

          Jinshan has provided feedback on the patch in gerrit

          pjones Peter Jones added a comment - Jinshan has provided feedback on the patch in gerrit

          Wu Libin (gnlwlb@gmail.com) uploaded a new patch: http://review.whamcloud.com/14288
          Subject: LU-6418 llite: Simplify code of ll_direct_rw_pages
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 21771b2aac89aa8ae6f24d096ed536f3b01f18d6

          gerrit Gerrit Updater added a comment - Wu Libin (gnlwlb@gmail.com) uploaded a new patch: http://review.whamcloud.com/14288 Subject: LU-6418 llite: Simplify code of ll_direct_rw_pages Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 21771b2aac89aa8ae6f24d096ed536f3b01f18d6

          People

            jay Jinshan Xiong (Inactive)
            gnlwlb wu libin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: