Revert "ceph: remove the incorrect Fw reference check when dirtying pages"
This reverts commit 0c92def6af
.
This commit is contained in:
parent
b3f227d379
commit
ae928b45d6
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ static int ceph_set_page_dirty(struct page *page)
|
||||||
|
|
||||||
/* dirty the head */
|
/* dirty the head */
|
||||||
spin_lock(&ci->i_ceph_lock);
|
spin_lock(&ci->i_ceph_lock);
|
||||||
|
BUG_ON(ci->i_wr_ref == 0); // caller should hold Fw reference
|
||||||
if (__ceph_have_pending_cap_snap(ci)) {
|
if (__ceph_have_pending_cap_snap(ci)) {
|
||||||
struct ceph_cap_snap *capsnap =
|
struct ceph_cap_snap *capsnap =
|
||||||
list_last_entry(&ci->i_cap_snaps,
|
list_last_entry(&ci->i_cap_snaps,
|
||||||
|
|
Loading…
Reference in a new issue