]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: move need_log_inode() to above log_conflicting_inodes()
authorFilipe Manana <fdmanana@suse.com>
Wed, 17 Aug 2022 11:22:44 +0000 (12:22 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:57 +0000 (12:27 +0200)
commit95a935ba6c078d3a490ec2700c3866ea46f63aab
tree08d2b8861f1a2d72cd13080aa225fee4b58dc0b7
parent6551d7f5f6fd949d048339d6f3873696fc979912
btrfs: move need_log_inode() to above log_conflicting_inodes()

The static function need_log_inode() is defined below btrfs_log_inode()
and log_conflicting_inodes(), but in the next patches in the series we
will need to call need_log_inode() in a couple new functions that will be
used by btrfs_log_inode(). So move its definition to a location above
log_conflicting_inodes().

Also make its arguments 'const', since they are not supposed to be
modified.

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