diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-08-24 20:31:44 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:10 -0400 |
commit | 1865ccff159cce61d017d1c93e024d2f482d6a0c (patch) | |
tree | 1414181c25f88fc07a135abcde6bda9609ecff80 /fs/bcachefs/bkey_methods.c | |
parent | dc02bed6d9b8c85a8db686fecac5749fbde8cba1 (diff) | |
download | linux-1865ccff159cce61d017d1c93e024d2f482d6a0c.tar.gz linux-1865ccff159cce61d017d1c93e024d2f482d6a0c.tar.bz2 linux-1865ccff159cce61d017d1c93e024d2f482d6a0c.zip |
bcachefs: Add SPOS_MAX to bpos_to_text()
Better pretty printing ftw
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/bkey_methods.c')
-rw-r--r-- | fs/bcachefs/bkey_methods.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/bkey_methods.c b/fs/bcachefs/bkey_methods.c index 465be5fee7d9..8efef485c6d8 100644 --- a/fs/bcachefs/bkey_methods.c +++ b/fs/bcachefs/bkey_methods.c @@ -215,6 +215,8 @@ void bch2_bpos_to_text(struct printbuf *out, struct bpos pos) pr_buf(out, "POS_MIN"); else if (!bpos_cmp(pos, POS_MAX)) pr_buf(out, "POS_MAX"); + else if (!bpos_cmp(pos, SPOS_MAX)) + pr_buf(out, "SPOS_MAX"); else { if (pos.inode == U64_MAX) pr_buf(out, "U64_MAX"); |