1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Zdenek Kabelac 2013-07-15 11:41:07 +02:00
parent 55d90b6420
commit e5c30061fc
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.78 -
===================================
Optimize out setting the same value or read_ahead.
Add DM_ARRAY_SIZE public macro.
Move syslog code out of signal handle in dmeventd.
Add DM_TO_STRING public macro.

View File

@ -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, &current_read_ahead))
return_0;
if (current_read_ahead > read_ahead) {
if (current_read_ahead >= read_ahead) {
log_debug_activation("%s: retaining kernel read ahead of %" PRIu32
" (requested %" PRIu32 ")",
dev_name, current_read_ahead, read_ahead);