]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make sure we retry if we couldn't get the page
authorFilipe Manana <fdmanana@gmail.com>
Thu, 5 Jun 2014 12:22:24 +0000 (13:22 +0100)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:21:12 +0000 (17:21 -0700)
commitd404143725b0b7125b09e9664cc9cb56a0aa03dc
tree09a10ab7a754d092e46bff6cd46d41847de439a4
parent722099b27209feb446c0ec899d68690a32cb32a4
Btrfs: make sure we retry if we couldn't get the page

In inode.c:btrfs_page_exists_in_range(), if we can't get the page
we need to retry. However we weren't retrying because we weren't
setting page to NULL, which makes the while loop exit immediately
and will make us call page_cache_release after exiting the loop
which is incorrect because our page get didn't succeed. This could
also make us return true when we shouldn't.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c