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
- Lines: 27
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/fs/jfs/jfs_extent.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
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)