]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add comments for btrfs_reserve_flush_enum
authorQu Wenruo <wqu@suse.com>
Mon, 13 Jul 2020 01:03:22 +0000 (09:03 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:45 +0000 (12:55 +0200)
commitbdfc47e2ef0dd996c5afeb3033614a9d879f86ba
treee6dc66d37a98573aa2733e94cd7f79e887a612df
parentb20b055acf3e7da7b79b9fc16c286de165d0b5d8
btrfs: add comments for btrfs_reserve_flush_enum

This enum is the interface exposed to developers.

Although we have a detailed comment explaining the whole idea of space
flushing at the beginning of space-info.c, the exposed enum interface
doesn't have any comment.

Some corner cases, like BTRFS_RESERVE_FLUSH_ALL and
BTRFS_RESERVE_FLUSH_ALL_STEAL can be interrupted by fatal signals, are
not explained at all.

So add some simple comments for these enums as a quick reference.

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/ctree.h