pmem.c (a02633e9b13dcb9b1a656b08f81bc8ba2d4d2294) | pmem.c (5ee0524ba137fe928a88b440d014e3c8451fb32c) |
---|---|
1/* 2 * Persistent Memory Driver 3 * 4 * Copyright (c) 2014-2015, Intel Corporation. 5 * Copyright (c) 2015, Christoph Hellwig <hch@lst.de>. 6 * Copyright (c) 2015, Boaz Harrosh <boaz@plexistor.com>. 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 330 unchanged lines hidden (view full) --- 339 !test_bit(ND_REGION_PERSIST_CACHE, &nd_region->flags); 340 341 if (!devm_request_mem_region(dev, res->start, resource_size(res), 342 dev_name(&ndns->dev))) { 343 dev_warn(dev, "could not reserve region %pR\n", res); 344 return -EBUSY; 345 } 346 | 1/* 2 * Persistent Memory Driver 3 * 4 * Copyright (c) 2014-2015, Intel Corporation. 5 * Copyright (c) 2015, Christoph Hellwig <hch@lst.de>. 6 * Copyright (c) 2015, Boaz Harrosh <boaz@plexistor.com>. 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 330 unchanged lines hidden (view full) --- 339 !test_bit(ND_REGION_PERSIST_CACHE, &nd_region->flags); 340 341 if (!devm_request_mem_region(dev, res->start, resource_size(res), 342 dev_name(&ndns->dev))) { 343 dev_warn(dev, "could not reserve region %pR\n", res); 344 return -EBUSY; 345 } 346 |
347 q = blk_alloc_queue_node(GFP_KERNEL, dev_to_node(dev)); | 347 q = blk_alloc_queue_node(GFP_KERNEL, dev_to_node(dev), NULL); |
348 if (!q) 349 return -ENOMEM; 350 351 if (devm_add_action_or_reset(dev, pmem_release_queue, q)) 352 return -ENOMEM; 353 354 pmem->pfn_flags = PFN_DEV; 355 pmem->pgmap.ref = &q->q_usage_counter; --- 209 unchanged lines hidden --- | 348 if (!q) 349 return -ENOMEM; 350 351 if (devm_add_action_or_reset(dev, pmem_release_queue, q)) 352 return -ENOMEM; 353 354 pmem->pfn_flags = PFN_DEV; 355 pmem->pgmap.ref = &q->q_usage_counter; --- 209 unchanged lines hidden --- |