patch-2.1.122 linux/fs/sysv/fsync.c
Next file: linux/fs/sysv/inode.c
Previous file: linux/fs/sysv/balloc.c
Back to the patch index
Back to the overall index
- Lines: 81
- Date:
Sun Sep 13 12:12:34 1998
- Orig file:
v2.1.121/linux/fs/sysv/fsync.c
- Orig date:
Sat Sep 13 11:07:29 1997
diff -u --recursive --new-file v2.1.121/linux/fs/sysv/fsync.c linux/fs/sysv/fsync.c
@@ -26,10 +26,10 @@
/* Sync one block. The block number is
* from_coh_ulong(*blockp) if convert=1, *blockp if convert=0.
*/
-static int sync_block (struct inode * inode, unsigned long * blockp, int convert, int wait)
+static int sync_block (struct inode * inode, u32 *blockp, int convert, int wait)
{
struct buffer_head * bh;
- unsigned long tmp, block;
+ u32 tmp, block;
struct super_block * sb;
block = tmp = *blockp;
@@ -59,11 +59,11 @@
}
/* Sync one block full of indirect pointers and read it because we'll need it. */
-static int sync_iblock (struct inode * inode, unsigned long * iblockp, int convert,
+static int sync_iblock (struct inode * inode, u32 * iblockp, int convert,
struct buffer_head * *bh, int wait)
{
int rc;
- unsigned long tmp, block;
+ u32 tmp, block;
*bh = NULL;
block = tmp = *iblockp;
@@ -101,7 +101,7 @@
return err;
}
-static int sync_indirect(struct inode *inode, unsigned long *iblockp, int convert, int wait)
+static int sync_indirect(struct inode *inode, u32 *iblockp, int convert, int wait)
{
int i;
struct buffer_head * ind_bh;
@@ -115,7 +115,7 @@
sb = inode->i_sb;
for (i = 0; i < sb->sv_ind_per_block; i++) {
rc = sync_block (inode,
- ((unsigned long *) ind_bh->b_data) + i, sb->sv_convert,
+ ((u32 *) ind_bh->b_data) + i, sb->sv_convert,
wait);
if (rc > 0)
break;
@@ -126,7 +126,7 @@
return err;
}
-static int sync_dindirect(struct inode *inode, unsigned long *diblockp, int convert,
+static int sync_dindirect(struct inode *inode, u32 *diblockp, int convert,
int wait)
{
int i;
@@ -141,7 +141,7 @@
sb = inode->i_sb;
for (i = 0; i < sb->sv_ind_per_block; i++) {
rc = sync_indirect (inode,
- ((unsigned long *) dind_bh->b_data) + i, sb->sv_convert,
+ ((u32 *) dind_bh->b_data) + i, sb->sv_convert,
wait);
if (rc > 0)
break;
@@ -152,7 +152,7 @@
return err;
}
-static int sync_tindirect(struct inode *inode, unsigned long *tiblockp, int convert,
+static int sync_tindirect(struct inode *inode, u32 *tiblockp, int convert,
int wait)
{
int i;
@@ -167,7 +167,7 @@
sb = inode->i_sb;
for (i = 0; i < sb->sv_ind_per_block; i++) {
rc = sync_dindirect (inode,
- ((unsigned long *) tind_bh->b_data) + i, sb->sv_convert,
+ ((u32 *) tind_bh->b_data) + i, sb->sv_convert,
wait);
if (rc > 0)
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov