git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbcc832
)
Btrfs: use i_size_read() in btrfs_defrag_file()
author
Li Zefan
<lizf@cn.fujitsu.com>
Fri, 2 Sep 2011 07:56:39 +0000
(15:56 +0800)
committer
David Sterba
<dsterba@suse.cz>
Thu, 20 Oct 2011 16:10:35 +0000
(18:10 +0200)
Don't use inode->i_size directly, since we're not holding i_mutex.
This also fixes another bug, that i_size can change after it's checked
against 0 and then (i_size - 1) can be negative.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
No differences found