commit | d8398fc11762d162b2e7b0f368278449899cfbdf | [log] [tgz] |
---|---|---|
author | Kinglong Mee <kinglongmee@gmail.com> | Tue Jul 07 10:12:03 2015 +0800 |
committer | J. Bruce Fields <bfields@redhat.com> | Mon Jul 20 14:58:46 2015 -0400 |
tree | 3457fc72a7b8db8d1d100e40784c21a7ef7ff02a | |
parent | 28e51af7c608f661a728db9d47b33c54096fdc59 [diff] |
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>