From: Xiaotian Feng Date: Fri, 17 Jul 2009 07:26:26 +0000 (+0800) Subject: block: sysfs fix mismatched queue_var_{store,show} in 64bit kernel X-Git-Tag: v2.6.31-rc4~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cb308ce8d32a1fb3600acab6034e19a90228743;p=pandora-kernel.git block: sysfs fix mismatched queue_var_{store,show} in 64bit kernel In blk-sysfs.c, queue_var_store uses unsigned long to store data, but queue_var_show uses unsigned int to show data. This causes, # echo 70000000000 > /sys/block//queue/read_ahead_kb # cat /sys/block//queue/read_ahead_kb => get wrong value Fix it by using unsigned long. While at it, convert queue_rq_affinity_show() such that it uses bool variable instead of explicit != 0 testing. Signed-off-by: Xiaotian Feng Signed-off-by: Tejun Heo --- Reading git-diff-tree failed