diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-08-08 00:41:00 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-08-28 02:40:58 +0300 |
commit | cb389b9c0e00c30c9daf20287f7d91e2466edbb1 (patch) | |
tree | a4a1509038a419fbb90918dfee9ea099160680de /drivers/block/brd.c | |
parent | 4a9bf88a5caa8495b5eb2b738d5fb40924bbc538 (diff) | |
download | linux-cb389b9c0e00c30c9daf20287f7d91e2466edbb1.tar.xz |
dax: drop size parameter to ->direct_access()
None of the implementations currently use it. The common
bdev_direct_access() entry point handles all the size checks before
calling ->direct_access().
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/block/brd.c')
-rw-r--r-- | drivers/block/brd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c index c96402fd1560..03c45c41bdfa 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -371,7 +371,7 @@ static int brd_rw_page(struct block_device *bdev, sector_t sector, #ifdef CONFIG_BLK_DEV_RAM_DAX static long brd_direct_access(struct block_device *bdev, sector_t sector, - void __pmem **kaddr, unsigned long *pfn, long size) + void __pmem **kaddr, unsigned long *pfn) { struct brd_device *brd = bdev->bd_disk->private_data; struct page *page; @@ -384,10 +384,6 @@ static long brd_direct_access(struct block_device *bdev, sector_t sector, *kaddr = (void __pmem *)page_address(page); *pfn = page_to_pfn(page); - /* - * TODO: If size > PAGE_SIZE, we could look to see if the next page in - * the file happens to be mapped to the next page of physical RAM. - */ return PAGE_SIZE; } #else |