dm.c (448cc2fb3a7b327823a9afd374808c37b8e6194f) | dm.c (1ebe2e5f9d68e94c524aba876f27b945669a7879) |
---|---|
1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm-core.h" --- 1764 unchanged lines hidden (view full) --- 1773 1774 md->swap_bios = get_swap_bios(); 1775 sema_init(&md->swap_bios_semaphore, md->swap_bios); 1776 mutex_init(&md->swap_bios_lock); 1777 1778 md->disk->major = _major; 1779 md->disk->first_minor = minor; 1780 md->disk->minors = 1; | 1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm-core.h" --- 1764 unchanged lines hidden (view full) --- 1773 1774 md->swap_bios = get_swap_bios(); 1775 sema_init(&md->swap_bios_semaphore, md->swap_bios); 1776 mutex_init(&md->swap_bios_lock); 1777 1778 md->disk->major = _major; 1779 md->disk->first_minor = minor; 1780 md->disk->minors = 1; |
1781 md->disk->flags |= GENHD_FL_NO_PART; |
|
1781 md->disk->fops = &dm_blk_dops; 1782 md->disk->queue = md->queue; 1783 md->disk->private_data = md; 1784 sprintf(md->disk->disk_name, "dm-%d", minor); 1785 1786 if (IS_ENABLED(CONFIG_DAX_DRIVER)) { 1787 md->dax_dev = alloc_dax(md, md->disk->disk_name, 1788 &dm_dax_ops, 0); --- 1281 unchanged lines hidden --- | 1782 md->disk->fops = &dm_blk_dops; 1783 md->disk->queue = md->queue; 1784 md->disk->private_data = md; 1785 sprintf(md->disk->disk_name, "dm-%d", minor); 1786 1787 if (IS_ENABLED(CONFIG_DAX_DRIVER)) { 1788 md->dax_dev = alloc_dax(md, md->disk->disk_name, 1789 &dm_dax_ops, 0); --- 1281 unchanged lines hidden --- |