Lines Matching refs:mdsc
309 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_readdir() local
380 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS); in ceph_readdir()
417 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_readdir()
737 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_lookup() local
774 req = ceph_mdsc_create_request(mdsc, op, USE_ANY_MDS); in ceph_lookup()
787 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_lookup()
826 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_mknod() local
848 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_MKNOD, USE_AUTH_MDS); in ceph_mknod()
865 err = ceph_mdsc_do_request(mdsc, dir, req); in ceph_mknod()
888 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_symlink() local
906 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_SYMLINK, USE_AUTH_MDS); in ceph_symlink()
923 err = ceph_mdsc_do_request(mdsc, dir, req); in ceph_symlink()
937 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_mkdir() local
969 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS); in ceph_mkdir()
986 err = ceph_mdsc_do_request(mdsc, dir, req); in ceph_mkdir()
1005 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_link() local
1014 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LINK, USE_AUTH_MDS); in ceph_link()
1028 err = ceph_mdsc_do_request(mdsc, dir, req); in ceph_link()
1045 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_unlink() local
1062 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS); in ceph_unlink()
1074 err = ceph_mdsc_do_request(mdsc, dir, req); in ceph_unlink()
1087 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_rename() local
1110 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS); in ceph_rename()
1130 err = ceph_mdsc_do_request(mdsc, old_dir, req); in ceph_rename()
1153 struct ceph_mds_client *mdsc; in __ceph_dentry_lease_touch() local
1163 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; in __ceph_dentry_lease_touch()
1164 spin_lock(&mdsc->dentry_list_lock); in __ceph_dentry_lease_touch()
1165 list_move_tail(&di->lease_list, &mdsc->dentry_leases); in __ceph_dentry_lease_touch()
1166 spin_unlock(&mdsc->dentry_list_lock); in __ceph_dentry_lease_touch()
1169 static void __dentry_dir_lease_touch(struct ceph_mds_client* mdsc, in __dentry_dir_lease_touch() argument
1175 list_move_tail(&di->lease_list, &mdsc->dentry_dir_leases); in __dentry_dir_lease_touch()
1187 struct ceph_mds_client *mdsc; in __ceph_dentry_dir_lease_touch() local
1210 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; in __ceph_dentry_dir_lease_touch()
1211 spin_lock(&mdsc->dentry_list_lock); in __ceph_dentry_dir_lease_touch()
1212 __dentry_dir_lease_touch(mdsc, di), in __ceph_dentry_dir_lease_touch()
1213 spin_unlock(&mdsc->dentry_list_lock); in __ceph_dentry_dir_lease_touch()
1218 struct ceph_mds_client *mdsc; in __dentry_lease_unlist() local
1224 mdsc = ceph_sb_to_client(di->dentry->d_sb)->mdsc; in __dentry_lease_unlist()
1225 spin_lock(&mdsc->dentry_list_lock); in __dentry_lease_unlist()
1227 spin_unlock(&mdsc->dentry_list_lock); in __dentry_lease_unlist()
1245 __dentry_leases_walk(struct ceph_mds_client *mdsc, in __dentry_leases_walk() argument
1256 list = lwc->dir_lease ? &mdsc->dentry_dir_leases : &mdsc->dentry_leases; in __dentry_leases_walk()
1257 spin_lock(&mdsc->dentry_list_lock); in __dentry_leases_walk()
1278 __dentry_dir_lease_touch(mdsc, di); in __dentry_leases_walk()
1302 spin_unlock(&mdsc->dentry_list_lock); in __dentry_leases_walk()
1313 spin_lock(&mdsc->dentry_list_lock); in __dentry_leases_walk()
1316 &mdsc->dentry_leases); in __dentry_leases_walk()
1318 __dentry_dir_lease_touch(mdsc, di); in __dentry_leases_walk()
1320 spin_unlock(&mdsc->dentry_list_lock); in __dentry_leases_walk()
1372 int ceph_trim_dentries(struct ceph_mds_client *mdsc) in ceph_trim_dentries() argument
1378 spin_lock(&mdsc->caps_list_lock); in ceph_trim_dentries()
1379 if (mdsc->caps_use_max > 0 && in ceph_trim_dentries()
1380 mdsc->caps_use_count > mdsc->caps_use_max) in ceph_trim_dentries()
1381 count = mdsc->caps_use_count - mdsc->caps_use_max; in ceph_trim_dentries()
1384 spin_unlock(&mdsc->caps_list_lock); in ceph_trim_dentries()
1388 freed = __dentry_leases_walk(mdsc, &lwc, __dentry_lease_check); in ceph_trim_dentries()
1397 lwc.dir_lease_ttl = mdsc->fsc->mount_options->caps_wanted_delay_max * HZ; in ceph_trim_dentries()
1398 freed +=__dentry_leases_walk(mdsc, &lwc, __dir_lease_check); in ceph_trim_dentries()
1593 struct ceph_mds_client *mdsc = in ceph_d_revalidate() local
1594 ceph_sb_to_client(dir->i_sb)->mdsc; in ceph_d_revalidate()
1604 req = ceph_mdsc_create_request(mdsc, op, USE_ANY_MDS); in ceph_d_revalidate()
1615 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_d_revalidate()