浏览代码

cifs: set server_eof in cifs_fattr_to_inode

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Jeff Layton 15 年之前
父节点
当前提交
835a36ca4a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/cifs/inode.c

+ 1 - 0
fs/cifs/inode.c

@@ -111,6 +111,7 @@ cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr)
 
 	cifs_i->delete_pending = fattr->cf_flags & CIFS_FATTR_DELETE_PENDING;
 
+	cifs_i->server_eof = fattr->cf_eof;
 	/*
 	 * Can't safely change the file size here if the client is writing to
 	 * it due to potential races.