Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-09 Thread Liu Bo
On Fri, Dec 09, 2016 at 01:31:03PM +0100, Jan Kara wrote: > On Thu 08-12-16 08:45:39, Liu Bo wrote: > > On Thu, Dec 08, 2016 at 11:47:41AM +0100, Jan Kara wrote: > > > On Wed 07-12-16 17:15:42, Chris Mason wrote: > > > > On 12/07/2016 04:45 PM, Liu Bo wrote: > > > > >This has implemented DAX

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-09 Thread Chris Mason
On 12/09/2016 12:13 AM, Dave Chinner wrote: On Wed, Dec 07, 2016 at 01:45:08PM -0800, Liu Bo wrote: Since I haven't figure out how to map multiple devices to userspace without pagecache, this DAX support is only for single-device, and I don't think DAX(Direct Access) can work with cow, this

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-09 Thread Jan Kara
On Thu 08-12-16 08:45:39, Liu Bo wrote: > On Thu, Dec 08, 2016 at 11:47:41AM +0100, Jan Kara wrote: > > On Wed 07-12-16 17:15:42, Chris Mason wrote: > > > On 12/07/2016 04:45 PM, Liu Bo wrote: > > > >This has implemented DAX support for btrfs with nocow and single-device. > > > > > > > >DAX is

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-08 Thread Dave Chinner
On Wed, Dec 07, 2016 at 01:45:08PM -0800, Liu Bo wrote: > Since I haven't figure out how to map multiple devices to userspace without > pagecache, this DAX support is only for single-device, and I don't think > DAX(Direct Access) can work with cow, this is limited to nocow case. I made > this by

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-08 Thread Liu Bo
On Thu, Dec 08, 2016 at 11:47:41AM +0100, Jan Kara wrote: > On Wed 07-12-16 17:15:42, Chris Mason wrote: > > On 12/07/2016 04:45 PM, Liu Bo wrote: > > >This has implemented DAX support for btrfs with nocow and single-device. > > > > > >DAX is developed for block devices that are memory-like in

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-08 Thread Jan Kara
On Wed 07-12-16 17:15:42, Chris Mason wrote: > On 12/07/2016 04:45 PM, Liu Bo wrote: > >This has implemented DAX support for btrfs with nocow and single-device. > > > >DAX is developed for block devices that are memory-like in order to avoid > >double buffer in both page cache and the storage, so

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-07 Thread kbuild test robot
Hi Liu, [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.9-rc8] [cannot apply to btrfs/next next-20161207] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-07 Thread Janos Toth F.
I realize this is related very loosely (if at all) to this topic but what about these two possible features: - a mount option, or - an attribute (which could be set on directories and/or sub-volumes and applied to any new files created below these) which effectively forces every read/write

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-07 Thread kbuild test robot
Hi Liu, [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.9-rc8] [cannot apply to btrfs/next next-20161207] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-07 Thread Liu Bo
On Wed, Dec 07, 2016 at 05:15:42PM -0500, Chris Mason wrote: > > > On 12/07/2016 04:45 PM, Liu Bo wrote: > > This has implemented DAX support for btrfs with nocow and single-device. > > > > DAX is developed for block devices that are memory-like in order to avoid > > double buffer in both page

Re: [PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-07 Thread Chris Mason
On 12/07/2016 04:45 PM, Liu Bo wrote: This has implemented DAX support for btrfs with nocow and single-device. DAX is developed for block devices that are memory-like in order to avoid double buffer in both page cache and the storage, so DAX can performs reads and writes directly to the

[PATCH 4/6] Btrfs: add DAX support for nocow btrfs

2016-12-07 Thread Liu Bo
This has implemented DAX support for btrfs with nocow and single-device. DAX is developed for block devices that are memory-like in order to avoid double buffer in both page cache and the storage, so DAX can performs reads and writes directly to the storage device, and for those who prefer to