Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54552
b: refs/heads/master
c: e1b5c1d
h: refs/heads/master
v: v3
  • Loading branch information
Vignesh Babu BM authored and Linus Torvalds committed May 8, 2007
1 parent d582bf9 commit 27f741f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: e7d709c096487078652a1384d7a2d0e4459e18b6
refs/heads/master: e1b5c1d3da05c91129120d045dfcdfc7761f44f1
3 changes: 2 additions & 1 deletion trunk/fs/hfs/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <linux/pagemap.h>
#include <linux/log2.h>

#include "btree.h"

Expand Down Expand Up @@ -76,7 +77,7 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp ke
tree->depth = be16_to_cpu(head->depth);

size = tree->node_size;
if (!size || size & (size - 1))
if (!is_power_of_2(size))
goto fail_page;
if (!tree->node_count)
goto fail_page;
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/hfsplus/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/log2.h>

#include "hfsplus_fs.h"
#include "hfsplus_raw.h"
Expand Down Expand Up @@ -69,7 +70,7 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id)
}

size = tree->node_size;
if (!size || size & (size - 1))
if (!is_power_of_2(size))
goto fail_page;
if (!tree->node_count)
goto fail_page;
Expand Down

0 comments on commit 27f741f

Please sign in to comment.