diff options
| author | Naohiro Aota <naohiro.aota@wdc.com> | 2021-08-19 21:19:12 +0900 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2021-10-26 19:07:59 +0200 |
| commit | 5daaf552d18263adbdf385ce5c32da8277f8de02 (patch) | |
| tree | 7d7a8210aef586061b536d8ae5e9b33909c1e926 /lib/mpi/mpi-add.c | |
| parent | d8da0e85673a9512b2eb11cdeabc7523b3a46ce2 (diff) | |
btrfs: zoned: consider zone as full when no more SB can be written
We cannot write beyond zone capacity. So, we should consider a zone as
"full" when the write pointer goes beyond capacity - the size of super
info.
Also, take this opportunity to replace a subtle duplicated code with a loop
and fix a typo in comment.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
