mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
libdm: remove unneeded read_ahead settings
Skip settings are read_ahead value which is already set in kernel.
This commit is contained in:
parent
55d90b6420
commit
e5c30061fc
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.78 -
|
Version 1.02.78 -
|
||||||
===================================
|
===================================
|
||||||
|
Optimize out setting the same value or read_ahead.
|
||||||
Add DM_ARRAY_SIZE public macro.
|
Add DM_ARRAY_SIZE public macro.
|
||||||
Move syslog code out of signal handle in dmeventd.
|
Move syslog code out of signal handle in dmeventd.
|
||||||
Add DM_TO_STRING public macro.
|
Add DM_TO_STRING public macro.
|
||||||
|
@ -1221,7 +1221,7 @@ static int _set_dev_node_read_ahead(const char *dev_name,
|
|||||||
if (!get_dev_node_read_ahead(dev_name, major, minor, ¤t_read_ahead))
|
if (!get_dev_node_read_ahead(dev_name, major, minor, ¤t_read_ahead))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
if (current_read_ahead > read_ahead) {
|
if (current_read_ahead >= read_ahead) {
|
||||||
log_debug_activation("%s: retaining kernel read ahead of %" PRIu32
|
log_debug_activation("%s: retaining kernel read ahead of %" PRIu32
|
||||||
" (requested %" PRIu32 ")",
|
" (requested %" PRIu32 ")",
|
||||||
dev_name, current_read_ahead, read_ahead);
|
dev_name, current_read_ahead, read_ahead);
|
||||||
|
Loading…
Reference in New Issue
Block a user