Skip to content
GitLab
  • Explore
  • Sign in

Admin message

Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.

  • Arch LinuxArch Linux
  • Packaging
  • Upstream
  • linux-rtlinux-rt
  • Repository
  • linux-rt
  • fs
  • btrfs
  • dev-replace.c
Find file Blame History Permalink
  • Nikolay Borisov's avatar
    btrfs: Make btrfs_find_device_by_devspec return btrfs_device directly · a27a94c2
    Nikolay Borisov authored Sep 03, 2018
    
    
    Instead of returning an error value and using one of the parameters for
    returning the actual object we are interested in just refactor the
    function to directly return btrfs_device *. Also bubble up the error
    handling for the special BTRFS_ERROR_DEV_MISSING_NOT_FOUND value into
    btrfs_rm_device. No functional changes.
    
    Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
    Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    a27a94c2