OSDN Git Service

btrfs: constify ulist parameter of ulist_next()
authorFilipe Manana <fdmanana@suse.com>
Tue, 1 Nov 2022 16:15:49 +0000 (16:15 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:50 +0000 (18:00 +0100)
commitfa104a879073f3974d673ad8c609d986042cf666
treee220f34769a8954038cad3153b106cf29d07906f
parent1baea6f18abf34037169d3b0c585356abb395376
btrfs: constify ulist parameter of ulist_next()

The ulist_next() iterator function does not need to change the given ulist
so make it const. This will allow the next patch in the series to pass a
ulist to a function that does not need, and should not, modify the ulist.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ulist.c
fs/btrfs/ulist.h