]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
block: sysfs fix mismatched queue_var_{store,show} in 64bit kernel
authorXiaotian Feng <dfeng@redhat.com>
Fri, 17 Jul 2009 07:26:26 +0000 (15:26 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 17 Jul 2009 07:54:15 +0000 (16:54 +0900)
commit9cb308ce8d32a1fb3600acab6034e19a90228743
tree774c9b00be1b417cc805895b4da83dd59ea144c9
parent8f47428704c2fd6f787a6f340071b9c338b65803
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/<dev>/queue/read_ahead_kb
# cat /sys/block/<dev>/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 <dfeng@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
block/blk-sysfs.c