]> git.karo-electronics.de Git - karo-tx-linux.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)
commit267309f394bf3cd8db001992890b1fa52b97974e
tree1d9917f5ac2b5a6c68607074aaab6bcd1c78452e
parentc596961d1b4ccc6f15754fe5a49c37ac6da57145
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