Skip to contentSkip to conversation

btrfs: ordered-extent: fix comment for btrfs ordered extent flag bits

PATCH In review Qu Wenruo 2 participants 2 messages Feb 11, 2021 – Feb 16, 2021 Btrfs file system

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

PATCH 1/1 btrfs: ordered-extent: fix comment for btrfs ordered extent flag bits

There is small error in comment about BTRFS_ORDERED_* flags.

The 4 types are for ordered extent itself, not for direct io. Only 3 types support direct io, REGULAR/NOCOW/PREALLOC.

Fix the comment to reflect that.

---
 fs/btrfs/ordered-data.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/ordered-data.h +2 -2
index 99e0853e4d3b..e60c07f36427 100644
@@ -39,8 +39,8 @@ struct btrfs_ordered_sum {
  */
 enum {
 	/*
-	 * Different types for direct io, one and only one of the 4 type can
-	 * be set when creating ordered extent.
+	 * Different types for ordered extents, one and only one of the 4 types
+	 * need to be set when creating ordered extent.
 	 *
 	 * REGULAR:	For regular non-compressed COW write
 	 * NOCOW:	For NOCOW write into existing non-hole extent
Signature · 1 line
2.30.0
#1 lore raw
Quoted 8 lines · Qu Wenruo

There is small error in comment about BTRFS_ORDERED_* flags.

The 4 types are for ordered extent itself, not for direct io. Only 3 types support direct io, REGULAR/NOCOW/PREALLOC.

Fix the comment to reflect that.

Added to misc-next, thanks.