Re: [PATCH] nfs: don't update isize when NFS_INO_LAYOUTCOMMITTING in nfs_update_inode

2014-01-13 Thread Trond Myklebust
On Jan 13, 2014, at 8:34, Trond Myklebust wrote: > > On Jan 13, 2014, at 2:55, shaobingqing wrote: > >> When a file is in NFS_INO_LAYOUTCOMMITING status, its isize perhaps has not >> been >> transferred to the metadate server. So the isize getting from the metadata >> server >> perhaps

Re: [PATCH] nfs: don't update isize when NFS_INO_LAYOUTCOMMITTING in nfs_update_inode

2014-01-13 Thread Trond Myklebust
On Jan 13, 2014, at 2:55, shaobingqing wrote: > When a file is in NFS_INO_LAYOUTCOMMITING status, its isize perhaps has not > been > transferred to the metadate server. So the isize getting from the metadata > server > perhaps is out of date and cannot be used to update the isize of the

[PATCH] nfs: don't update isize when NFS_INO_LAYOUTCOMMITTING in nfs_update_inode

2014-01-13 Thread shaobingqing
When a file is in NFS_INO_LAYOUTCOMMITING status, its isize perhaps has not been transferred to the metadate server. So the isize getting from the metadata server perhaps is out of date and cannot be used to update the isize of the client. Signed-off-by: shaobingqing --- fs/nfs/inode.c |

[PATCH] nfs: don't update isize when NFS_INO_LAYOUTCOMMITTING in nfs_update_inode

2014-01-13 Thread shaobingqing
When a file is in NFS_INO_LAYOUTCOMMITING status, its isize perhaps has not been transferred to the metadate server. So the isize getting from the metadata server perhaps is out of date and cannot be used to update the isize of the client. Signed-off-by: shaobingqing shaobingq...@bwstor.com.cn

Re: [PATCH] nfs: don't update isize when NFS_INO_LAYOUTCOMMITTING in nfs_update_inode

2014-01-13 Thread Trond Myklebust
On Jan 13, 2014, at 2:55, shaobingqing shaobingq...@bwstor.com.cn wrote: When a file is in NFS_INO_LAYOUTCOMMITING status, its isize perhaps has not been transferred to the metadate server. So the isize getting from the metadata server perhaps is out of date and cannot be used to update

Re: [PATCH] nfs: don't update isize when NFS_INO_LAYOUTCOMMITTING in nfs_update_inode

2014-01-13 Thread Trond Myklebust
On Jan 13, 2014, at 8:34, Trond Myklebust trond.mykleb...@primarydata.com wrote: On Jan 13, 2014, at 2:55, shaobingqing shaobingq...@bwstor.com.cn wrote: When a file is in NFS_INO_LAYOUTCOMMITING status, its isize perhaps has not been transferred to the metadate server. So the isize