]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita29e470cbdfe63b23fcecbd01b7b76d7b998f564
treeeea750e132b11aab005d97b79e4e7dc1095e86ac
parent3c5b6df810aaf22d740fb7c1a5bc69fe806554ac
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