btrfs: update documentation for BTRFS_RESERVE_FLUSH_EVICT flush method
authorFilipe Manana <fdmanana@suse.com>
Tue, 21 Mar 2023 11:13:40 +0000 (11:13 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:18 +0000 (18:01 +0200)
The BTRFS_RESERVE_FLUSH_EVICT flush method can also commit transactions,
see the definition of the evict_flush_states const array at space-info.c,
but the documentation for it at space-info.h does not mention it.
So update the documentation.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.h

index 2033b71..0bb9d14 100644 (file)
@@ -27,6 +27,7 @@ enum btrfs_reserve_flush_enum {
         * - Running delayed refs
         * - Running delalloc and waiting for ordered extents
         * - Allocating a new chunk
+        * - Committing transaction
         */
        BTRFS_RESERVE_FLUSH_EVICT,