fs per mount data not static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lk 2.6 reinitialises static int's of udf.ko only after `modprobe -r`
etc.

Newbie that I am, I had wrongly thought each mount of the fs would get
its own data.

Pat LaVarre

--- linux-2.6.0-test11/fs/udf/balloc.c	2003-11-26 13:43:30.000000000 -0700
+++ linux/fs/udf/balloc.c	2003-12-11 13:34:04.358173360 -0700
@@ -154,8 +154,10 @@ static void udf_bitmap_free_blocks(struc
 	unsigned long i;
 	int bitmap_nr;
 	unsigned long overflow;
+static int ubmfb = 0;
 
 	lock_super(sb);
+udf_debug("%d\n", ubmfb++);
 	if (bloc.logicalBlockNum < 0 ||
 		(bloc.logicalBlockNum + count) > UDF_SB_PARTLEN(sb, bloc.partitionReferenceNum))
 	{


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux