Home
last modified time | relevance | path

Searched refs:cluster (Results 1 – 25 of 26) sorted by relevance

12

/fs/ocfs2/cluster/
Dnodemanager.c65 struct o2nm_cluster *cluster = o2nm_single_cluster; in o2nm_configured_node_map() local
67 BUG_ON(bytes < (sizeof(cluster->cl_nodes_bitmap))); in o2nm_configured_node_map()
69 if (cluster == NULL) in o2nm_configured_node_map()
72 read_lock(&cluster->cl_nodes_lock); in o2nm_configured_node_map()
73 memcpy(map, cluster->cl_nodes_bitmap, sizeof(cluster->cl_nodes_bitmap)); in o2nm_configured_node_map()
74 read_unlock(&cluster->cl_nodes_lock); in o2nm_configured_node_map()
80 static struct o2nm_node *o2nm_node_ip_tree_lookup(struct o2nm_cluster *cluster, in o2nm_node_ip_tree_lookup() argument
85 struct rb_node **p = &cluster->cl_node_ip_tree.rb_node; in o2nm_node_ip_tree_lookup()
118 struct o2nm_cluster *cluster = o2nm_single_cluster; in o2nm_get_node_by_ip() local
120 if (cluster == NULL) in o2nm_get_node_by_ip()
[all …]
/fs/fat/
Dcache.c224 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) in fat_get_cluster() argument
243 if (cluster == 0) in fat_get_cluster()
246 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { in fat_get_cluster()
255 while (*fclus < cluster) { in fat_get_cluster()
290 static int fat_bmap_cluster(struct inode *inode, int cluster) in fat_bmap_cluster() argument
298 ret = fat_get_cluster(inode, cluster, &fclus, &dclus); in fat_bmap_cluster()
317 int cluster, offset; in fat_bmap() local
344 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_bmap()
346 cluster = fat_bmap_cluster(inode, cluster); in fat_bmap()
347 if (cluster < 0) in fat_bmap()
[all …]
Dfatent.c465 int fat_alloc_clusters(struct inode *inode, int *cluster, int nr_cluster) in fat_alloc_clusters() argument
512 cluster[idx_clus] = entry; in fat_alloc_clusters()
548 fat_free_clusters(inode, cluster[0]); in fat_alloc_clusters()
553 int fat_free_clusters(struct inode *inode, int cluster) in fat_free_clusters() argument
561 int first_cl = cluster, dirty_fsinfo = 0; in fat_free_clusters()
567 cluster = fat_ent_read(inode, &fatent, cluster); in fat_free_clusters()
568 if (cluster < 0) { in fat_free_clusters()
569 err = cluster; in fat_free_clusters()
571 } else if (cluster == FAT_ENT_FREE) { in fat_free_clusters()
584 if (cluster != fatent.entry + 1) { in fat_free_clusters()
[all …]
Dfat.h258 int cluster = le16_to_cpu(de->start); in fat_get_start() local
260 cluster |= (le16_to_cpu(de->starthi) << 16); in fat_get_start()
261 return cluster; in fat_get_start()
264 static inline void fat_set_start(struct msdos_dir_entry *de, int cluster) in fat_set_start() argument
266 de->start = cpu_to_le16(cluster); in fat_set_start()
267 de->starthi = cpu_to_le16(cluster >> 16); in fat_set_start()
286 extern int fat_get_cluster(struct inode *inode, int cluster,
357 extern int fat_alloc_clusters(struct inode *inode, int *cluster,
359 extern int fat_free_clusters(struct inode *inode, int cluster);
Ddir.c1145 int err, cluster; in fat_alloc_new_dir() local
1147 err = fat_alloc_clusters(dir, &cluster, 1); in fat_alloc_new_dir()
1151 blknr = fat_clus_to_blknr(sbi, cluster); in fat_alloc_new_dir()
1180 fat_set_start(&de[0], cluster); in fat_alloc_new_dir()
1192 return cluster; in fat_alloc_new_dir()
1195 fat_free_clusters(dir, cluster); in fat_alloc_new_dir()
1210 int err, i, n, offset, cluster[2]; in fat_add_new_entries() local
1221 err = fat_alloc_clusters(dir, cluster, *nr_cluster); in fat_add_new_entries()
1232 start_blknr = blknr = fat_clus_to_blknr(sbi, cluster[i]); in fat_add_new_entries()
1270 return cluster[0]; in fat_add_new_entries()
[all …]
Dnamei_msdos.c226 int is_dir, int is_hid, int cluster, in msdos_add_entry() argument
245 fat_set_start(&de, cluster); in msdos_add_entry()
351 int err, is_hid, cluster; in msdos_mkdir() local
368 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir()
369 if (cluster < 0) { in msdos_mkdir()
370 err = cluster; in msdos_mkdir()
373 err = msdos_add_entry(dir, msdos_name, 1, is_hid, cluster, &ts, &sinfo); in msdos_mkdir()
396 fat_free_clusters(dir, cluster); in msdos_mkdir()
Dnamei_vfat.c579 int len, int is_dir, int cluster, in vfat_build_slots() argument
648 fat_set_start(de, cluster); in vfat_build_slots()
656 int cluster, struct timespec *ts, in vfat_add_entry() argument
671 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
865 int err, cluster; in vfat_mkdir() local
870 cluster = fat_alloc_new_dir(dir, &ts); in vfat_mkdir()
871 if (cluster < 0) { in vfat_mkdir()
872 err = cluster; in vfat_mkdir()
875 err = vfat_add_entry(dir, &dentry->d_name, 1, cluster, &ts, &sinfo); in vfat_mkdir()
899 fat_free_clusters(dir, cluster); in vfat_mkdir()
Dinode.c98 int err, cluster; in fat_add_cluster() local
100 err = fat_alloc_clusters(inode, &cluster, 1); in fat_add_cluster()
105 err = fat_chain_add(inode, cluster, 1); in fat_add_cluster()
107 fat_free_clusters(inode, cluster); in fat_add_cluster()
/fs/btrfs/
Dfree-space-cache.c920 struct btrfs_free_cluster *cluster = NULL; in write_cache_extent_entries() local
927 cluster = list_entry(block_group->cluster_list.next, in write_cache_extent_entries()
932 if (!node && cluster) { in write_cache_extent_entries()
933 cluster_locked = cluster; in write_cache_extent_entries()
935 node = rb_first(&cluster->root); in write_cache_extent_entries()
936 cluster = NULL; in write_cache_extent_entries()
956 if (!node && cluster) { in write_cache_extent_entries()
957 node = rb_first(&cluster->root); in write_cache_extent_entries()
958 cluster_locked = cluster; in write_cache_extent_entries()
960 cluster = NULL; in write_cache_extent_entries()
[all …]
Dfree-space-cache.h114 struct btrfs_free_cluster *cluster,
116 void btrfs_init_free_cluster(struct btrfs_free_cluster *cluster);
118 struct btrfs_free_cluster *cluster, u64 bytes,
122 struct btrfs_free_cluster *cluster);
Drelocation.c169 struct file_extent_cluster cluster; member
3052 struct file_extent_cluster *cluster) argument
3062 BUG_ON(cluster->start != cluster->boundary[0]);
3065 ret = btrfs_check_data_free_space(inode, cluster->start,
3066 cluster->end + 1 - cluster->start);
3070 while (nr < cluster->nr) {
3071 start = cluster->boundary[nr] - offset;
3072 if (nr + 1 < cluster->nr)
3073 end = cluster->boundary[nr + 1] - 1 - offset;
3075 end = cluster->end - offset;
[all …]
Dextent-tree.c6258 struct btrfs_free_cluster *cluster = NULL; in unpin_extent_range() local
6274 cluster = fetch_cluster_info(root, in unpin_extent_range()
6299 if (cluster && cluster->fragmented && in unpin_extent_range()
6301 spin_lock(&cluster->lock); in unpin_extent_range()
6302 cluster->fragmented = 0; in unpin_extent_range()
6303 spin_unlock(&cluster->lock); in unpin_extent_range()
6972 struct btrfs_free_cluster *cluster, in btrfs_lock_cluster() argument
6978 spin_lock(&cluster->refill_lock); in btrfs_lock_cluster()
6980 if (used_bg == cluster->block_group) in btrfs_lock_cluster()
6987 used_bg = cluster->block_group; in btrfs_lock_cluster()
[all …]
Dioctl.c1280 unsigned long cluster = max_cluster; in btrfs_defrag_file() local
1383 cluster = (PAGE_CACHE_ALIGN(defrag_end) >> in btrfs_defrag_file()
1385 cluster = min(cluster, max_cluster); in btrfs_defrag_file()
1387 cluster = max_cluster; in btrfs_defrag_file()
1390 if (i + cluster > ra_index) { in btrfs_defrag_file()
1393 cluster); in btrfs_defrag_file()
1394 ra_index += cluster; in btrfs_defrag_file()
1400 ret = cluster_pages_for_defrag(inode, pages, i, cluster); in btrfs_defrag_file()
/fs/gfs2/
DKconfig8 A cluster filesystem.
10 Allows a cluster of computers to simultaneously use a block device
16 machine show up immediately on all other machines in the cluster.
18 To use the GFS2 filesystem in a cluster, you will need to enable
20 be found here: http://sources.redhat.com/cluster
34 in a cluster environment.
Dlock_dlm.c1188 char cluster[GFS2_LOCKNAME_LEN]; in gdlm_mount() local
1222 memset(cluster, 0, sizeof(cluster)); in gdlm_mount()
1223 memcpy(cluster, table, strlen(table) - strlen(fsname)); in gdlm_mount()
1232 error = dlm_new_lockspace(fsname, cluster, flags, GDLM_LVB_SIZE, in gdlm_mount()
/fs/ocfs2/
Dresize.c62 u32 cluster, lgd_cluster; in ocfs2_calc_new_backup_super() local
67 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in ocfs2_calc_new_backup_super()
69 gd_blkno = ocfs2_which_cluster_group(inode, cluster); in ocfs2_calc_new_backup_super()
78 if (lgd_cluster >= cluster) in ocfs2_calc_new_backup_super()
82 ocfs2_set_bit(cluster % cl_cpg, in ocfs2_calc_new_backup_super()
85 ocfs2_clear_bit(cluster % cl_cpg, in ocfs2_calc_new_backup_super()
189 u32 cluster; in update_backups() local
198 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in update_backups()
199 if (cluster > clusters) in update_backups()
431 u32 cluster = ocfs2_blocks_to_clusters(inode->i_sb, input->group); in ocfs2_verify_group_and_input() local
[all …]
DKconfig10 OCFS2 is a general purpose extent based shared disk cluster file
33 O2CB is limited to maintaining a cluster for OCFS2 file systems.
34 It cannot manage any other cluster applications.
46 userspace cluster manager, say Y here.
DMakefile52 obj-$(CONFIG_OCFS2_FS) += cluster/
Dioctl.c448 unsigned int offset = 0, cluster, chunk; in ocfs2_info_freefrag_scan_chain() local
497 for (cluster = 0; cluster < num_clusters; cluster++) { in ocfs2_info_freefrag_scan_chain()
Dextent_map.h44 void ocfs2_extent_map_trunc(struct inode *inode, unsigned int cluster);
Dsuballoc.h193 u64 ocfs2_which_cluster_group(struct inode *inode, u32 cluster);
Dsuballoc.c2232 u32 cluster = 0; in ocfs2_desc_bitmap_to_cluster_off() local
2237 cluster = ocfs2_blocks_to_clusters(inode->i_sb, bg_blkno); in ocfs2_desc_bitmap_to_cluster_off()
2238 cluster += (u32) bg_bit_off; in ocfs2_desc_bitmap_to_cluster_off()
2239 return cluster; in ocfs2_desc_bitmap_to_cluster_off()
2244 u64 ocfs2_which_cluster_group(struct inode *inode, u32 cluster) in ocfs2_which_cluster_group() argument
2251 group_no = cluster / osb->bitmap_cpg; in ocfs2_which_cluster_group()
Dfile.c1552 u32 cluster, p_cluster, nr_clusters; in ocfs2_zeroout_partial_cluster() local
1565 cluster = ocfs2_bytes_to_clusters(sb, start); in ocfs2_zeroout_partial_cluster()
1566 ret = ocfs2_get_clusters(inode, cluster, &p_cluster, in ocfs2_zeroout_partial_cluster()
1573 offset = start_block - ocfs2_clusters_to_blocks(sb, cluster); in ocfs2_zeroout_partial_cluster()
/fs/dlm/
Dlockspace.c422 static int new_lockspace(const char *name, const char *cluster, in new_lockspace() argument
454 if (dlm_config.ci_recover_callbacks && cluster && in new_lockspace()
455 strncmp(cluster, dlm_config.ci_cluster_name, DLM_LOCKSPACE_LEN)) { in new_lockspace()
457 dlm_config.ci_cluster_name, cluster); in new_lockspace()
692 int dlm_new_lockspace(const char *name, const char *cluster, in dlm_new_lockspace() argument
705 error = new_lockspace(name, cluster, flags, lvblen, ops, ops_arg, in dlm_new_lockspace()
/fs/ext4/
Dmballoc.c2798 ext4_group_t block_group, ext4_grpblk_t cluster, int count, in ext4_issue_discard() argument
2803 discard_block = (EXT4_C2B(EXT4_SB(sb), cluster) + in ext4_issue_discard()
4614 ext4_grpblk_t cluster; in ext4_mb_free_metadata() local
4627 cluster = new_entry->efd_start_cluster; in ext4_mb_free_metadata()
4641 if (cluster < entry->efd_start_cluster) in ext4_mb_free_metadata()
4643 else if (cluster >= (entry->efd_start_cluster + entry->efd_count)) in ext4_mb_free_metadata()
4648 EXT4_C2B(sbi, cluster), in ext4_mb_free_metadata()

12