git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nilfs2: add cache framework for persistent object allocator
[pandora-kernel.git]
/
fs
/
nilfs2
/
mdt.c
diff --git
a/fs/nilfs2/mdt.c
b/fs/nilfs2/mdt.c
index
948b1f8
..
06713ff
100644
(file)
--- a/
fs/nilfs2/mdt.c
+++ b/
fs/nilfs2/mdt.c
@@
-571,6
+571,8
@@
void nilfs_mdt_destroy(struct inode *inode)
{
struct nilfs_mdt_info *mdi = NILFS_MDT(inode);
+ if (mdi->mi_palloc_cache)
+ nilfs_palloc_destroy_cache(inode);
nilfs_mdt_clear(inode);
kfree(mdi->mi_bgl); /* kfree(NULL) is safe */