nfsd: notify_change needs elevated write count
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 24 Feb 2014 19:59:47 +0000 (14:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:55:29 +0000 (07:55 -0700)
commitb57d9c3fe362d805eb848098b7bb994a3b718ebf
treec409457b12c3e1c419b9c3bb67011098981f2fb1
parent5aad7571c2cf4366b1b80c7d22446458fe75f629
nfsd: notify_change needs elevated write count

commit 9f67f189939eccaa54f3d2c9cf10788abaf2d584 upstream.

Looks like this bug has been here since these write counts were
introduced, not sure why it was just noticed now.

Thanks also to Jan Kara for pointing out the problem.

Reported-by: Matthew Rahtz <mrahtz@rapitasystems.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/vfs.c