fix ufs write vs readpage race when writing into a hole
authorAl Viro <viro@ZenIV.linux.org.uk>
Wed, 9 Sep 2015 09:16:39 +0000 (10:16 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 9 Sep 2015 17:43:12 +0000 (10:43 -0700)
Followup to the UFS series - with the way we clear the new blocks (via
buffer cache, possibly on more than a page worth of file) we really
should not insert a reference to new block into inode block tree until
after we'd cleared it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ufs/balloc.c

diff --cc fs/ufs/balloc.c
Simple merge