]> 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)
commit03ee3de5062c2d4c1a2cda94df45c2b6fb5ac57a
treeeea750e132b11aab005d97b79e4e7dc1095e86ac
parent647d5a12bfa787fdf0f6257d980c9e89d4bb93fe
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