summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/props.h
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2021-08-19 14:19:13 +0200
committerDavid Sterba <dsterba@suse.com>2021-10-26 19:07:59 +0200
commit9658b72ef300b5002358162218146230f5b72b99 (patch)
tree225f100181fcc5030c273a787cc660ed129903f5 /fs/btrfs/props.h
parentbtrfs: zoned: consider zone as full when no more SB can be written (diff)
downloadlinux-9658b72ef300b5002358162218146230f5b72b99.tar.xz
linux-9658b72ef300b5002358162218146230f5b72b99.zip
btrfs: zoned: locate superblock position using zone capacity
sb_write_pointer() returns the write position of next superblock. For READ, we need a previous location. When the pointer is at the head, the previous one is the last one of the other zone. Calculate the last one's position from zone capacity. 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 'fs/btrfs/props.h')
0 files changed, 0 insertions, 0 deletions