/fs/pstore/ |
D | zone.c | 160 static inline int buffer_datalen(struct pstore_zone *zone) in buffer_datalen() argument 162 return atomic_read(&zone->buffer->datalen); in buffer_datalen() 165 static inline int buffer_start(struct pstore_zone *zone) in buffer_start() argument 167 return atomic_read(&zone->buffer->start); in buffer_start() 175 static ssize_t psz_zone_read_buffer(struct pstore_zone *zone, char *buf, in psz_zone_read_buffer() argument 178 if (!buf || !zone || !zone->buffer) in psz_zone_read_buffer() 180 if (off > zone->buffer_size) in psz_zone_read_buffer() 182 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_buffer() 183 memcpy(buf, zone->buffer->data + off, len); in psz_zone_read_buffer() 187 static int psz_zone_read_oldbuf(struct pstore_zone *zone, char *buf, in psz_zone_read_oldbuf() argument [all …]
|
D | blk.c | 94 dev->zone.name = _##name_; \ 107 if (!dev->zone.total_size) { in __register_pstore_device() 111 if (!dev->zone.read) { in __register_pstore_device() 115 if (!dev->zone.write) { in __register_pstore_device() 133 dev->zone.max_reason = max_reason; in __register_pstore_device() 136 dev->zone.name = KBUILD_MODNAME; in __register_pstore_device() 137 dev->zone.owner = THIS_MODULE; in __register_pstore_device() 139 ret = register_pstore_zone(&dev->zone); in __register_pstore_device() 170 unregister_pstore_zone(&dev->zone); in __unregister_pstore_device() 227 dev->zone.total_size = i_size_read(inode); in __register_pstore_blk() [all …]
|
D | Makefile | 16 pstore_zone-objs += zone.o
|
/fs/btrfs/ |
D | reada.c | 234 struct reada_zone *zone; in reada_find_zone() local 240 zone = NULL; in reada_find_zone() 242 ret = radix_tree_gang_lookup(&dev->reada_zones, (void **)&zone, in reada_find_zone() 244 if (ret == 1 && logical >= zone->start && logical <= zone->end) { in reada_find_zone() 245 kref_get(&zone->refcnt); in reada_find_zone() 247 return zone; in reada_find_zone() 260 zone = kzalloc(sizeof(*zone), GFP_KERNEL); in reada_find_zone() 261 if (!zone) in reada_find_zone() 266 kfree(zone); in reada_find_zone() 270 zone->start = start; in reada_find_zone() [all …]
|
D | zoned.c | 49 static int copy_zone_info_cb(struct blk_zone *zone, unsigned int idx, void *data) in copy_zone_info_cb() argument 53 memcpy(&zones[idx], zone, sizeof(*zone)); in copy_zone_info_cb() 141 u64 zone; in sb_zone_number() local 145 case 0: zone = 0; break; in sb_zone_number() 146 case 1: zone = 1ULL << (BTRFS_SB_LOG_FIRST_SHIFT - shift); break; in sb_zone_number() 147 case 2: zone = 1ULL << (BTRFS_SB_LOG_SECOND_SHIFT - shift); break; in sb_zone_number() 150 ASSERT(zone <= U32_MAX); in sb_zone_number() 152 return (u32)zone; in sb_zone_number() 574 struct blk_zone *zone) in btrfs_get_dev_zone() argument 579 ret = btrfs_get_dev_zones(device, pos, zone, &nr_zones); in btrfs_get_dev_zone() [all …]
|
D | zoned.h | 36 struct blk_zone *zone); 78 struct blk_zone *zone) in btrfs_get_dev_zone() argument
|
/fs/adfs/ |
D | map.c | 159 static int scan_map(struct adfs_sb_info *asb, unsigned int zone, in scan_map() argument 166 dm = asb->s_map + zone; in scan_map() 167 zone = asb->s_map_size; in scan_map() 168 dm_end = asb->s_map + zone; in scan_map() 179 } while (--zone > 0); in scan_map() 202 unsigned int zone; in adfs_map_statfs() local 205 zone = asb->s_map_size; in adfs_map_statfs() 209 } while (--zone > 0); in adfs_map_statfs() 220 unsigned int zone, mapoff; in adfs_map_lookup() local 228 zone = asb->s_map_size >> 1; in adfs_map_lookup() [all …]
|
/fs/zonefs/ |
D | super.c | 281 struct blk_zone *zone, bool warn, in zonefs_check_zone_condition() argument 286 switch (zone->cond) { in zonefs_check_zone_condition() 297 zone->wp = zone->start; in zonefs_check_zone_condition() 313 zone->cond = BLK_ZONE_COND_OFFLINE; in zonefs_check_zone_condition() 315 zone->wp = zone->start; in zonefs_check_zone_condition() 326 return (zone->wp - zone->start) << SECTOR_SHIFT; in zonefs_check_zone_condition() 335 static int zonefs_io_error_cb(struct blk_zone *zone, unsigned int idx, in zonefs_io_error_cb() argument 351 data_size = zonefs_check_zone_condition(inode, zone, true, false); in zonefs_io_error_cb() 353 if (zone->cond != BLK_ZONE_COND_OFFLINE && in zonefs_io_error_cb() 354 zone->cond != BLK_ZONE_COND_READONLY && in zonefs_io_error_cb() [all …]
|
D | zonefs.h | 34 static inline enum zonefs_ztype zonefs_zone_type(struct blk_zone *zone) in zonefs_zone_type() argument 36 if (zone->type == BLK_ZONE_TYPE_CONVENTIONAL) in zonefs_zone_type()
|
/fs/minix/ |
D | bitmap.c | 48 unsigned long bit, zone; in minix_free_block() local 54 zone = block - sbi->s_firstdatazone + 1; in minix_free_block() 55 bit = zone & ((1<<k) - 1); in minix_free_block() 56 zone >>= k; in minix_free_block() 57 if (zone >= sbi->s_zmap_blocks) { in minix_free_block() 61 bh = sbi->s_zmap[zone]; in minix_free_block()
|
/fs/sysv/ |
D | balloc.c | 188 sysv_zone_t zone; in sysv_count_free_blocks() local 191 zone = 0; in sysv_count_free_blocks() 192 while (n && (zone = blocks[--n]) != 0) in sysv_count_free_blocks() 194 if (zone == 0) in sysv_count_free_blocks() 197 block = fs32_to_cpu(sbi, zone); in sysv_count_free_blocks()
|
/fs/ntfs/ |
D | lcnalloc.c | 134 const NTFS_CLUSTER_ALLOCATION_ZONES zone, in ntfs_cluster_alloc() argument 153 zone == MFT_ZONE ? "MFT" : "DATA"); in ntfs_cluster_alloc() 160 BUG_ON(zone < FIRST_ZONE); in ntfs_cluster_alloc() 161 BUG_ON(zone > LAST_ZONE); in ntfs_cluster_alloc() 188 if (zone == DATA_ZONE) in ntfs_cluster_alloc() 199 } else if (zone == DATA_ZONE && zone_start >= vol->mft_zone_start && in ntfs_cluster_alloc() 207 } else if (zone == MFT_ZONE && (zone_start < vol->mft_zone_start || in ntfs_cluster_alloc() 218 if (zone == MFT_ZONE) { in ntfs_cluster_alloc() 682 if (zone == MFT_ZONE || mft_zone_size <= 0) { in ntfs_cluster_alloc()
|
D | lcnalloc.h | 31 const NTFS_CLUSTER_ALLOCATION_ZONES zone,
|
/fs/f2fs/ |
D | segment.c | 2505 if (CURSEG_I(sbi, i)->zone == zoneno) in get_new_segment() 2535 curseg->zone = GET_ZONE_FROM_SEG(sbi, curseg->segno); in reset_curseg() 4767 struct blk_zone *zone) in check_zone_write_pointer() argument 4775 if (zone->type != BLK_ZONE_TYPE_SEQWRITE_REQ) in check_zone_write_pointer() 4778 wp_block = fdev->start_blk + (zone->wp >> log_sectors_per_block); in check_zone_write_pointer() 4781 zone_block = fdev->start_blk + (zone->start >> log_sectors_per_block); in check_zone_write_pointer() 4832 if (last_valid_block + 1 == zone_block && zone->wp != zone->start) { in check_zone_write_pointer() 4838 zone->len >> log_sectors_per_block); in check_zone_write_pointer() 4865 static int report_one_zone_cb(struct blk_zone *zone, unsigned int idx, in report_one_zone_cb() argument 4868 memcpy(data, zone, sizeof(struct blk_zone)); in report_one_zone_cb() [all …]
|
D | segment.h | 325 unsigned int zone; /* current zone number */ member
|
D | super.c | 3718 static int f2fs_report_zone_cb(struct blk_zone *zone, unsigned int idx, in f2fs_report_zone_cb() argument 3722 block_t unusable_blocks = (zone->len - zone->capacity) >> in f2fs_report_zone_cb() 3725 if (zone->type == BLK_ZONE_TYPE_CONVENTIONAL) in f2fs_report_zone_cb()
|
/fs/xfs/libxfs/ |
D | xfs_da_btree.h | 12 struct zone;
|
/fs/affs/ |
D | Changes | 192 zone number was zero, the loop didn't terminate,
|