[PATCH] block: Change wrong type cast in part_discard_alignment_show.

From: Tao Ma
Date: Mon May 09 2011 - 01:39:49 EST


Use 'unsigned int' instead of 'unsigned long long' introduced by commit
"block: Remove extra discard_alignment from hd_struct".

Signed-off-by: Tao Ma <boyu.mt@xxxxxxxxxx>
---
fs/partitions/check.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index b7e16bc..b2bae85 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -258,7 +258,7 @@ ssize_t part_discard_alignment_show(struct device *dev,
struct gendisk *disk = dev_to_disk(dev);

return sprintf(buf, "%u\n",
- (unsigned long long)queue_limit_discard_alignment(
+ (unsigned int)queue_limit_discard_alignment(
&disk->queue->limits,
p->start_sect));
}
--
1.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/