Lines Matching refs:mdsc
37 static long __validate_layout(struct ceph_mds_client *mdsc, in __validate_layout() argument
50 mutex_lock(&mdsc->mutex); in __validate_layout()
52 for (i = 0; i < mdsc->mdsmap->m_num_data_pg_pools; i++) in __validate_layout()
53 if (mdsc->mdsmap->m_data_pg_pools[i] == l->data_pool) { in __validate_layout()
57 mutex_unlock(&mdsc->mutex); in __validate_layout()
67 struct ceph_mds_client *mdsc = ceph_sb_to_client(inode->i_sb)->mdsc; in ceph_ioctl_set_layout() local
103 err = __validate_layout(mdsc, &nl); in ceph_ioctl_set_layout()
107 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_SETLAYOUT, in ceph_ioctl_set_layout()
125 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_ioctl_set_layout()
142 struct ceph_mds_client *mdsc = ceph_sb_to_client(inode->i_sb)->mdsc; in ceph_ioctl_set_layout_policy() local
148 err = __validate_layout(mdsc, &l); in ceph_ioctl_set_layout_policy()
152 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_SETDIRLAYOUT, in ceph_ioctl_set_layout_policy()
170 err = ceph_mdsc_do_request(mdsc, inode, req); in ceph_ioctl_set_layout_policy()