git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
fs
/
hfs
/
extent.c
diff --git
a/fs/hfs/extent.c
b/fs/hfs/extent.c
index
a9f4e23
..
b7ce3f0
100644
(file)
--- a/
fs/hfs/extent.c
+++ b/
fs/hfs/extent.c
@@
-279,13
+279,13
@@
int hfs_free_fork(struct super_block *sb, struct hfs_cat_file *file, int type)
int res, i;
if (type == HFS_FK_DATA) {
int res, i;
if (type == HFS_FK_DATA) {
- total_blocks =
file->PyLen
;
+ total_blocks =
be32_to_cpu(file->PyLen)
;
extent = file->ExtRec;
} else {
extent = file->ExtRec;
} else {
- total_blocks =
file->RPyLen
;
+ total_blocks =
be32_to_cpu(file->RPyLen)
;
extent = file->RExtRec;
}
extent = file->RExtRec;
}
- total_blocks
= be32_to_cpu(total_blocks) /
HFS_SB(sb)->alloc_blksz;
+ total_blocks
/=
HFS_SB(sb)->alloc_blksz;
if (!total_blocks)
return 0;
if (!total_blocks)
return 0;