diff options
| author | Al Viro <[email protected]> | 2024-04-12 05:07:29 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2024-05-02 23:50:11 +0000 |
| commit | 1116b9fa15c09748ae05d2365a305fa22671eb1e (patch) | |
| tree | 0d380782b6d3aadc770d758ef956887f028423fa /scripts/generate_rust_target.rs | |
| parent | wrapper for access to ->bd_partno (diff) | |
| download | kernel-1116b9fa15c09748ae05d2365a305fa22671eb1e.tar.gz kernel-1116b9fa15c09748ae05d2365a305fa22671eb1e.zip | |
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 <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
