btrfs: User assert to document transaction requirement
authorNikolay Borisov <nborisov@suse.com>
Tue, 8 Oct 2019 13:26:16 +0000 (16:26 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:54 +0000 (12:46 +0100)
commitce6d3eb6fd5cfede81c7a3d540919f6d92faaac0
treed0aeb26ddb7a86bca574e51b9153530cbdaf1759
parent67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9
btrfs: User assert to document transaction requirement

Using an ASSERT in btrfs_pin_extent allows to more stringently observe
whether the function is called under a transaction or not.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c