• Linus Torvalds's avatar
    Merge tag 'xarray-5.1-rc1' of git://git.infradead.org/users/willy/linux-dax · ea295481
    Linus Torvalds authored
    Pull XArray updates from Matthew Wilcox:
     "This pull request changes the xa_alloc() API. I'm only aware of one
      subsystem that has started trying to use it, and we agree on the fixup
      as part of the merge.
    
      The xa_insert() error code also changed to match xa_alloc() (EEXIST to
      EBUSY), and I added xa_alloc_cyclic(). Beyond that, the usual
      bugfixes, optimisations and tweaking.
    
      I now have a git tree with all users of the radix tree and IDR
      converted over to the XArray that I'll be feeding to maintainers over
      the next few weeks"
    
    * tag 'xarray-5.1-rc1' of git://git.infradead.org/users/willy/linux-dax:
      XArray: Fix xa_reserve for 2-byte aligned entries
      XArray: Fix xa_erase of 2-byte aligned entries
      XArray: Use xa_cmpxchg to implement xa_reserve
      XArray: Fix xa_release in allocating arrays
      XArray: Mark xa_insert and xa_reserve as must_check
      XArray: Add cyclic allocation
      XArray: Redesign xa_alloc API
      XArray: Add support for 1s-based allocation
      XArray: Change xa_insert to return -EBUSY
      XArray: Update xa_erase family descriptions
      XArray tests: RCU lock prohibits GFP_KERNEL
    ea295481
device.c 52.9 KB