]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove unused check of skip_locking
authorLiu Bo <bo.liu@linux.alibaba.com>
Tue, 29 May 2018 13:27:06 +0000 (21:27 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 May 2018 14:46:52 +0000 (16:46 +0200)
commitbefb903506e3b723ed391a0d36c38d4c9d5f1641
tree6fb7e3b5b6e37793cd6fc97a8858128d06bd82f7
parent776346898ceaed9f13fff1aedbec55907168a655
Btrfs: remove unused check of skip_locking

The check is superfluous since all callers who set search_for_commit
also have skip_locking set.

ASSERT() is put in place to ensure skip_locking is set by new callers.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c