]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: Remove extra discard_alignment from hd_struct.
authorTao Ma <boyu.mt@taobao.com>
Sat, 7 May 2011 01:30:02 +0000 (19:30 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 May 2011 01:30:02 +0000 (19:30 -0600)
commit23ceb5b7719e9276d4fa72a3ecf94dd396755276
treef0613021d10b9e8464a26a78fcabf48e0f0b715b
parent8af1954d172a46a63e5e79dae523a6d74715e458
block: Remove extra discard_alignment from hd_struct.

Currently, hd_struct.discard_alignment is only used when we
show /sys/block/sdx/sdx/discard_alignment. So remove it and
calculate when it is asked to show.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/partitions/check.c
include/linux/genhd.h