summaryrefslogtreecommitdiff
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-04-12 08:07:29 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2024-05-03 02:50:11 +0300
commit1116b9fa15c09748ae05d2365a305fa22671eb1e (patch)
tree0d380782b6d3aadc770d758ef956887f028423fa /block/blk-cgroup.h
parentb8c873edbf35570b93edfeddad9e85da54defa52 (diff)
downloadlinux-1116b9fa15c09748ae05d2365a305fa22671eb1e.tar.xz
bdev: infrastructure for flags
Replace bd_partno with a 32bit field (__bd_flags). The lower 8 bits contain the partition number, the upper 24 are for flags. Helpers: bdev_{test,set,clear}_flag(bdev, flag), with atomic_or() and atomic_andnot() used to set/clear. NOTE: this commit does not actually move any flags over there - they are still bool fields. As the result, it shifts the fields wrt cacheline boundaries; that's going to be restored once the first 3 flags are dealt with. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'block/blk-cgroup.h')
0 files changed, 0 insertions, 0 deletions