Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-24 Thread Nikolay Borisov
On 19.09.19 г. 10:59 ч., Omar Sandoval wrote: > On Thu, Sep 19, 2019 at 09:46:31AM +0200, Nikolay Borisov wrote: >> >> >> On 19.09.19 г. 9:14 ч., Omar Sandoval wrote: >>> On Thu, Sep 05, 2019 at 01:33:56PM +0300, Nikolay Borisov wrote: >> >> >> Won't btrfs_lock_and_flush_ordered_range

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-19 Thread Omar Sandoval
On Thu, Sep 19, 2019 at 09:46:31AM +0200, Nikolay Borisov wrote: > > > On 19.09.19 г. 9:14 ч., Omar Sandoval wrote: > > On Thu, Sep 05, 2019 at 01:33:56PM +0300, Nikolay Borisov wrote: > > > > >> > >> Won't btrfs_lock_and_flush_ordered_range suffice here? Perhaps call that > >> function + inva

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-19 Thread Nikolay Borisov
On 19.09.19 г. 9:14 ч., Omar Sandoval wrote: > On Thu, Sep 05, 2019 at 01:33:56PM +0300, Nikolay Borisov wrote: >> >> 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 wr

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-18 Thread Omar Sandoval
On Tue, Sep 10, 2019 at 12:39:28PM +0100, Filipe Manana wrote: > On Wed, Sep 4, 2019 at 8:14 PM Omar Sandoval wrote: > > > > From: Omar Sandoval > > > > This adds an API for writing compressed data directly to the filesystem. > > The use case that I have in mind is send/receive: currently, when >

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-18 Thread Omar Sandoval
On Thu, Sep 05, 2019 at 01:33:56PM +0300, Nikolay Borisov wrote: > > > On 4.09.19 г. 22:13 ч., Omar Sandoval wrote: > > From: Omar Sandoval > > > > This adds an API for writing compressed data directly to the filesystem. > > The use case that I have in mind is send/receive: currently, when > >

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-10 Thread Filipe Manana
On Wed, Sep 4, 2019 at 8:14 PM Omar Sandoval wrote: > > From: Omar Sandoval > > This adds an API for writing compressed data directly to the filesystem. > The use case that I have in mind is send/receive: currently, when > sending data from one compressed filesystem to another, the sending side >

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-06 Thread Omar Sandoval
On Sat, Sep 07, 2019 at 07:07:17AM +1000, Dave Chinner wrote: > On Fri, Sep 06, 2019 at 11:19:49AM -0700, Omar Sandoval wrote: > > On Thu, Sep 05, 2019 at 12:10:12PM +1000, Dave Chinner wrote: > > > On Wed, Sep 04, 2019 at 12:13:26PM -0700, Omar Sandoval wrote: > > > > From: Omar Sandoval > > > >

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-06 Thread Dave Chinner
On Fri, Sep 06, 2019 at 11:19:49AM -0700, Omar Sandoval wrote: > On Thu, Sep 05, 2019 at 12:10:12PM +1000, Dave Chinner wrote: > > On Wed, Sep 04, 2019 at 12:13:26PM -0700, Omar Sandoval wrote: > > > From: Omar Sandoval > > > > > > This adds an API for writing compressed data directly to the file

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-06 Thread Omar Sandoval
On Thu, Sep 05, 2019 at 12:10:12PM +1000, Dave Chinner wrote: > On Wed, Sep 04, 2019 at 12:13:26PM -0700, Omar Sandoval wrote: > > From: Omar Sandoval > > > > This adds an API for writing compressed data directly to the filesystem. > > The use case that I have in mind is send/receive: currently,

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-06 Thread Dave Chinner
On Thu, Sep 05, 2019 at 02:16:37PM +0200, Johannes Thumshirn wrote: > On 05/09/2019 04:10, Dave Chinner wrote: > > On Wed, Sep 04, 2019 at 12:13:26PM -0700, Omar Sandoval wrote: > >> From: Omar Sandoval > >> > >> This adds an API for writing compressed data directly to the filesystem. > >> The use

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-05 Thread Johannes Thumshirn
On 05/09/2019 14:16, Johannes Thumshirn wrote: > On 05/09/2019 04:10, Dave Chinner wrote: >> On Wed, Sep 04, 2019 at 12:13:26PM -0700, Omar Sandoval wrote: >>> From: Omar Sandoval >>> >>> This adds an API for writing compressed data directly to the filesystem. >>> The use case that I have in mind

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-05 Thread Johannes Thumshirn
On 05/09/2019 04:10, Dave Chinner wrote: > On Wed, Sep 04, 2019 at 12:13:26PM -0700, Omar Sandoval wrote: >> From: Omar Sandoval >> >> This adds an API for writing compressed data directly to the filesystem. >> The use case that I have in mind is send/receive: currently, when >> sending data from

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-05 Thread Nikolay Borisov
On 4.09.19 г. 22:13 ч., Omar Sandoval wrote: > From: Omar Sandoval > > This adds an API for writing compressed data directly to the filesystem. > The use case that I have in mind is send/receive: currently, when > sending data from one compressed filesystem to another, the sending side > decom

Re: [PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-04 Thread Dave Chinner
On Wed, Sep 04, 2019 at 12:13:26PM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > This adds an API for writing compressed data directly to the filesystem. > The use case that I have in mind is send/receive: currently, when > sending data from one compressed filesystem to another, the sendi

[PATCH 2/2] btrfs: add ioctl for directly writing compressed data

2019-09-04 Thread Omar Sandoval
From: Omar Sandoval This adds an API for writing compressed data directly to the filesystem. The use case that I have in mind is send/receive: currently, when sending data from one compressed filesystem to another, the sending side decompresses the data and the receiving side recompresses it befo