mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
bcachefs: Add SPOS_MAX to bpos_to_text()
Better pretty printing ftw Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
dc02bed6d9
commit
1865ccff15
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue