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

unravel #DEFINEs in cl_page.c

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.10.0
    • Labels:
      None
    • Epic/Theme:
    • Rank (Obsolete):
      9223372036854775807

      Description

      CL_PAGE_INVOKE, CL_PAGE_INVOID and CL_PAGE_INVOID_REVERSE all simply call list_for_each_entry (or list_for_each_entry_reverse) and call one of the functions from cl_page_operations.

      It's much simpler and easy to read to unroll these #defines, along with CL_PAGE_OP and use the correct code.

        Attachments

          Activity

            People

            • Assignee:
              bevans Ben Evans
              Reporter:
              bevans Ben Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: