locking the super_block in ext2fs

From: root (gabrielo@cs.huji.ac.il)
Date: Sun Apr 30 2000 - 10:17:33 EST


hi

i'm trying to write a block allocator which gonna co-exists with the
ext2fs module.
my question is how can i lock the super_block to avoid conflicits on
SMP machines ?

i saw that the lock_kernel function recieve a pointer to the super_block
struct, so i guess it must point to the same struct which the ext2fs
module is holding.

how can i get a referance to it ? it looks like the read_super and the
ext2fs_open both read the data from the disk into a newly allocated
struct.

/gabriel

please CC me for any answer as i'm not register to the mailing list

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:18 EST