Lines Matching refs:lwc
1440 struct ceph_lease_walk_control *lwc, in __dentry_leases_walk() argument
1450 list = lwc->dir_lease ? &mdsc->dentry_dir_leases : &mdsc->dentry_leases; in __dentry_leases_walk()
1453 if (!lwc->nr_to_scan) in __dentry_leases_walk()
1455 --lwc->nr_to_scan; in __dentry_leases_walk()
1469 ret = check(dentry, lwc); in __dentry_leases_walk()
1543 struct ceph_lease_walk_control *lwc = arg; in __dir_lease_check() local
1550 if (time_before(jiffies, di->time + lwc->dir_lease_ttl)) in __dir_lease_check()
1555 if (!lwc->expire_dir_lease) in __dir_lease_check()
1568 struct ceph_lease_walk_control lwc; in ceph_trim_dentries() local
1580 lwc.dir_lease = false; in ceph_trim_dentries()
1581 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE * 2; in ceph_trim_dentries()
1582 freed = __dentry_leases_walk(mdsc, &lwc, __dentry_lease_check); in ceph_trim_dentries()
1583 if (!lwc.nr_to_scan) /* more invalid leases */ in ceph_trim_dentries()
1586 if (lwc.nr_to_scan < CEPH_CAPS_PER_RELEASE) in ceph_trim_dentries()
1587 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE; in ceph_trim_dentries()
1589 lwc.dir_lease = true; in ceph_trim_dentries()
1590 lwc.expire_dir_lease = freed < count; in ceph_trim_dentries()
1591 lwc.dir_lease_ttl = mdsc->fsc->mount_options->caps_wanted_delay_max * HZ; in ceph_trim_dentries()
1592 freed +=__dentry_leases_walk(mdsc, &lwc, __dir_lease_check); in ceph_trim_dentries()
1593 if (!lwc.nr_to_scan) /* more to check */ in ceph_trim_dentries()