]> git.baikalelectronics.ru Git - kernel.git/commit
device-dax: allow MAP_SYNC to succeed
authorDave Jiang <dave.jiang@intel.com>
Thu, 19 Apr 2018 20:39:43 +0000 (13:39 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 19 Apr 2018 22:11:50 +0000 (15:11 -0700)
commit8df229dd3a911fcb003f52334903a662f61eee60
treeb8e9e4cf41c1aa3bc463512d83f9182ec93419ad
parentd754a88cca6c62836598a82ea2e3d509bdc1d9c3
device-dax: allow MAP_SYNC to succeed

MAP_SYNC is a nop for device-dax. Allow MAP_SYNC to succeed on device-dax
to eliminate special casing between device-dax and fs-dax as to when the
flag can be specified. Device-dax users already implicitly assume that they do
not need to call fsync(), and this enables them to explicitly check for this
capability.

Cc: <stable@vger.kernel.org>
Fixes: 351b0d28fac6 ("mm: Define MAP_SYNC and VM_SYNC flags")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/device.c