Re: [PATCH] ndctl: daxctl: fix mmap size

2017-11-12 Thread Dan Williams
On Sun, Nov 12, 2017 at 10:10 AM, Dan Williams wrote: > On Fri, Nov 10, 2017 at 11:45 AM, Dave Jiang wrote: >> The size for mmap needs to be aligned to the region alignment. Add helper >> funciton to determine the actual size to be mmap'd. >> >> Signed-off-by: Dave Jiang >> --- >> daxctl/io.c |

Re: [PATCH] ndctl: daxctl: fix mmap size

2017-11-12 Thread Dan Williams
On Fri, Nov 10, 2017 at 11:45 AM, Dave Jiang wrote: > The size for mmap needs to be aligned to the region alignment. Add helper > funciton to determine the actual size to be mmap'd. > > Signed-off-by: Dave Jiang > --- > daxctl/io.c | 23 ++- > 1 file changed, 22 insertions(

[PATCH] ndctl: daxctl: fix mmap size

2017-11-10 Thread Dave Jiang
The size for mmap needs to be aligned to the region alignment. Add helper funciton to determine the actual size to be mmap'd. Signed-off-by: Dave Jiang --- daxctl/io.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/daxctl/io.c b/daxctl/io.c index 2f