Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: remove redundant 'default n' from Kconfig-s

'default n' is the default value for any bool or tristate Kconfig
setting so there is no need to write it explicitly.

Also since commit f467c5640c29 ("kconfig: only write '# CONFIG_FOO
is not set' for visible symbols") the Kconfig behavior is the same
regardless of 'default n' being present or not:

...
One side effect of (and the main motivation for) this change is making
the following two definitions behave exactly the same:

config FOO
bool

config FOO
bool
default n

With this change, neither of these will generate a
'# CONFIG_FOO is not set' line (assuming FOO isn't selected/implied).
That might make it clearer to people that a bare 'default n' is
redundant.
...

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Bartlomiej Zolnierkiewicz and committed by
Jens Axboe
1306ad4e 766c8ceb

-10
-7
block/Kconfig
··· 74 74 75 75 config BLK_DEV_BSGLIB 76 76 bool "Block layer SG support v4 helper lib" 77 - default n 78 77 select BLK_DEV_BSG 79 78 select BLK_SCSI_REQUEST 80 79 help ··· 106 107 config BLK_DEV_THROTTLING 107 108 bool "Block layer bio throttling support" 108 109 depends on BLK_CGROUP=y 109 - default n 110 110 ---help--- 111 111 Block layer bio throttling support. It can be used to limit 112 112 the IO rate to a device. IO rate policies are per cgroup and ··· 117 119 config BLK_DEV_THROTTLING_LOW 118 120 bool "Block throttling .low limit interface support (EXPERIMENTAL)" 119 121 depends on BLK_DEV_THROTTLING 120 - default n 121 122 ---help--- 122 123 Add .low limit interface for block throttling. The low limit is a best 123 124 effort limit to prioritize cgroups. Depending on the setting, the limit ··· 127 130 128 131 config BLK_CMDLINE_PARSER 129 132 bool "Block device command line partition parser" 130 - default n 131 133 ---help--- 132 134 Enabling this option allows you to specify the partition layout from 133 135 the kernel boot args. This is typically of use for embedded devices ··· 137 141 138 142 config BLK_WBT 139 143 bool "Enable support for block device writeback throttling" 140 - default n 141 144 ---help--- 142 145 Enabling this option enables the block layer to throttle buffered 143 146 background writeback from the VM, making it more smooth and having ··· 147 152 config BLK_CGROUP_IOLATENCY 148 153 bool "Enable support for latency based cgroup IO protection" 149 154 depends on BLK_CGROUP=y 150 - default n 151 155 ---help--- 152 156 Enabling this option enables the .latency interface for IO throttling. 153 157 The IO controller will attempt to maintain average IO latencies below ··· 157 163 158 164 config BLK_WBT_SQ 159 165 bool "Single queue writeback throttling" 160 - default n 161 166 depends on BLK_WBT 162 167 ---help--- 163 168 Enable writeback throttling by default on legacy single queue devices
-3
block/Kconfig.iosched
··· 36 36 config CFQ_GROUP_IOSCHED 37 37 bool "CFQ Group Scheduling support" 38 38 depends on IOSCHED_CFQ && BLK_CGROUP 39 - default n 40 39 ---help--- 41 40 Enable group IO scheduling in CFQ. 42 41 ··· 81 82 82 83 config IOSCHED_BFQ 83 84 tristate "BFQ I/O scheduler" 84 - default n 85 85 ---help--- 86 86 BFQ I/O scheduler for BLK-MQ. BFQ distributes the bandwidth of 87 87 of the device among all processes according to their weights, ··· 92 94 config BFQ_GROUP_IOSCHED 93 95 bool "BFQ hierarchical scheduling support" 94 96 depends on IOSCHED_BFQ && BLK_CGROUP 95 - default n 96 97 ---help--- 97 98 98 99 Enable hierarchical scheduling in BFQ, using the blkio