nfsd: Set lc_size_chg before ops->proc_layoutcommit
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 7 Jul 2015 02:12:03 +0000 (10:12 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 20 Jul 2015 18:58:46 +0000 (14:58 -0400)
commitd8398fc11762d162b2e7b0f368278449899cfbdf
tree3457fc72a7b8db8d1d100e40784c21a7ef7ff02a
parent28e51af7c608f661a728db9d47b33c54096fdc59
nfsd: Set lc_size_chg before ops->proc_layoutcommit

After proc_layoutcommit success, i_size_read(inode) always >= new_size.
Just set lc_size_chg before proc_layoutcommit, if proc_layoutcommit
failed, nfsd will skip the lc_size_chg, so it's no harm.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c