patch-2.1.32 linux/fs/autofs/inode.c

Next file: linux/fs/autofs/root.c
Previous file: linux/fs/autofs/dirhash.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.31/linux/fs/autofs/inode.c linux/fs/autofs/inode.c
@@ -10,7 +10,6 @@
  *
  * ------------------------------------------------------------------------- */
 
-#include <linux/modversions.h>
 #include <linux/kernel.h>
 #include <linux/malloc.h>
 #include <linux/file.h>
@@ -143,6 +142,7 @@
         sbi = (struct autofs_sb_info *) kmalloc(sizeof(struct autofs_sb_info), GFP_KERNEL);
 	if ( !sbi ) {
 		s->s_dev = 0;
+		MOD_DEC_USE_COUNT;
 		return NULL;
 	}
 	DPRINTK(("autofs: starting up, sbi = %p\n",sbi));
@@ -208,7 +208,7 @@
         struct statfs tmp;
 
         tmp.f_type = AUTOFS_SUPER_MAGIC;
-        tmp.f_bsize = PAGE_SIZE/sizeof(long);
+        tmp.f_bsize = 1024;
         tmp.f_blocks = 0;
         tmp.f_bfree = 0;
         tmp.f_bavail = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov