We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffe4fc commit 57a5df0Copy full SHA for 57a5df0
fs/ceph/caps.c
@@ -1577,7 +1577,7 @@ static void __ceph_flush_snaps(struct ceph_inode_info *ci,
1577
1578
while (first_tid <= last_tid) {
1579
struct ceph_cap *cap = ci->i_auth_cap;
1580
- struct ceph_cap_flush *cf;
+ struct ceph_cap_flush *cf = NULL, *iter;
1581
int ret;
1582
1583
if (!(cap && cap->session == session)) {
@@ -1587,8 +1587,9 @@ static void __ceph_flush_snaps(struct ceph_inode_info *ci,
1587
}
1588
1589
ret = -ENOENT;
1590
- list_for_each_entry(cf, &ci->i_cap_flush_list, i_list) {
1591
- if (cf->tid >= first_tid) {
+ list_for_each_entry(iter, &ci->i_cap_flush_list, i_list) {
+ if (iter->tid >= first_tid) {
1592
+ cf = iter;
1593
ret = 0;
1594
break;
1595
0 commit comments