patch-2.2.0-pre1 linux/fs/hfs/extent.c
Next file: linux/fs/hfs/hfs.h
Previous file: linux/fs/hfs/bdelete.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Wed Dec 23 14:10:36 1998
- Orig file:
v2.1.132/linux/fs/hfs/extent.c
- Orig date:
Thu Nov 19 09:56:28 1998
diff -u --recursive --new-file v2.1.132/linux/fs/hfs/extent.c linux/fs/hfs/extent.c
@@ -354,7 +354,7 @@
* hfs_u16 ablock: the number of allocation blocks in 'fork'.
* hfs_u16 start: first allocation block to add to 'fork'.
* hfs_u16 len: the number of allocation blocks to add to 'fork'.
- * hfs_u16 ablksz: number of sectors in an allocation block.
+ * hfs_u32 ablksz: number of sectors in an allocation block.
* Output Variable(s):
* NONE
* Returns:
@@ -471,7 +471,7 @@
struct hfs_mdb *mdb = fork->entry->mdb;
struct hfs_extent *ext;
int i, error, next, count;
- hfs_u16 ablksz = mdb->alloc_blksz;
+ hfs_u32 ablksz = mdb->alloc_blksz;
next = (fork->psize / ablksz) - 1;
ext = find_ext(fork, next);
@@ -530,7 +530,7 @@
struct hfs_extent *ext;
int i, start, err;
hfs_u16 need, len=0;
- hfs_u16 ablksz = mdb->alloc_blksz;
+ hfs_u32 ablksz = mdb->alloc_blksz;
hfs_u32 blocks, clumpablks;
blocks = fork->psize;
@@ -681,8 +681,7 @@
void hfs_extent_adj(struct hfs_fork *fork)
{
if (fork) {
- hfs_u32 blks, ablocks;
- hfs_u16 ablksz;
+ hfs_u32 blks, ablocks, ablksz;
if (fork->lsize > HFS_FORK_MAX) {
fork->lsize = HFS_FORK_MAX;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov