Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107028
b: refs/heads/master
c: d406f66
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Jul 30, 2008
1 parent b47ad4d commit 4bb7520
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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: 32be1d22327743134974c7b2ec1e2a143b6b6f86
refs/heads/master: d406f66ddb0d7491ddd53e4600c425d76a8a245f
6 changes: 3 additions & 3 deletions trunk/fs/omfs/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ static int set_run(struct super_block *sb, int map,
}
if (set) {
set_bit(bit, sbi->s_imap[map]);
set_bit(bit, (long *) bh->b_data);
set_bit(bit, (unsigned long *)bh->b_data);
} else {
clear_bit(bit, sbi->s_imap[map]);
clear_bit(bit, (long *) bh->b_data);
clear_bit(bit, (unsigned long *)bh->b_data);
}
}
mark_buffer_dirty(bh);
Expand Down Expand Up @@ -109,7 +109,7 @@ int omfs_allocate_block(struct super_block *sb, u64 block)
if (!bh)
goto out;

set_bit(bit, (long *) bh->b_data);
set_bit(bit, (unsigned long *)bh->b_data);
mark_buffer_dirty(bh);
brelse(bh);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/omfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int omfs_make_empty(struct inode *inode, struct super_block *sb)

oi = (struct omfs_inode *) bh->b_data;
oi->i_head.h_self = cpu_to_be64(inode->i_ino);
oi->i_sibling = ~0ULL;
oi->i_sibling = ~cpu_to_be64(0ULL);

mark_buffer_dirty(bh);
brelse(bh);
Expand Down
6 changes: 3 additions & 3 deletions trunk/fs/omfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ void omfs_make_empty_table(struct buffer_head *bh, int offset)
{
struct omfs_extent *oe = (struct omfs_extent *) &bh->b_data[offset];

oe->e_next = ~0ULL;
oe->e_next = ~cpu_to_be64(0ULL);
oe->e_extent_count = cpu_to_be32(1),
oe->e_fill = cpu_to_be32(0x22),
oe->e_entry.e_cluster = ~0ULL;
oe->e_entry.e_blocks = ~0ULL;
oe->e_entry.e_cluster = ~cpu_to_be64(0ULL);
oe->e_entry.e_blocks = ~cpu_to_be64(0ULL);
}

int omfs_shrink_inode(struct inode *inode)
Expand Down

0 comments on commit 4bb7520

Please sign in to comment.