projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'x86/urgent' into x86/xen
[firefly-linux-kernel-4.4.55.git]
/
fs
/
hfs
/
inode.c
diff --git
a/fs/hfs/inode.c
b/fs/hfs/inode.c
index 9435dda8f1e015c27d20f84c167917b064816316..a1cbff2b4d99066718f9dd0a44c86cd4ec20de48 100644
(file)
--- a/
fs/hfs/inode.c
+++ b/
fs/hfs/inode.c
@@
-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);