aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/namespace_devs.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-03-04 06:12:08 -0500
committerIngo Molnar <mingo@kernel.org>2016-03-04 06:12:08 -0500
commitbc94b99636dc7bcccce439a9fb9c00065e2e2627 (patch)
treebddbd29a5fd7b2d270d039efc1d6858791a2c98f /drivers/nvdimm/namespace_devs.c
parent4650bac1fc45d64aef62ab99aa4db93d41dedbd9 (diff)
parentfc77dbd34c5c99bce46d40a2491937c3bcbd10af (diff)
Merge tag 'v4.5-rc6' into core/resources, to resolve conflict
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/nvdimm/namespace_devs.c')
-rw-r--r--drivers/nvdimm/namespace_devs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c
index 8ebfcaae3f5a..9edf7eb7d17c 100644
--- a/drivers/nvdimm/namespace_devs.c
+++ b/drivers/nvdimm/namespace_devs.c
@@ -1277,10 +1277,12 @@ static ssize_t mode_show(struct device *dev,
1277 1277
1278 device_lock(dev); 1278 device_lock(dev);
1279 claim = ndns->claim; 1279 claim = ndns->claim;
1280 if (pmem_should_map_pages(dev) || (claim && is_nd_pfn(claim))) 1280 if (claim && is_nd_btt(claim))
1281 mode = "memory";
1282 else if (claim && is_nd_btt(claim))
1283 mode = "safe"; 1281 mode = "safe";
1282 else if (claim && is_nd_pfn(claim))
1283 mode = "memory";
1284 else if (!claim && pmem_should_map_pages(dev))
1285 mode = "memory";
1284 else 1286 else
1285 mode = "raw"; 1287 mode = "raw";
1286 rc = sprintf(buf, "%s\n", mode); 1288 rc = sprintf(buf, "%s\n", mode);