Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192306
b: refs/heads/master
c: ca7e9a0
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed May 14, 2010
1 parent 6bacd6f commit b0081b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 987f8dfc9862f2c7b59594089793dedeebf0cf5e
refs/heads/master: ca7e9a0df263493bbdf76f47fd9e9ac48ad6f331
14 changes: 9 additions & 5 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,19 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
unsigned char blockbits;
unsigned long blockres;
struct nfs_fh *fh = NFS_FH(dentry->d_inode);
struct nfs_fattr fattr;
struct nfs_fsstat res = {
.fattr = &fattr,
};
int error;
struct nfs_fsstat res;
int error = -ENOMEM;

res.fattr = nfs_alloc_fattr();
if (res.fattr == NULL)
goto out_err;

error = server->nfs_client->rpc_ops->statfs(server, fh, &res);

nfs_free_fattr(res.fattr);
if (error < 0)
goto out_err;

buf->f_type = NFS_SUPER_MAGIC;

/*
Expand Down

0 comments on commit b0081b5

Please sign in to comment.