Home
last modified time | relevance | path

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

12

/fs/ocfs2/cluster/
Dnodemanager.c49 struct o2nm_cluster *cluster = o2nm_single_cluster; in o2nm_configured_node_map() local
51 BUG_ON(bytes < (sizeof(cluster->cl_nodes_bitmap))); in o2nm_configured_node_map()
53 if (cluster == NULL) in o2nm_configured_node_map()
56 read_lock(&cluster->cl_nodes_lock); in o2nm_configured_node_map()
57 bitmap_copy(map, cluster->cl_nodes_bitmap, O2NM_MAX_NODES); in o2nm_configured_node_map()
58 read_unlock(&cluster->cl_nodes_lock); in o2nm_configured_node_map()
64 static struct o2nm_node *o2nm_node_ip_tree_lookup(struct o2nm_cluster *cluster, in o2nm_node_ip_tree_lookup() argument
69 struct rb_node **p = &cluster->cl_node_ip_tree.rb_node; in o2nm_node_ip_tree_lookup()
102 struct o2nm_cluster *cluster = o2nm_single_cluster; in o2nm_get_node_by_ip() local
104 if (cluster == NULL) in o2nm_get_node_by_ip()
[all …]
/fs/fat/
Dcache.c225 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) in fat_get_cluster() argument
244 if (cluster == 0) in fat_get_cluster()
247 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { in fat_get_cluster()
256 while (*fclus < cluster) { in fat_get_cluster()
291 static int fat_bmap_cluster(struct inode *inode, int cluster) in fat_bmap_cluster() argument
299 ret = fat_get_cluster(inode, cluster, &fclus, &dclus); in fat_bmap_cluster()
316 int cluster, offset; in fat_get_mapped_cluster() local
318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster()
320 cluster = fat_bmap_cluster(inode, cluster); in fat_get_mapped_cluster()
321 if (cluster < 0) in fat_get_mapped_cluster()
[all …]
Dfat.h288 int cluster = le16_to_cpu(de->start); in fat_get_start() local
290 cluster |= (le16_to_cpu(de->starthi) << 16); in fat_get_start()
291 return cluster; in fat_get_start()
294 static inline void fat_set_start(struct msdos_dir_entry *de, int cluster) in fat_set_start() argument
296 de->start = cpu_to_le16(cluster); in fat_set_start()
297 de->starthi = cpu_to_le16(cluster >> 16); in fat_set_start()
316 extern int fat_get_cluster(struct inode *inode, int cluster,
390 extern int fat_alloc_clusters(struct inode *inode, int *cluster,
392 extern int fat_free_clusters(struct inode *inode, int cluster);
Dfatent.c466 int fat_alloc_clusters(struct inode *inode, int *cluster, int nr_cluster) in fat_alloc_clusters() argument
513 cluster[idx_clus] = entry; in fat_alloc_clusters()
549 fat_free_clusters(inode, cluster[0]); in fat_alloc_clusters()
554 int fat_free_clusters(struct inode *inode, int cluster) in fat_free_clusters() argument
562 int first_cl = cluster, dirty_fsinfo = 0; in fat_free_clusters()
568 cluster = fat_ent_read(inode, &fatent, cluster); in fat_free_clusters()
569 if (cluster < 0) { in fat_free_clusters()
570 err = cluster; in fat_free_clusters()
572 } else if (cluster == FAT_ENT_FREE) { in fat_free_clusters()
585 if (cluster != fatent.entry + 1) { in fat_free_clusters()
[all …]
Ddir.c1142 int err, cluster; in fat_alloc_new_dir() local
1144 err = fat_alloc_clusters(dir, &cluster, 1); in fat_alloc_new_dir()
1148 blknr = fat_clus_to_blknr(sbi, cluster); in fat_alloc_new_dir()
1177 fat_set_start(&de[0], cluster); in fat_alloc_new_dir()
1189 return cluster; in fat_alloc_new_dir()
1192 fat_free_clusters(dir, cluster); in fat_alloc_new_dir()
1207 int err, i, n, offset, cluster[2]; in fat_add_new_entries() local
1218 err = fat_alloc_clusters(dir, cluster, *nr_cluster); in fat_add_new_entries()
1229 start_blknr = blknr = fat_clus_to_blknr(sbi, cluster[i]); in fat_add_new_entries()
1267 return cluster[0]; in fat_add_new_entries()
[all …]
Dnamei_msdos.c228 int is_dir, int is_hid, int cluster, in msdos_add_entry() argument
247 fat_set_start(&de, cluster); in msdos_add_entry()
350 int err, is_hid, cluster; in msdos_mkdir() local
367 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir()
368 if (cluster < 0) { in msdos_mkdir()
369 err = cluster; in msdos_mkdir()
372 err = msdos_add_entry(dir, msdos_name, 1, is_hid, cluster, &ts, &sinfo); in msdos_mkdir()
395 fat_free_clusters(dir, cluster); in msdos_mkdir()
Dnamei_vfat.c580 int len, int is_dir, int cluster, in vfat_build_slots() argument
649 fat_set_start(de, cluster); in vfat_build_slots()
657 int is_dir, int cluster, struct timespec64 *ts, in vfat_add_entry() argument
672 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
854 int err, cluster; in vfat_mkdir() local
859 cluster = fat_alloc_new_dir(dir, &ts); in vfat_mkdir()
860 if (cluster < 0) { in vfat_mkdir()
861 err = cluster; in vfat_mkdir()
864 err = vfat_add_entry(dir, &dentry->d_name, 1, cluster, &ts, &sinfo); in vfat_mkdir()
886 fat_free_clusters(dir, cluster); in vfat_mkdir()
/fs/btrfs/
Dfree-space-cache.c1076 struct btrfs_free_cluster *cluster = NULL; in write_cache_extent_entries() local
1083 cluster = list_entry(block_group->cluster_list.next, in write_cache_extent_entries()
1088 if (!node && cluster) { in write_cache_extent_entries()
1089 cluster_locked = cluster; in write_cache_extent_entries()
1091 node = rb_first(&cluster->root); in write_cache_extent_entries()
1092 cluster = NULL; in write_cache_extent_entries()
1112 if (!node && cluster) { in write_cache_extent_entries()
1113 node = rb_first(&cluster->root); in write_cache_extent_entries()
1114 cluster_locked = cluster; in write_cache_extent_entries()
1116 cluster = NULL; in write_cache_extent_entries()
[all …]
Drelocation.c139 struct file_extent_cluster cluster; member
2833 struct file_extent_cluster *cluster) in prealloc_file_extent_cluster() argument
2843 u64 prealloc_start = cluster->start - offset; in prealloc_file_extent_cluster()
2844 u64 prealloc_end = cluster->end - offset; in prealloc_file_extent_cluster()
2906 BUG_ON(cluster->start != cluster->boundary[0]); in prealloc_file_extent_cluster()
2913 for (nr = 0; nr < cluster->nr; nr++) { in prealloc_file_extent_cluster()
2916 start = cluster->boundary[nr] - offset; in prealloc_file_extent_cluster()
2917 if (nr + 1 < cluster->nr) in prealloc_file_extent_cluster()
2918 end = cluster->boundary[nr + 1] - 1 - offset; in prealloc_file_extent_cluster()
2920 end = cluster->end - offset; in prealloc_file_extent_cluster()
[all …]
Dfree-space-cache.h135 struct btrfs_free_cluster *cluster,
137 void btrfs_init_free_cluster(struct btrfs_free_cluster *cluster);
139 struct btrfs_free_cluster *cluster, u64 bytes,
143 struct btrfs_free_cluster *cluster);
Dextent-tree.c2697 struct btrfs_free_cluster *cluster = NULL; in unpin_extent_range() local
2713 cluster = fetch_cluster_info(fs_info, in unpin_extent_range()
2735 if (cluster && cluster->fragmented && in unpin_extent_range()
2737 spin_lock(&cluster->lock); in unpin_extent_range()
2738 cluster->fragmented = 0; in unpin_extent_range()
2739 spin_unlock(&cluster->lock); in unpin_extent_range()
3454 struct btrfs_free_cluster *cluster, in btrfs_lock_cluster() argument
3456 __acquires(&cluster->refill_lock) in btrfs_lock_cluster()
3460 spin_lock(&cluster->refill_lock); in btrfs_lock_cluster()
3462 used_bg = cluster->block_group; in btrfs_lock_cluster()
[all …]
Dblock-group.c1055 struct btrfs_free_cluster *cluster; in btrfs_remove_block_group() local
1082 cluster = &fs_info->data_alloc_cluster; in btrfs_remove_block_group()
1083 spin_lock(&cluster->refill_lock); in btrfs_remove_block_group()
1084 btrfs_return_cluster_to_free_space(block_group, cluster); in btrfs_remove_block_group()
1085 spin_unlock(&cluster->refill_lock); in btrfs_remove_block_group()
1091 cluster = &fs_info->meta_alloc_cluster; in btrfs_remove_block_group()
1092 spin_lock(&cluster->refill_lock); in btrfs_remove_block_group()
1093 btrfs_return_cluster_to_free_space(block_group, cluster); in btrfs_remove_block_group()
1094 spin_unlock(&cluster->refill_lock); in btrfs_remove_block_group()
/fs/gfs2/
DKconfig11 A cluster filesystem.
13 Allows a cluster of computers to simultaneously use a block device
19 machine show up immediately on all other machines in the cluster.
21 To use the GFS2 filesystem in a cluster, you will need to enable
23 be found here: http://sources.redhat.com/cluster
37 in a cluster environment.
Dlock_dlm.c1271 char cluster[GFS2_LOCKNAME_LEN]; in gdlm_mount() local
1305 memset(cluster, 0, sizeof(cluster)); in gdlm_mount()
1306 memcpy(cluster, table, strlen(table) - strlen(fsname)); in gdlm_mount()
1315 error = dlm_new_lockspace(fsname, cluster, flags, GDLM_LVB_SIZE, in gdlm_mount()
/fs/ocfs2/
Dresize.c46 u32 cluster, lgd_cluster; in ocfs2_calc_new_backup_super() local
51 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in ocfs2_calc_new_backup_super()
53 gd_blkno = ocfs2_which_cluster_group(inode, cluster); in ocfs2_calc_new_backup_super()
62 if (lgd_cluster >= cluster) in ocfs2_calc_new_backup_super()
66 ocfs2_set_bit(cluster % cl_cpg, in ocfs2_calc_new_backup_super()
69 ocfs2_clear_bit(cluster % cl_cpg, in ocfs2_calc_new_backup_super()
173 u32 cluster; in update_backups() local
182 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); in update_backups()
183 if (cluster >= clusters) in update_backups()
415 u32 cluster = ocfs2_blocks_to_clusters(inode->i_sb, input->group); in ocfs2_verify_group_and_input() local
[all …]
DKconfig13 OCFS2 is a general purpose extent based shared disk cluster file
36 O2CB is limited to maintaining a cluster for OCFS2 file systems.
37 It cannot manage any other cluster applications.
49 userspace cluster manager, say Y here.
Dioctl.c446 unsigned int offset = 0, cluster, chunk; in ocfs2_info_freefrag_scan_chain() local
495 for (cluster = 0; cluster < num_clusters; cluster++) { in ocfs2_info_freefrag_scan_chain()
DMakefile52 obj-$(CONFIG_OCFS2_FS) += cluster/
Dextent_map.h29 void ocfs2_extent_map_trunc(struct inode *inode, unsigned int cluster);
Dsuballoc.h177 u64 ocfs2_which_cluster_group(struct inode *inode, u32 cluster);
/fs/dlm/
Dlockspace.c404 static int new_lockspace(const char *name, const char *cluster, in new_lockspace() argument
436 if (!cluster) in new_lockspace()
440 if (dlm_config.ci_recover_callbacks && cluster && in new_lockspace()
441 strncmp(cluster, dlm_config.ci_cluster_name, DLM_LOCKSPACE_LEN)) { in new_lockspace()
444 dlm_config.ci_cluster_name, cluster); in new_lockspace()
679 static int __dlm_new_lockspace(const char *name, const char *cluster, in __dlm_new_lockspace() argument
693 error = new_lockspace(name, cluster, flags, lvblen, ops, ops_arg, in __dlm_new_lockspace()
709 int dlm_new_lockspace(const char *name, const char *cluster, uint32_t flags, in dlm_new_lockspace() argument
714 return __dlm_new_lockspace(name, cluster, flags | DLM_LSFL_FS, lvblen, in dlm_new_lockspace()
718 int dlm_new_user_lockspace(const char *name, const char *cluster, in dlm_new_user_lockspace() argument
[all …]
Dlockspace.h30 int dlm_new_user_lockspace(const char *name, const char *cluster,
/fs/exfat/
Dcache.c236 int exfat_get_cluster(struct inode *inode, unsigned int cluster, in exfat_get_cluster() argument
261 if (cluster == 0 || *dclus == EXFAT_EOF_CLUSTER) in exfat_get_cluster()
266 if (exfat_cache_lookup(inode, cluster, &cid, fclus, dclus) == in exfat_get_cluster()
278 if (*fclus == cluster) in exfat_get_cluster()
281 while (*fclus < cluster) { in exfat_get_cluster()
Dinode.c275 unsigned int cluster, sec_offset; in exfat_get_block() local
287 &cluster, create); in exfat_get_block()
296 if (cluster == EXFAT_EOF_CLUSTER) in exfat_get_block()
302 phys = exfat_cluster_to_sector(sbi, cluster) + sec_offset; in exfat_get_block()
/fs/ntfs3/
DKconfig22 If activated 64 bits per clusters you will be able to use 4k cluster

12