patch-2.1.79 linux/fs/affs/super.c

Next file: linux/fs/affs/symlink.c
Previous file: linux/fs/affs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/fs/affs/super.c linux/fs/affs/super.c
@@ -494,7 +494,7 @@
 			if (bb) {
 				if (affs_checksum_block(s->s_blocksize,bb->b_data,NULL,NULL) &&
 				    !(s->s_flags & MS_RDONLY)) {
-					printk(KERN_WARNING "AFFS: Bitmap (%d,key=%lu) invalid - "
+					printk(KERN_WARNING "AFFS: Bitmap (%d,key=%u) invalid - "
 					       "mounting %s read only.\n",mapidx,be32_to_cpu(bm[i]),
 						kdevname(dev));
 					s->s_flags |= MS_RDONLY;
@@ -572,6 +572,8 @@
 		MOD_DEC_USE_COUNT;
 		return NULL;
 	}
+	s->s_root->d_op = (s->u.affs_sb.s_flags & SF_INTL) ? &affs_dentry_operations_intl
+							   : &affs_dentry_operations;
 
 	/* Record date of last change if the bitmap was truncated and
 	 * create data zones if the volume is writable.

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