multipath.c (d32e2bf83791727a84ad5d3e3d713e82f9adbe30) | multipath.c (ae220766d87cd6799dbf918fea10613ae14c0654) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2017-2018 Christoph Hellwig. 4 */ 5 6#include <linux/backing-dev.h> 7#include <linux/moduleparam.h> 8#include <linux/vmalloc.h> --- 395 unchanged lines hidden (view full) --- 404 405static int nvme_ns_head_open(struct gendisk *disk, fmode_t mode) 406{ 407 if (!nvme_tryget_ns_head(disk->private_data)) 408 return -ENXIO; 409 return 0; 410} 411 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2017-2018 Christoph Hellwig. 4 */ 5 6#include <linux/backing-dev.h> 7#include <linux/moduleparam.h> 8#include <linux/vmalloc.h> --- 395 unchanged lines hidden (view full) --- 404 405static int nvme_ns_head_open(struct gendisk *disk, fmode_t mode) 406{ 407 if (!nvme_tryget_ns_head(disk->private_data)) 408 return -ENXIO; 409 return 0; 410} 411 |
412static void nvme_ns_head_release(struct gendisk *disk, fmode_t mode) | 412static void nvme_ns_head_release(struct gendisk *disk) |
413{ 414 nvme_put_ns_head(disk->private_data); 415} 416 417#ifdef CONFIG_BLK_DEV_ZONED 418static int nvme_ns_head_report_zones(struct gendisk *disk, sector_t sector, 419 unsigned int nr_zones, report_zones_cb cb, void *data) 420{ --- 537 unchanged lines hidden --- | 413{ 414 nvme_put_ns_head(disk->private_data); 415} 416 417#ifdef CONFIG_BLK_DEV_ZONED 418static int nvme_ns_head_report_zones(struct gendisk *disk, sector_t sector, 419 unsigned int nr_zones, report_zones_cb cb, void *data) 420{ --- 537 unchanged lines hidden --- |