bcachefs: Add mode to bch2_inode_to_text
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 26 Oct 2020 18:54:55 +0000 (14:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:45 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/inode.c

index 758eda5266743ae10a1d8c975470528cd17a5359..71670f415d66d139f04c07a52fd5e71b681582d6 100644 (file)
@@ -271,6 +271,8 @@ void bch2_inode_to_text(struct printbuf *out, struct bch_fs *c,
                return;
        }
 
+       pr_buf(out, "mode: %o ", unpacked.bi_mode);
+
 #define x(_name, _bits)                                                \
        pr_buf(out, #_name ": %llu ", (u64) unpacked._name);
        BCH_INODE_FIELDS()