patch-2.4.21 linux-2.4.21/fs/jfs/jfs_extent.c

Next file: linux-2.4.21/fs/jfs/jfs_imap.c
Previous file: linux-2.4.21/fs/jfs/jfs_dtree.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/fs/jfs/jfs_extent.c linux-2.4.21/fs/jfs/jfs_extent.c
@@ -91,7 +91,7 @@
 {
 	struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb);
 	s64 nxlen, nxaddr, xoff, hint, xaddr = 0;
-	int rc, nbperpage;
+	int rc;
 	int xflag;
 
 	/* This blocks if we are low on resources */
@@ -104,9 +104,6 @@
 	if (xlen > MAXXLEN)
 		xlen = MAXXLEN;
 
-	/* get the number of blocks per page */
-	nbperpage = sbi->nbperpage;
-
 	/* get the page's starting extent offset */
 	xoff = pno << sbi->l2nbperpage;
 
@@ -178,6 +175,7 @@
 	xp->flag = xflag;
 
 	mark_inode_dirty(ip);
+	set_cflag(COMMIT_Syncdata, ip);
 
 	up(&JFS_IP(ip)->commit_sem);
 	/*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)