|
@@ -1389,7 +1389,7 @@ static void __ceph_flush_snaps(struct ceph_inode_info *ci,
|
|
first_tid = cf->tid + 1;
|
|
first_tid = cf->tid + 1;
|
|
|
|
|
|
capsnap = container_of(cf, struct ceph_cap_snap, cap_flush);
|
|
capsnap = container_of(cf, struct ceph_cap_snap, cap_flush);
|
|
- atomic_inc(&capsnap->nref);
|
|
|
|
|
|
+ refcount_inc(&capsnap->nref);
|
|
spin_unlock(&ci->i_ceph_lock);
|
|
spin_unlock(&ci->i_ceph_lock);
|
|
|
|
|
|
dout("__flush_snaps %p capsnap %p tid %llu %s\n",
|
|
dout("__flush_snaps %p capsnap %p tid %llu %s\n",
|
|
@@ -2202,7 +2202,7 @@ static void __kick_flushing_caps(struct ceph_mds_client *mdsc,
|
|
inode, capsnap, cf->tid,
|
|
inode, capsnap, cf->tid,
|
|
ceph_cap_string(capsnap->dirty));
|
|
ceph_cap_string(capsnap->dirty));
|
|
|
|
|
|
- atomic_inc(&capsnap->nref);
|
|
|
|
|
|
+ refcount_inc(&capsnap->nref);
|
|
spin_unlock(&ci->i_ceph_lock);
|
|
spin_unlock(&ci->i_ceph_lock);
|
|
|
|
|
|
ret = __send_flush_snap(inode, session, capsnap, cap->mseq,
|
|
ret = __send_flush_snap(inode, session, capsnap, cap->mseq,
|