simdisk.c (d32e2bf83791727a84ad5d3e3d713e82f9adbe30) | simdisk.c (ae220766d87cd6799dbf918fea10613ae14c0654) |
---|---|
1/* 2 * arch/xtensa/platforms/iss/simdisk.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 2001-2013 Tensilica Inc. --- 116 unchanged lines hidden (view full) --- 125 struct simdisk *dev = disk->private_data; 126 127 spin_lock(&dev->lock); 128 ++dev->users; 129 spin_unlock(&dev->lock); 130 return 0; 131} 132 | 1/* 2 * arch/xtensa/platforms/iss/simdisk.c 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 2001-2013 Tensilica Inc. --- 116 unchanged lines hidden (view full) --- 125 struct simdisk *dev = disk->private_data; 126 127 spin_lock(&dev->lock); 128 ++dev->users; 129 spin_unlock(&dev->lock); 130 return 0; 131} 132 |
133static void simdisk_release(struct gendisk *disk, fmode_t mode) | 133static void simdisk_release(struct gendisk *disk) |
134{ 135 struct simdisk *dev = disk->private_data; 136 spin_lock(&dev->lock); 137 --dev->users; 138 spin_unlock(&dev->lock); 139} 140 141static const struct block_device_operations simdisk_ops = { --- 225 unchanged lines hidden --- | 134{ 135 struct simdisk *dev = disk->private_data; 136 spin_lock(&dev->lock); 137 --dev->users; 138 spin_unlock(&dev->lock); 139} 140 141static const struct block_device_operations simdisk_ops = { --- 225 unchanged lines hidden --- |