summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/opts.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-11-09 01:24:07 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:11 -0400
commit319f9ac38eaba628d69b6ddbf402b35487315fc1 (patch)
tree01daddd4881b1f09bb4d50087e8b8803e59fea35 /fs/bcachefs/opts.h
parent75369d4ec3d2dfc52af18a2d20cd0af14c935ac9 (diff)
downloadlinux-stable-319f9ac38eaba628d69b6ddbf402b35487315fc1.tar.gz
linux-stable-319f9ac38eaba628d69b6ddbf402b35487315fc1.tar.bz2
linux-stable-319f9ac38eaba628d69b6ddbf402b35487315fc1.zip
bcachefs: revamp to_text methods
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r--fs/bcachefs/opts.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h
index 52fb9781d933..47617cd011ff 100644
--- a/fs/bcachefs/opts.h
+++ b/fs/bcachefs/opts.h
@@ -229,6 +229,7 @@ enum bch_opt_id {
};
struct bch_fs;
+struct printbuf;
struct bch_option {
struct attribute attr;
@@ -245,7 +246,7 @@ struct bch_option {
};
struct {
int (*parse)(struct bch_fs *, const char *, u64 *);
- int (*print)(struct bch_fs *, char *, size_t, u64);
+ void (*to_text)(struct printbuf *, struct bch_fs *, u64);
};
};
@@ -265,8 +266,8 @@ int bch2_opt_parse(struct bch_fs *, const struct bch_option *, const char *, u64
#define OPT_SHOW_FULL_LIST (1 << 0)
#define OPT_SHOW_MOUNT_STYLE (1 << 1)
-int bch2_opt_to_text(struct bch_fs *, char *, size_t,
- const struct bch_option *, u64, unsigned);
+void bch2_opt_to_text(struct printbuf *, struct bch_fs *,
+ const struct bch_option *, u64, unsigned);
int bch2_parse_mount_opts(struct bch_opts *, char *);