浏览代码

[PATCH] ext2: cleanup: put_page and comment fix

Things which force me think a little: why so?

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Evgeniy Dushistov 19 年之前
父节点
当前提交
7d93a1a53a
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 2
      fs/ext2/dir.c
  2. 1 1
      fs/ext2/fsync.c

+ 1 - 2
fs/ext2/dir.c

@@ -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);
-		page_cache_release(page);
+		ext2_put_page(page);
 	}
 	}
 	return res;
 	return res;
 }
 }

+ 1 - 1
fs/ext2/fsync.c

@@ -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() */
 
 
 
 
 /*
 /*