On 19.09.19 г. 9:14 ч., Omar Sandoval wrote: > On Thu, Sep 05, 2019 at 01:33:56PM +0300, Nikolay Borisov wrote: <snip> >> >> Won't btrfs_lock_and_flush_ordered_range suffice here? Perhaps call that >> function + invalidate_inode_pages2_range ? > > No, btrfs_lock_and_flush_ordered_range() doesn't write out dirty pages, > so it's not sufficient here. But it does - it calls btrfs_start_ordered_extent which calls filemap_fdatawrite_range. > > Thanks for the review! >
- [PATCH 2/2] btrfs: add ioctl for directly writing compr... Omar Sandoval
- Re: [PATCH 2/2] btrfs: add ioctl for directly writ... Dave Chinner
- Re: [PATCH 2/2] btrfs: add ioctl for directly ... Johannes Thumshirn
- Re: [PATCH 2/2] btrfs: add ioctl for direc... Johannes Thumshirn
- Re: [PATCH 2/2] btrfs: add ioctl for direc... Dave Chinner
- Re: [PATCH 2/2] btrfs: add ioctl for directly ... Omar Sandoval
- Re: [PATCH 2/2] btrfs: add ioctl for direc... Dave Chinner
- Re: [PATCH 2/2] btrfs: add ioctl for d... Omar Sandoval
- Re: [PATCH 2/2] btrfs: add ioctl for directly writ... Nikolay Borisov
- Re: [PATCH 2/2] btrfs: add ioctl for directly ... Omar Sandoval
- Re: [PATCH 2/2] btrfs: add ioctl for direc... Nikolay Borisov
- Re: [PATCH 2/2] btrfs: add ioctl for d... Omar Sandoval
- Re: [PATCH 2/2] btrfs: add ioctl ... Nikolay Borisov
- Re: [PATCH 2/2] btrfs: add ioctl for directly writ... Filipe Manana
- Re: [PATCH 2/2] btrfs: add ioctl for directly ... Omar Sandoval
- [PATCH 1/2] fs: export rw_verify_area() Omar Sandoval