]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: add and use helper to get lowest sequence number for the tree mod log
authorFilipe Manana <fdmanana@suse.com>
Thu, 11 Mar 2021 14:31:12 +0000 (14:31 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Apr 2021 13:35:56 +0000 (15:35 +0200)
commitd1c16652fc10618ba550d1d1a01ab1a88e57a9d1
treecbfd5f9c9404a353f190a14896f32f9d696c9c13
parent922ae6a52c85adf5200f788cc7e2ac59d7d1a88c
btrfs: add and use helper to get lowest sequence number for the tree mod log

There are two places outside the tree mod log module that extract the
lowest sequence number of the tree mod log. These places end up
duplicating code and open coding the logic and internal implementation
details of the tree mod log. So add a helper to the tree mod log module
and header that returns the lowest sequence number or 0 if there aren't
any tree mod log users at the moment.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c
fs/btrfs/tree-mod-log.c
fs/btrfs/tree-mod-log.h