From: Guo Chao Date: Thu, 21 Feb 2013 23:16:42 +0000 (-0800) Subject: block: use i_size_write() in bd_set_size() X-Git-Tag: v3.9-rc1~44^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d646a02a9d44d1421f273ae3923d97b47b918176;p=pandora-kernel.git block: use i_size_write() in bd_set_size() blkdev_ioctl(GETBLKSIZE) uses i_size_read() to read size of block device. If we update block size directly, reader may see intermediate result in some machines and configurations. Use i_size_write() instead. Signed-off-by: Guo Chao Cc: Alexander Viro Cc: Guo Chao Cc: M. Hindess Cc: Nikanth Karthikesan Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed