[PATCH] ext2: cleanup: put_page and comment fix
authorEvgeniy Dushistov <dushistov@mail.ru>
Sun, 25 Jun 2006 12:49:27 +0000 (05:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:25 +0000 (10:01 -0700)
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>
fs/ext2/dir.c
fs/ext2/fsync.c

index 3c1c9aaaca6bef152deae5d93b03e9db7e278d67..92ea8265d7d5248e046954369da84b86bb858753 100644 (file)
@@ -399,8 +399,7 @@ ino_t ext2_inode_by_name(struct inode * dir, struct dentry *dentry)
        de = ext2_find_entry (dir, dentry, &page);
        if (de) {
                res = le32_to_cpu(de->inode);
-               kunmap(page);
-               page_cache_release(page);
+               ext2_put_page(page);
        }
        return res;
 }
index c9c2e5ffa48e264a8054cff6fb54bf93447987c7..7806b9e8155bfd8c8b8043faa872e968c2a41369 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "ext2.h"
 #include <linux/smp_lock.h>
-#include <linux/buffer_head.h>         /* for fsync_inode_buffers() */
+#include <linux/buffer_head.h>         /* for sync_mapping_buffers() */
 
 
 /*