]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix WARN_ON from ext4_releasepage()
authorJan Kara <jack@suse.cz>
Mon, 11 Mar 2013 02:19:00 +0000 (22:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Mar 2013 02:19:00 +0000 (22:19 -0400)
commit09482dff36c24faada5183f9ab5f35b6140493d4
treef4330bbfa5bc21817d2f58cccb6c234431d73b1d
parentb55dc00bd006340353a076586472aee291afd158
ext4: fix WARN_ON from ext4_releasepage()

ext4_releasepage() warns when it is passed a page with PageChecked set.
However this can correctly happen when invalidate_inode_pages2_range()
invalidates pages - and we should fail the release in that case. Since
the page was dirty anyway, it won't be discarded and no harm has
happened but it's good to be safe. Also remove bogus page_has_buffers()
check - we are guaranteed page has buffers in this function.

Reported-by: Zheng Liu <gnehzuil.liu@gmail.com>
Tested-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext4/inode.c