aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMikulas Patocka <[email protected]>2009-06-22 10:12:14 +0100
committerAlasdair G Kergon <[email protected]>2009-06-22 10:12:14 +0100
commit5657e8fa45cf230df278040c420fb80e06309d8f (patch)
tree7817e1bd6c9b721be85fe54a1aec6ef971d7d96b /tools/perf/scripts/python/bin
parent8cbeb67ad50f7d68e5e83be2cb2284de8f9c03b5 (diff)
dm: use i_size_read
Use i_size_read() instead of reading i_size. If someone changes the size of the device simultaneously, i_size_read is guaranteed to return a valid value (either the old one or the new one). i_size can return some intermediate invalid value (on 32-bit computers with 64-bit i_size, the reads to both halves of i_size can be interleaved with updates to i_size, resulting in garbage being returned). Cc: [email protected] Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions