Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53508
b: refs/heads/master
c: 1a0ba9a
h: refs/heads/master
v: v3
  • Loading branch information
Amnon Aaronsohn authored and Trond Myklebust committed May 1, 2007
1 parent 04c4c94 commit f1ca359
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d585158b608248a6ba8ae75e234672e048d3fde9
refs/heads/master: 1a0ba9ae485c5fd17d0bff2f14d9dd75b8985593
9 changes: 4 additions & 5 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
lock_kernel();

error = server->nfs_client->rpc_ops->statfs(server, fh, &res);
buf->f_type = NFS_SUPER_MAGIC;
if (error < 0)
goto out_err;
buf->f_type = NFS_SUPER_MAGIC;

/*
* Current versions of glibc do not correctly handle the
Expand All @@ -233,15 +233,14 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_ffree = res.afiles;

buf->f_namelen = server->namelen;
out:

unlock_kernel();
return 0;

out_err:
dprintk("%s: statfs error = %d\n", __FUNCTION__, -error);
buf->f_bsize = buf->f_blocks = buf->f_bfree = buf->f_bavail = -1;
goto out;

unlock_kernel();
return error;
}

/*
Expand Down

0 comments on commit f1ca359

Please sign in to comment.