Lines Matching defs:mdsc

41 	struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb);
53 atomic64_inc(&mdsc->metric.total_dentries);
311 struct ceph_mds_client *mdsc = fsc->mdsc;
346 __ceph_touch_fmode(ci, mdsc, CEPH_FILE_MODE_WR);
389 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS);
426 err = ceph_mdsc_do_request(mdsc, NULL, req);
749 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb);
775 __ceph_touch_fmode(ci, mdsc, CEPH_FILE_MODE_RD);
787 req = ceph_mdsc_create_request(mdsc, op, USE_ANY_MDS);
800 err = ceph_mdsc_do_request(mdsc, NULL, req);
838 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb);
860 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_MKNOD, USE_AUTH_MDS);
877 err = ceph_mdsc_do_request(mdsc, dir, req);
899 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb);
917 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_SYMLINK, USE_AUTH_MDS);
938 err = ceph_mdsc_do_request(mdsc, dir, req);
951 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb);
983 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS);
1000 err = ceph_mdsc_do_request(mdsc, dir, req);
1018 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb);
1027 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LINK, USE_AUTH_MDS);
1041 err = ceph_mdsc_do_request(mdsc, dir, req);
1052 static void ceph_async_unlink_cb(struct ceph_mds_client *mdsc,
1130 struct ceph_mds_client *mdsc = fsc->mdsc;
1149 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS);
1170 err = ceph_mdsc_submit_request(mdsc, dir, req);
1185 err = ceph_mdsc_do_request(mdsc, dir, req);
1199 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(old_dir->i_sb);
1215 err = ceph_quota_check_rename(mdsc, d_inode(old_dentry),
1223 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS);
1243 err = ceph_mdsc_do_request(mdsc, old_dir, req);
1257 * Move dentry to tail of mdsc->dentry_leases list when lease is updated.
1266 struct ceph_mds_client *mdsc;
1276 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc;
1277 spin_lock(&mdsc->dentry_list_lock);
1278 list_move_tail(&di->lease_list, &mdsc->dentry_leases);
1279 spin_unlock(&mdsc->dentry_list_lock);
1282 static void __dentry_dir_lease_touch(struct ceph_mds_client* mdsc,
1288 list_move_tail(&di->lease_list, &mdsc->dentry_dir_leases);
1292 * When dir lease is used, add dentry to tail of mdsc->dentry_dir_leases
1300 struct ceph_mds_client *mdsc;
1323 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc;
1324 spin_lock(&mdsc->dentry_list_lock);
1325 __dentry_dir_lease_touch(mdsc, di),
1326 spin_unlock(&mdsc->dentry_list_lock);
1331 struct ceph_mds_client *mdsc;
1337 mdsc = ceph_sb_to_client(di->dentry->d_sb)->mdsc;
1338 spin_lock(&mdsc->dentry_list_lock);
1340 spin_unlock(&mdsc->dentry_list_lock);
1358 __dentry_leases_walk(struct ceph_mds_client *mdsc,
1369 list = lwc->dir_lease ? &mdsc->dentry_dir_leases : &mdsc->dentry_leases;
1370 spin_lock(&mdsc->dentry_list_lock);
1391 __dentry_dir_lease_touch(mdsc, di);
1415 spin_unlock(&mdsc->dentry_list_lock);
1426 spin_lock(&mdsc->dentry_list_lock);
1429 &mdsc->dentry_leases);
1431 __dentry_dir_lease_touch(mdsc, di);
1433 spin_unlock(&mdsc->dentry_list_lock);
1485 int ceph_trim_dentries(struct ceph_mds_client *mdsc)
1491 spin_lock(&mdsc->caps_list_lock);
1492 if (mdsc->caps_use_max > 0 &&
1493 mdsc->caps_use_count > mdsc->caps_use_max)
1494 count = mdsc->caps_use_count - mdsc->caps_use_max;
1497 spin_unlock(&mdsc->caps_list_lock);
1501 freed = __dentry_leases_walk(mdsc, &lwc, __dentry_lease_check);
1510 lwc.dir_lease_ttl = mdsc->fsc->mount_options->caps_wanted_delay_max * HZ;
1511 freed +=__dentry_leases_walk(mdsc, &lwc, __dir_lease_check);
1638 struct ceph_mds_client *mdsc)
1647 __ceph_touch_fmode(ci, mdsc, CEPH_FILE_MODE_RD);
1675 struct ceph_mds_client *mdsc;
1692 mdsc = ceph_sb_to_client(dir->i_sb)->mdsc;
1705 if (valid || dir_lease_is_valid(dir, dentry, mdsc)) {
1721 percpu_counter_inc(&mdsc->metric.d_lease_mis);
1725 req = ceph_mdsc_create_request(mdsc, op, USE_ANY_MDS);
1736 err = ceph_mdsc_do_request(mdsc, NULL, req);
1755 percpu_counter_inc(&mdsc->metric.d_lease_hit);
1802 atomic64_dec(&fsc->mdsc->metric.total_dentries);