ExportXMLWordPrintable

    • 3
    • 9223372036854775807

      In ns_is_{client,server}(), (ns->ns_client == LDLM_NAMESPACE_CLIENT || ns->ns_client == LDLM_NAMESPACE_SERVER) implies that (!(ns->ns_client & ~(LDLM_NAMESPACE_CLIENT |
      LDLM_NAMESPACE_SERVER))) is also true, so the latter LASSERT() could be removed from ns_is_{client,server}().

       

      This might be an inconsequential issue. I have not checked if gcc optimizes-out one of the LASSERT()s.

            Assignee:
            Nikitas Angelinas
            Reporter:
            Nikitas Angelinas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: