Dan Williams 230f5a8969 dax: fix vma_is_fsdax() helper
Gerd reports that ->i_mode may contain other bits besides S_IFCHR. Use
S_ISCHR() instead. Otherwise, get_user_pages_longterm() may fail on
device-dax instances when those are meant to be explicitly allowed.

Fixes: 2bb6d2837083 ("mm: introduce get_user_pages_longterm")
Cc: <stable@vger.kernel.org>
Reported-by: Gerd Rausch <gerd.rausch@oracle.com>
Acked-by: Jane Chu <jane.chu@oracle.com>
Reported-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2018-02-26 12:32:42 -08:00
..
2018-02-06 10:32:13 +01:00
2018-02-07 11:22:44 -08:00
2018-02-10 13:16:35 -08:00
2018-02-26 12:32:42 -08:00
2018-02-02 10:01:04 -08:00
2018-02-03 13:07:56 -08:00
2018-02-01 16:35:31 -08:00
2018-02-07 13:10:43 -08:00
2017-12-22 12:30:10 -08:00