projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f78e2d2
)
ext4: use i_size_read in ext4_unaligned_aio()
author
Theodore Ts'o
<tytso@mit.edu>
Sat, 12 Apr 2014 16:45:25 +0000
(12:45 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:55:32 +0000
(07:55 -0700)
commit
6e6358fc3c3c862bfe9a5bc029d3f8ce43dc9765
upstream.
We haven't taken i_mutex yet, so we need to use i_size_read().
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/file.c
patch
|
blob
|
history
diff --git
a/fs/ext4/file.c
b/fs/ext4/file.c
index b19f0a457f329c5fb0f6974f7afff8dc79f1e31c..4635788e14bf8d51dafc729a27f1d5689453e606 100644
(file)
--- a/
fs/ext4/file.c
+++ b/
fs/ext4/file.c
@@
-82,7
+82,7
@@
ext4_unaligned_aio(struct inode *inode, const struct iovec *iov,
size_t count = iov_length(iov, nr_segs);
loff_t final_size = pos + count;
- if (pos >= i
node->i_size
)
+ if (pos >= i
_size_read(inode)
)
return 0;
if ((pos & blockmask) || (final_size & blockmask))