提交 7d93a1a5 编写于 作者: E Evgeniy Dushistov 提交者: Linus Torvalds

[PATCH] ext2: cleanup: put_page and comment fix

Things which force me think a little: why so?
Signed-off-by: NEvgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 77787bfb
...@@ -399,8 +399,7 @@ ino_t ext2_inode_by_name(struct inode * dir, struct dentry *dentry) ...@@ -399,8 +399,7 @@ ino_t ext2_inode_by_name(struct inode * dir, struct dentry *dentry)
de = ext2_find_entry (dir, dentry, &page); de = ext2_find_entry (dir, dentry, &page);
if (de) { if (de) {
res = le32_to_cpu(de->inode); res = le32_to_cpu(de->inode);
kunmap(page); ext2_put_page(page);
page_cache_release(page);
} }
return res; return res;
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "ext2.h" #include "ext2.h"
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/buffer_head.h> /* for fsync_inode_buffers() */ #include <linux/buffer_head.h> /* for sync_mapping_buffers() */
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册