Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143193
b: refs/heads/master
c: eb2e5f4
h: refs/heads/master
i:
  143191: fc7a0c3
v: v3
  • Loading branch information
Dave Anderson authored and Linus Torvalds committed Apr 13, 2009
1 parent 7d6263a commit 886a5a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 251eb40f5ccd07a905633a816fbf8f2b6b25cced
refs/heads/master: eb2e5f452a1456c7a20f7566a24d5a8f6ef3edd5
4 changes: 4 additions & 0 deletions trunk/fs/hfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ static int hfs_releasepage(struct page *page, gfp_t mask)
BUG();
return 0;
}

if (!tree)
return 0;

if (tree->node_size >= PAGE_CACHE_SIZE) {
nidx = page->index >> (tree->node_size_shift - PAGE_CACHE_SHIFT);
spin_lock(&tree->hash_lock);
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/hfs/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ void hfs_mdb_put(struct super_block *sb)
if (HFS_SB(sb)->nls_disk)
unload_nls(HFS_SB(sb)->nls_disk);

free_pages((unsigned long)HFS_SB(sb)->bitmap, PAGE_SIZE < 8192 ? 1 : 0);
kfree(HFS_SB(sb));
sb->s_fs_info = NULL;
}

0 comments on commit 886a5a8

Please sign in to comment.