]> git.neil.brown.name Git - history.git/commit
[PATCH] refcounts for gendisks
authorAlexander Viro <viro@math.psu.edu>
Tue, 15 Oct 2002 11:25:32 +0000 (04:25 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 15 Oct 2002 11:25:32 +0000 (04:25 -0700)
commit68c16870dcfaba7c9e2dd5055a2caf4edcf42e87
tree7c15437501c7bcf68bf634bfe88108cb5c62e472
parentb288f6add39cf474fc2ec8087d32d3e1d4c1c6d0
[PATCH] refcounts for gendisks

Finally.  We use disk->dev.refcount as a gendisk refcount.  New helper -
get_disk(): atomic_inc on refcount.  get_gendisk() does it on return,
callers of get_gendisk() do put_disk() when they are done.
drivers/block/genhd.c
drivers/block/ioctl.c
fs/block_dev.c
fs/partitions/check.c
include/linux/genhd.h