dm.c (512875bd9661368da6f993205a61213b79ba1df0) | dm.c (69267a30bed1fabec658058c63845528a8b813d4) |
---|---|
1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 1500 unchanged lines hidden (view full) --- 1509 bdput(md->suspended_bdev); 1510 md->suspended_bdev = NULL; 1511 } 1512 1513 clear_bit(DMF_SUSPENDED, &md->flags); 1514 1515 dm_table_unplug_all(map); 1516 | 1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 1500 unchanged lines hidden (view full) --- 1509 bdput(md->suspended_bdev); 1510 md->suspended_bdev = NULL; 1511 } 1512 1513 clear_bit(DMF_SUSPENDED, &md->flags); 1514 1515 dm_table_unplug_all(map); 1516 |
1517 kobject_uevent(&md->disk->kobj, KOBJ_CHANGE); | 1517 dm_kobject_uevent(md); |
1518 1519 r = 0; 1520 1521out: 1522 dm_table_put(map); 1523 up(&md->suspend_lock); 1524 1525 return r; 1526} 1527 1528/*----------------------------------------------------------------- 1529 * Event notification. 1530 *---------------------------------------------------------------*/ | 1518 1519 r = 0; 1520 1521out: 1522 dm_table_put(map); 1523 up(&md->suspend_lock); 1524 1525 return r; 1526} 1527 1528/*----------------------------------------------------------------- 1529 * Event notification. 1530 *---------------------------------------------------------------*/ |
1531void dm_kobject_uevent(struct mapped_device *md) 1532{ 1533 kobject_uevent(&md->disk->kobj, KOBJ_CHANGE); 1534} 1535 |
|
1531uint32_t dm_next_uevent_seq(struct mapped_device *md) 1532{ 1533 return atomic_add_return(1, &md->uevent_seq); 1534} 1535 1536uint32_t dm_get_event_nr(struct mapped_device *md) 1537{ 1538 return atomic_read(&md->event_nr); --- 63 unchanged lines hidden --- | 1536uint32_t dm_next_uevent_seq(struct mapped_device *md) 1537{ 1538 return atomic_add_return(1, &md->uevent_seq); 1539} 1540 1541uint32_t dm_get_event_nr(struct mapped_device *md) 1542{ 1543 return atomic_read(&md->event_nr); --- 63 unchanged lines hidden --- |