Re: [PATCH] btrfs: Rename __btrfs_alloc_chunk to btrfs_alloc_chunk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 02, 2020 at 12:29:25PM +0200, Nikolay Borisov wrote:
> Having btrfs_alloc_chunk doesn't bring any value since it
> encapsulates a lockdep assert and a call to find_next_chunk. Simply
> rename the internal __btrfs_alloc_chunk function to the public one
> and remove it's 2nd parameter as all callers always pass the return
> value of find_next_chunk. Finally, migrate the call to
> lockdep_assert_held so as to not lose the check.
> 
> Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>

Added to misc-next, thanks.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux