mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* True number of device openers in 2.5
@ 2003-06-12 15:37 Andrey Borzenkov
  2003-06-12 16:37 ` viro
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Borzenkov @ 2003-06-12 15:37 UTC (permalink / raw)
  To: linux-kernel

For single-partition devices it is just bd_openers but I am more intersted in 
multi-partition case. Here I need to know about sum of opens for all 
partitions including the whole device. It appears that for a container 
bd_openers is incremented for every open of itself and for the _first_ open 
of partition and bd_part_count is incremented for every (including first) 
open of partition. So bdev->bd_contains->bd_openers + 
bdev->bd_contains->bd_part_count really gives an access (number of opened 
partitions but this is unknown otherwise).

Thank you

-andrey

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-17 18:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-12 15:37 True number of device openers in 2.5 Andrey Borzenkov
2003-06-12 16:37 ` viro
2003-06-17 18:18   ` Andrey Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®