Skip to content

Commit

Permalink
Merge pull request ceph#15541 from guihecheng/rgw_file-cleanup
Browse files Browse the repository at this point in the history
rgw_file: replace raw fs->fh_lru.unref with predefined fs->unref
  • Loading branch information
mattbenjamin authored Jun 9, 2017
2 parents ab43b0d + fcd313e commit 05a390b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rgw/rgw_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ namespace rgw {
<< fh->name
<< " before ObjUnref refs=" << fh->get_refcnt()
<< dendl;
fs->fh_lru.unref(fh, cohort::lru::FLAG_NONE);
fs->unref(fh);
}
};

Expand Down Expand Up @@ -932,7 +932,7 @@ namespace rgw {
* no unsafe iterators reaching it either--n.b., this constraint
* is binding oncode which may in future attempt to e.g.,
* cause the eviction of objects in LRU order */
(void) get_fs()->fh_lru.unref(parent, cohort::lru::FLAG_NONE);
(void) get_fs()->unref(parent);
}
}

Expand Down
1 change: 0 additions & 1 deletion src/rgw/rgw_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,6 @@ namespace rgw {
if (! fh) {
if (unlikely(fh_hk == root_fh.fh.fh_hk)) {
fh = &root_fh;
ref(fh);
}
}

Expand Down

0 comments on commit 05a390b

Please sign in to comment.