summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2025-09-18 15:48:40 +0200
committerMikulas Patocka <mpatocka@redhat.com>2025-09-23 14:51:04 +0200
commit55dcfdf8af9c38cce6f5b2058d3b58dde25e5020 (patch)
tree3f77d5be93117db2720a101104e73076f8b52198 /scripts/lib/kdoc/kdoc_parser.py
parent1cd83fb79083a2431f513956afca92b690ef11ad (diff)
dm raid: use proper md_ro_state enumerators
The dm-raid code was using hardcoded integer values to represent the read-only/read-write state of RAID arrays instead of the proper enumeration constants defined in the md_ro_state enumerator type. Changes: - Replace hardcoded integers with the appropriate md_ro_state enumerator values - Add the missing MD_RDONLY setting in the post_suspend function (no failures have been attributed to this inconsistency, the fix ensures correct state transitions for completeness) This improves code clarity and maintainability by using the defined enumeration constants rather than magic numbers, ensuring the code properly conforms to the established API interface. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions