commit | a1a50f60a6bf4f861eb94793420274bc1ccd409a | [log] [tgz] |
---|---|---|
author | Filipe Manana <fdmanana@gmail.com> | Sat Apr 26 01:35:31 2014 +0100 |
committer | Chris Mason <clm@fb.com> | Mon Jun 09 17:20:24 2014 -0700 |
tree | 78460ac0f6e86d31174f15d018ef4c2ec87286fc | |
parent | 7fb18a06644a33f0a2eba810d57d4b3b2c982f5b [diff] |
Btrfs: read inode size after acquiring the mutex when punching a hole In a previous change, commit 12870f1c9b2de7d475d22e73fd7db1b418599725, I accidentally moved the roundup of inode->i_size to outside of the critical section delimited by the inode mutex, which is not atomic and not correct since the size can be changed by other task before we acquire the mutex. Therefore fix it. Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com> Signed-off-by: Chris Mason <clm@fb.com>