Skip to contentSkip to conversation

btrfs-progs: print-tree: fix INODE_ITEM sequence and flags

PATCH Applied Anand Jain 2 participants 2 messages Feb 12, 2018 Btrfs file system

lore
Share & tools
lore

Anand Jain

author
#0 lore raw

PATCH 1/1 btrfs-progs: print-tree: fix INODE_ITEM sequence and flags

dump-tree prints wrong sequence number and the flags numbers, as we misplaced the printf args. This patch fixes it.

---
 print-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
print-tree.c +1 -1
index d3fa862139ef..cdc39c971ec9 100644
@@ -919,8 +919,8 @@ static void print_inode_item(struct extent_buffer *eb,
 	       btrfs_inode_uid(eb, ii),
 	       btrfs_inode_gid(eb, ii),
 	       (unsigned long long)btrfs_inode_rdev(eb,ii),
-	       (unsigned long long)btrfs_inode_flags(eb,ii),
 	       (unsigned long long)btrfs_inode_sequence(eb, ii),
+	       (unsigned long long)btrfs_inode_flags(eb,ii),
 	       flags_str);
 	print_timespec(eb, btrfs_inode_atime(ii), "\t\tatime ", "\n");
 	print_timespec(eb, btrfs_inode_ctime(ii), "\t\tctime ", "\n");
Signature · 1 line
2.15.0
Applied
#1 lore raw
Quoted 4 lines · Anand Jain

dump-tree prints wrong sequence number and the flags numbers, as we misplaced the printf args. This patch fixes it.

Applied, thanks.