summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-10-15 04:25:18 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-15 04:25:18 -0700
commitafae25b7c8d594f6349e81dce2b16ce44aa9f0ed (patch)
treed76844b0077d72718f919c4394b24aac6ffd8c5a /include/linux/kernel.h
parentc6973580141ce5a4904436b29c0dc5f3d9982951 (diff)
[PATCH] preparation to use of driverfs refcounts, part 1 - partitions
* update_partition() split into add_partition() and delete_partition(). * all updating of ->part[] is switched to these two (including initial filling/final cleaning). * per-partition devices are allocated on-demand and never reused. We allocate struct device in add_partition() and put reference to it into hd_struct. ->release() for that struct device frees it. delete_partition() removes reference from hd_struct and does put_device() on it. Basically, we get rid of problems with reused struct device by never reusing them... At that point devices for partitions are nice and sane.
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions