diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-06-27 12:51:00 +0200 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-07-02 17:50:58 +0200 |
commit | edd1400be9f983f521c7397740d810fa210ee52f (patch) | |
tree | 519d72227701fbb03c368aca6bf75a850841483c /ipc | |
parent | Btrfs: cleanup the code of copy_nocow_pages_for_inode() (diff) | |
download | linux-edd1400be9f983f521c7397740d810fa210ee52f.tar.xz linux-edd1400be9f983f521c7397740d810fa210ee52f.zip |
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 'ipc')
0 files changed, 0 insertions, 0 deletions