]> git.neil.brown.name Git - history.git/commit
[PATCH] dm: block size bug with 64 bit devs
authorJoe Thornber <thornber@redhat.com>
Tue, 10 Feb 2004 01:24:56 +0000 (17:24 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 10 Feb 2004 01:24:56 +0000 (17:24 -0800)
commit92155747002a61b7d77c8eb1616f604bd4cba4ca
tree5cedb633ca1f673834f2e7aa5e441d70f368983f
parent122123c4b298a688d43666d0355ca253070c1ea8
[PATCH] dm: block size bug with 64 bit devs

With 32 bit sector_t the block device size _in bytes_ is also cut to
32 bit in __set_size when the block device is mount (a filesystem
mounted). The argument should be cast to loff_t before expanding the
sector count to a byte count and calling i_size_write.

[Christophe Saout]
drivers/md/dm.c