From: Evgeniy Dushistov Things which force me think a little: why so? Signed-off-by: Evgeniy Dushistov Signed-off-by: Andrew Morton --- fs/ext2/dir.c | 3 +-- fs/ext2/fsync.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff -puN fs/ext2/dir.c~ext2-cleanup-put_page-and-comment-fix fs/ext2/dir.c --- a/fs/ext2/dir.c~ext2-cleanup-put_page-and-comment-fix +++ a/fs/ext2/dir.c @@ -399,8 +399,7 @@ ino_t ext2_inode_by_name(struct inode * 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; } diff -puN fs/ext2/fsync.c~ext2-cleanup-put_page-and-comment-fix fs/ext2/fsync.c --- a/fs/ext2/fsync.c~ext2-cleanup-put_page-and-comment-fix +++ a/fs/ext2/fsync.c @@ -24,7 +24,7 @@ #include "ext2.h" #include -#include /* for fsync_inode_buffers() */ +#include /* for sync_mapping_buffers() */ /* _