btrfs: add comments for btrfs_check_can_nocow() and can_nocow_extent()
authorQu Wenruo <wqu@suse.com>
Tue, 23 Jun 2020 23:23:51 +0000 (07:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:28 +0000 (12:55 +0200)
commite4ecaf90bc13e2a9c351d5cd86d4094844d7d7bd
treeeea750e132b11aab005d97b79e4e7dc1095e86ac
parent6d4572a9d71d5fc2affee0258d8582d39859188c
btrfs: add comments for btrfs_check_can_nocow() and can_nocow_extent()

These two functions have extra conditions that their callers need to
meet, and some not-that-common parameters used for return value.

So adding some comments may save reviewers some time.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c
fs/btrfs/inode.c