NFS: Cleanup initialisation of struct nfs_fattr
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -870,6 +870,7 @@ static void nfs_write_rpcsetup(struct nfs_page *req,
|
||||
data->res.fattr = &data->fattr;
|
||||
data->res.count = count;
|
||||
data->res.verf = &data->verf;
|
||||
nfs_fattr_init(&data->fattr);
|
||||
|
||||
NFS_PROTO(inode)->write_setup(data, how);
|
||||
|
||||
@@ -1237,6 +1238,7 @@ static void nfs_commit_rpcsetup(struct list_head *head,
|
||||
data->res.count = 0;
|
||||
data->res.fattr = &data->fattr;
|
||||
data->res.verf = &data->verf;
|
||||
nfs_fattr_init(&data->fattr);
|
||||
|
||||
NFS_PROTO(inode)->commit_setup(data, how);
|
||||
|
||||
|
Reference in New Issue
Block a user