Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210057
b: refs/heads/master
c: e072f8a
h: refs/heads/master
i:
  210055: 45b1c56
v: v3
  • Loading branch information
Sage Weil committed Aug 26, 2010
1 parent af49c6f commit 0e20bb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: f44c3890d9fd6e4284518ff3bb16879fee194a3a
refs/heads/master: e072f8aa3587710cd35cce0f6b6efd7b4276c327
7 changes: 4 additions & 3 deletions trunk/fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2324,15 +2324,15 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,
path = ceph_mdsc_build_path(dentry, &pathlen, &pathbase, 0);
if (IS_ERR(path)) {
err = PTR_ERR(path);
BUG_ON(err);
goto out_dput;
}
} else {
path = NULL;
pathlen = 0;
}
err = ceph_pagelist_encode_string(pagelist, path, pathlen);
if (err)
goto out;
goto out_free;

spin_lock(&inode->i_lock);
cap->seq = 0; /* reset cap seq */
Expand Down Expand Up @@ -2376,8 +2376,9 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,
unlock_kernel();
}

out:
out_free:
kfree(path);
out_dput:
dput(dentry);
return err;
}
Expand Down

0 comments on commit 0e20bb8

Please sign in to comment.