diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-02-10 19:34:47 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:21 -0400 |
commit | 5e82a9a1f4f82e273530b90d107638a5969d1de0 (patch) | |
tree | 6e5c17c14f4f2a2589303b4d80a2bfc193818dd0 /fs/bcachefs/chardev.c | |
parent | fca1223ccfac2a461d7d3e29fb09a1b2142bdd7f (diff) | |
download | linux-stable-5e82a9a1f4f82e273530b90d107638a5969d1de0.tar.gz linux-stable-5e82a9a1f4f82e273530b90d107638a5969d1de0.tar.bz2 linux-stable-5e82a9a1f4f82e273530b90d107638a5969d1de0.zip |
bcachefs: Write out fs usage consistently
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/chardev.c')
-rw-r--r-- | fs/bcachefs/chardev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/chardev.c b/fs/bcachefs/chardev.c index f7cfec9f00f9..2573376290bb 100644 --- a/fs/bcachefs/chardev.c +++ b/fs/bcachefs/chardev.c @@ -394,7 +394,7 @@ static long bch2_ioctl_usage(struct bch_fs *c, } { - struct bch_fs_usage *src; + struct bch_fs_usage_online *src; struct bch_ioctl_fs_usage dst = { .capacity = c->capacity, }; @@ -410,7 +410,7 @@ static long bch2_ioctl_usage(struct bch_fs *c, for (i = 0; i < BCH_REPLICAS_MAX; i++) { dst.persistent_reserved[i] = - src->persistent_reserved[i]; + src->u.persistent_reserved[i]; #if 0 for (j = 0; j < BCH_DATA_NR; j++) dst.sectors[j][i] = src.replicas[i].data[j]; |