Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25579
b: refs/heads/master
c: b5872b0
h: refs/heads/master
i:
  25577: 511e35c
  25575: 4eaa569
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Apr 11, 2006
1 parent 0506050 commit 326566b
Show file tree
Hide file tree
Showing 2 changed files with 2 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: b905b7b0a054d2ab3e0c9304def998546c93f6b5
refs/heads/master: b5872b0dcc0501035d5ae53c60f8cbbb3798da8a
6 changes: 1 addition & 5 deletions trunk/fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
static ssize_t nfsd_getxattr(struct dentry *dentry, char *key, void **buf)
{
ssize_t buflen;
int error;

buflen = vfs_getxattr(dentry, key, NULL, 0);
if (buflen <= 0)
Expand All @@ -381,10 +380,7 @@ static ssize_t nfsd_getxattr(struct dentry *dentry, char *key, void **buf)
if (!*buf)
return -ENOMEM;

error = vfs_getxattr(dentry, key, *buf, buflen);
if (error < 0)
return error;
return buflen;
return vfs_getxattr(dentry, key, *buf, buflen);
}
#endif

Expand Down

0 comments on commit 326566b

Please sign in to comment.