Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188634
b: refs/heads/master
c: 75eb359
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Nov 21, 2009
1 parent b4e3176 commit a982789
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 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: 32c895e776a0dd2cb701d60fbd6440280c09ce35
refs/heads/master: 75eb3592811028e5b01835126483d115532a3aa1
10 changes: 0 additions & 10 deletions trunk/fs/ceph/snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ static int adjust_snap_realm_parent(struct ceph_mds_client *mdsc,
return 0;

parent = ceph_lookup_snap_realm(mdsc, parentino);
if (IS_ERR(parent))
return PTR_ERR(parent);
if (!parent) {
parent = ceph_create_snap_realm(mdsc, parentino);
if (IS_ERR(parent))
Expand Down Expand Up @@ -541,10 +539,6 @@ int ceph_update_snap_trace(struct ceph_mds_client *mdsc,
p += sizeof(u64) * le32_to_cpu(ri->num_prior_parent_snaps);

realm = ceph_lookup_snap_realm(mdsc, le64_to_cpu(ri->ino));
if (IS_ERR(realm)) {
err = PTR_ERR(realm);
goto fail;
}
if (!realm) {
realm = ceph_create_snap_realm(mdsc, le64_to_cpu(ri->ino));
if (IS_ERR(realm)) {
Expand Down Expand Up @@ -762,8 +756,6 @@ void ceph_handle_snap(struct ceph_mds_client *mdsc,
ri = p;

realm = ceph_lookup_snap_realm(mdsc, split);
if (IS_ERR(realm))
goto out;
if (!realm) {
realm = ceph_create_snap_realm(mdsc, split);
if (IS_ERR(realm))
Expand Down Expand Up @@ -829,8 +821,6 @@ void ceph_handle_snap(struct ceph_mds_client *mdsc,
struct ceph_snap_realm *child =
ceph_lookup_snap_realm(mdsc,
le64_to_cpu(split_realms[i]));
if (IS_ERR(child))
continue;
if (!child)
continue;
adjust_snap_realm_parent(mdsc, child, realm->ino);
Expand Down

0 comments on commit a982789

Please sign in to comment.