aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorLi Lingfeng <[email protected]>2024-01-18 13:04:01 +0000
committerJens Axboe <[email protected]>2024-01-22 16:51:29 +0000
commit7777f47f2ea64efd1016262e7b59fab34adfb869 (patch)
tree7d2771ec325f962c74d8dd9bb695cecef30b85ef /scripts/generate_rust_target.rs
parentLinux 6.8-rc1 (diff)
downloadkernel-7777f47f2ea64efd1016262e7b59fab34adfb869.tar.gz
kernel-7777f47f2ea64efd1016262e7b59fab34adfb869.zip
block: Move checking GENHD_FL_NO_PART to bdev_add_partition()
Commit 1a721de8489f ("block: don't add or resize partition on the disk with GENHD_FL_NO_PART") prevented all operations about partitions on disks with GENHD_FL_NO_PART in blkpg_do_ioctl() since they are meaningless. However, it changed error code in some scenarios. So move checking GENHD_FL_NO_PART to bdev_add_partition() to eliminate impact. Fixes: 1a721de8489f ("block: don't add or resize partition on the disk with GENHD_FL_NO_PART") Reported-by: Allison Karlitskaya <[email protected]> Closes: https://lore.kernel.org/all/CAOYeF9VsmqKMcQjo1k6YkGNujwN-nzfxY17N3F-CMikE1tYp+w@mail.gmail.com/ Signed-off-by: Li Lingfeng <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions