1. 25 Nov, 2015 1 commit
  2. 22 Mar, 2013 1 commit
    • Lars Ellenberg's avatar
      lru_cache: introduce lc_get_cumulative() · cbe5e610
      Lars Ellenberg authored
      New helper to be able to consolidate more updates
      into a single transaction.
      Without this, we can only grab a single refcount
      on an updated element while preparing a transaction.
      
      lc_get_cumulative - like lc_get; also finds to-be-changed elements
        @lc: the lru cache to operate on
        @enr: the label to look up
      
        Unlike lc_get this also returns the element for @enr, if it is belonging to
        a pending transaction, so the return values are like for lc_get(),
        plus:
      
        pointer to an element already on the "to_be_changed" list.
      	  In this case, the cache was already marked %LC_DIRTY.
      
        Caller needs to make sure that the pending transaction is completed,
        before proceeding to actually use this element.
      Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
      Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
      
      Fixed up by Jens to export lc_get_cumulative().
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      cbe5e610
  3. 19 Nov, 2012 1 commit
  4. 14 Oct, 2011 2 commits
  5. 24 May, 2011 1 commit
  6. 31 Mar, 2011 1 commit
  7. 16 Jun, 2010 1 commit
  8. 09 Feb, 2010 1 commit
  9. 01 Oct, 2009 1 commit