Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95285
b: refs/heads/master
c: 487798d
h: refs/heads/master
i:
  95283: 5326ff5
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Apr 30, 2008
1 parent eda3337 commit 447707f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e5a5097303eedb4ffae2719843eb064221b1db4
refs/heads/master: 487798df6d25e76ed6558b3e17c44cf0458cc6f3
10 changes: 7 additions & 3 deletions trunk/fs/hfsplus/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ struct hfs_bnode *hfs_bmap_alloc(struct hfs_btree *tree)
struct hfs_bnode *node, *next_node;
struct page **pagep;
u32 nidx, idx;
u16 off, len;
unsigned off;
u16 off16;
u16 len;
u8 *data, byte, m;
int i;

Expand All @@ -211,7 +213,8 @@ struct hfs_bnode *hfs_bmap_alloc(struct hfs_btree *tree)
node = hfs_bnode_find(tree, nidx);
if (IS_ERR(node))
return node;
len = hfs_brec_lenoff(node, 2, &off);
len = hfs_brec_lenoff(node, 2, &off16);
off = off16;

off += node->page_offset;
pagep = node->page + (off >> PAGE_CACHE_SHIFT);
Expand Down Expand Up @@ -256,7 +259,8 @@ struct hfs_bnode *hfs_bmap_alloc(struct hfs_btree *tree)
return next_node;
node = next_node;

len = hfs_brec_lenoff(node, 0, &off);
len = hfs_brec_lenoff(node, 0, &off16);
off = off16;
off += node->page_offset;
pagep = node->page + (off >> PAGE_CACHE_SHIFT);
data = kmap(*pagep);
Expand Down

0 comments on commit 447707f

Please sign in to comment.