diff options
author | Guo Chao <yan@linux.vnet.ibm.com> | 2013-02-22 00:16:42 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-02-22 10:42:46 +0100 |
commit | d646a02a9d44d1421f273ae3923d97b47b918176 (patch) | |
tree | 371fd1c8f675ff8532337b913a24237501c7d394 /include/net/ax25.h | |
parent | cfq: fix lock imbalance with failed allocations (diff) | |
download | linux-d646a02a9d44d1421f273ae3923d97b47b918176.tar.xz linux-d646a02a9d44d1421f273ae3923d97b47b918176.zip |
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 <yan@linux.vnet.ibm.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Guo Chao <yan@linux.vnet.ibm.com>
Cc: M. Hindess <hindessm@uk.ibm.com>
Cc: Nikanth Karthikesan <knikanth@suse.de>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/net/ax25.h')
0 files changed, 0 insertions, 0 deletions