diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-13 15:05:40 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:04 -0400 |
commit | 253748a26a14ae22123f3ab670ae04eb15fccc2e (patch) | |
tree | 94807789c91fce8876bac64d01cdb16320476a19 /fs/bcachefs/subvolume.c | |
parent | 995f9128e03f769e4cdbcf6dbea8f0db5ce75c69 (diff) | |
download | lwn-253748a26a14ae22123f3ab670ae04eb15fccc2e.tar.gz lwn-253748a26a14ae22123f3ab670ae04eb15fccc2e.zip |
bcachefs: snapshot_to_text() includes snapshot tree
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/subvolume.c')
-rw-r--r-- | fs/bcachefs/subvolume.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/subvolume.c b/fs/bcachefs/subvolume.c index f07b3e2b3226..4b6631c229ee 100644 --- a/fs/bcachefs/subvolume.c +++ b/fs/bcachefs/subvolume.c @@ -86,13 +86,14 @@ void bch2_snapshot_to_text(struct printbuf *out, struct bch_fs *c, { struct bkey_s_c_snapshot s = bkey_s_c_to_snapshot(k); - prt_printf(out, "is_subvol %llu deleted %llu parent %10u children %10u %10u subvol %u", + prt_printf(out, "is_subvol %llu deleted %llu parent %10u children %10u %10u subvol %u tree %u", BCH_SNAPSHOT_SUBVOL(s.v), BCH_SNAPSHOT_DELETED(s.v), le32_to_cpu(s.v->parent), le32_to_cpu(s.v->children[0]), le32_to_cpu(s.v->children[1]), - le32_to_cpu(s.v->subvol)); + le32_to_cpu(s.v->subvol), + le32_to_cpu(s.v->tree)); } int bch2_snapshot_invalid(const struct bch_fs *c, struct bkey_s_c k, |