Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45837
b: refs/heads/master
c: e2df0c8
h: refs/heads/master
i:
  45835: c454601
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jan 26, 2007
1 parent 3c37768 commit b5c96af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 250f3915183d377d36e012bac9caa7345ce465b8
refs/heads/master: e2df0c8644db3d01e3c6fc5f7670fdd7b4c2b234
15 changes: 4 additions & 11 deletions trunk/include/linux/nfsd/nfsfh.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,7 @@ void fh_put(struct svc_fh *);
static __inline__ struct svc_fh *
fh_copy(struct svc_fh *dst, struct svc_fh *src)
{
if (src->fh_dentry || src->fh_locked) {
struct dentry *dentry = src->fh_dentry;
printk(KERN_ERR "fh_copy: copying %s/%s, already verified!\n",
dentry->d_parent->d_name.name, dentry->d_name.name);
}
WARN_ON(src->fh_dentry || src->fh_locked);

*dst = *src;
return dst;
Expand Down Expand Up @@ -300,10 +296,8 @@ fh_lock_nested(struct svc_fh *fhp, unsigned int subclass)
dfprintk(FILEOP, "nfsd: fh_lock(%s) locked = %d\n",
SVCFH_fmt(fhp), fhp->fh_locked);

if (!fhp->fh_dentry) {
printk(KERN_ERR "fh_lock: fh not verified!\n");
return;
}
BUG_ON(!dentry);

if (fhp->fh_locked) {
printk(KERN_WARNING "fh_lock: %s/%s already locked!\n",
dentry->d_parent->d_name.name, dentry->d_name.name);
Expand All @@ -328,8 +322,7 @@ fh_lock(struct svc_fh *fhp)
static inline void
fh_unlock(struct svc_fh *fhp)
{
if (!fhp->fh_dentry)
printk(KERN_ERR "fh_unlock: fh not verified!\n");
BUG_ON(!fhp->fh_dentry);

if (fhp->fh_locked) {
fill_post_wcc(fhp);
Expand Down

0 comments on commit b5c96af

Please sign in to comment.