]> git.baikalelectronics.ru Git - kernel.git/commit
ufs_get_locked_page(): make sure we have buffer_heads
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Jun 2017 03:32:19 +0000 (23:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Jun 2017 03:32:19 +0000 (23:32 -0400)
commit97e53206459bf3b79a7fec46b4b3c1aac5cdf751
tree1d9917f5ac2b5a6c68607074aaab6bcd1c78452e
parent1c90ca60d4acd2c5e49aa9230e0ed3a23cd47bcf
ufs_get_locked_page(): make sure we have buffer_heads

callers rely upon that, but find_lock_page() racing with attempt of
page eviction by memory pressure might have left us with
* try_to_free_buffers() successfully done
* __remove_mapping() failed, leaving the page in our mapping
* find_lock_page() returning an uptodate page with no
buffer_heads attached.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/util.c