diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-06-27 18:51:00 +0800 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-07-02 11:50:58 -0400 |
commit | edd1400be9f983f521c7397740d810fa210ee52f (patch) | |
tree | 519d72227701fbb03c368aca6bf75a850841483c /fs/jbd | |
parent | 826aa0a82c5b9d2c8016c02b552e8f82f5b1e660 (diff) | |
download | op-kernel-dev-edd1400be9f983f521c7397740d810fa210ee52f.zip op-kernel-dev-edd1400be9f983f521c7397740d810fa210ee52f.tar.gz |
Btrfs: fix several potential problems in copy_nocow_pages_for_inode
- It makes no sense that we deal with a inode in the dead tree.
- fix the race between dio and page copy by waiting the dio completion
- avoid the page copy vs truncate/punch hole
- check if the page is in the page cache or not
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/jbd')
0 files changed, 0 insertions, 0 deletions