[PATCH 12/18] btrfs: allow MAP_SYNC mmap

2019-04-16 Thread Goldwyn Rodrigues
From: Adam Borowski Used by userspace to detect DAX. [rgold...@suse.com: Added CONFIG_FS_DAX around mmap_supported_flags] Signed-off-by: Adam Borowski Signed-off-by: Goldwyn Rodrigues --- fs/btrfs/file.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c

[PATCH 12/18] btrfs: allow MAP_SYNC mmap

2019-04-29 Thread Goldwyn Rodrigues
From: Adam Borowski Used by userspace to detect DAX. [rgold...@suse.com: Added CONFIG_FS_DAX around mmap_supported_flags] Signed-off-by: Adam Borowski Signed-off-by: Goldwyn Rodrigues --- fs/btrfs/file.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c

Re: [PATCH 12/18] btrfs: allow MAP_SYNC mmap

2019-05-23 Thread Jan Kara
On Mon 29-04-19 12:26:43, Goldwyn Rodrigues wrote: > From: Adam Borowski > > Used by userspace to detect DAX. > [rgold...@suse.com: Added CONFIG_FS_DAX around mmap_supported_flags] Why the CONFIG_FS_DAX bit? Your mmap(2) implementation understands implications of MAP_SYNC flag and that's all tha

Re: [PATCH 12/18] btrfs: allow MAP_SYNC mmap

2019-05-23 Thread Adam Borowski
On Thu, May 23, 2019 at 03:44:49PM +0200, Jan Kara wrote: > On Mon 29-04-19 12:26:43, Goldwyn Rodrigues wrote: > > From: Adam Borowski > > > > Used by userspace to detect DAX. > > [rgold...@suse.com: Added CONFIG_FS_DAX around mmap_supported_flags] > > Why the CONFIG_FS_DAX bit? Your mmap(2) imp