heartbeat.c (b2aaf8f74cdc84a9182f6cabf198b7763bcb9d40) | heartbeat.c (9a1c3542768b5a58e45a9216921cd10a3bae1205) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * Copyright (C) 2004, 2005 Oracle. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public 8 * License as published by the Free Software Foundation; either --- 962 unchanged lines hidden (view full) --- 971 page = reg->hr_slot_data[i]; 972 if (page) 973 __free_page(page); 974 } 975 kfree(reg->hr_slot_data); 976 } 977 978 if (reg->hr_bdev) | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * Copyright (C) 2004, 2005 Oracle. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public 8 * License as published by the Free Software Foundation; either --- 962 unchanged lines hidden (view full) --- 971 page = reg->hr_slot_data[i]; 972 if (page) 973 __free_page(page); 974 } 975 kfree(reg->hr_slot_data); 976 } 977 978 if (reg->hr_bdev) |
979 blkdev_put(reg->hr_bdev); | 979 blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); |
980 981 if (reg->hr_slots) 982 kfree(reg->hr_slots); 983 984 spin_lock(&o2hb_live_lock); 985 list_del(®->hr_all_item); 986 spin_unlock(&o2hb_live_lock); 987 --- 365 unchanged lines hidden (view full) --- 1353 1354out: 1355 if (filp) 1356 fput(filp); 1357 if (inode) 1358 iput(inode); 1359 if (ret < 0) { 1360 if (reg->hr_bdev) { | 980 981 if (reg->hr_slots) 982 kfree(reg->hr_slots); 983 984 spin_lock(&o2hb_live_lock); 985 list_del(®->hr_all_item); 986 spin_unlock(&o2hb_live_lock); 987 --- 365 unchanged lines hidden (view full) --- 1353 1354out: 1355 if (filp) 1356 fput(filp); 1357 if (inode) 1358 iput(inode); 1359 if (ret < 0) { 1360 if (reg->hr_bdev) { |
1361 blkdev_put(reg->hr_bdev); | 1361 blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); |
1362 reg->hr_bdev = NULL; 1363 } 1364 } 1365 return ret; 1366} 1367 1368static ssize_t o2hb_region_pid_read(struct o2hb_region *reg, 1369 char *page) --- 499 unchanged lines hidden --- | 1362 reg->hr_bdev = NULL; 1363 } 1364 } 1365 return ret; 1366} 1367 1368static ssize_t o2hb_region_pid_read(struct o2hb_region *reg, 1369 char *page) --- 499 unchanged lines hidden --- |