Lines Matching refs:z
32 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_read_iomap_begin() local
50 iomap->addr = (z->z_sector << SECTOR_SHIFT) + iomap->offset; in zonefs_read_iomap_begin()
69 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_write_iomap_begin() local
74 if (WARN_ON_ONCE(offset + length > z->z_capacity)) in zonefs_write_iomap_begin()
82 if (WARN_ON_ONCE(zonefs_zone_is_seq(z) && !(flags & IOMAP_DIRECT))) in zonefs_write_iomap_begin()
93 iomap->addr = (z->z_sector << SECTOR_SHIFT) + iomap->offset; in zonefs_write_iomap_begin()
97 iomap->length = z->z_capacity - iomap->offset; in zonefs_write_iomap_begin()
130 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_write_map_blocks() local
132 if (WARN_ON_ONCE(zonefs_zone_is_seq(z))) in zonefs_write_map_blocks()
143 z->z_capacity - offset, in zonefs_write_map_blocks()
190 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_file_truncate() local
200 if (!zonefs_zone_is_seq(z)) in zonefs_file_truncate()
205 else if (isize == z->z_capacity) in zonefs_file_truncate()
230 if (z->z_flags & ZONEFS_ZONE_OPEN) { in zonefs_file_truncate()
242 z->z_flags &= ~ZONEFS_ZONE_OPEN; in zonefs_file_truncate()
247 z->z_wpoffset = isize; in zonefs_file_truncate()
391 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_write_check_limits() local
393 loff_t max_size = z->z_capacity; in zonefs_write_check_limits()
417 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_write_checks() local
430 if (zonefs_zone_is_cnv(z)) in zonefs_write_checks()
433 iocb->ki_pos = z->z_wpoffset; in zonefs_write_checks()
460 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_file_dio_write() local
469 if (zonefs_zone_is_seq(z) && !is_sync_kiocb(iocb) && in zonefs_file_dio_write()
492 if (zonefs_zone_is_seq(z)) { in zonefs_file_dio_write()
494 if (iocb->ki_pos != z->z_wpoffset) { in zonefs_file_dio_write()
505 z->z_wpoffset += count; in zonefs_file_dio_write()
528 if (zonefs_zone_is_seq(z)) { in zonefs_file_dio_write()
580 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_file_write_iter() local
589 if (iocb->ki_pos >= z->z_capacity) in zonefs_file_write_iter()
621 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_file_read_iter() local
630 if (iocb->ki_pos >= z->z_capacity) in zonefs_file_read_iter()
679 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_file_splice_read() local
687 if (*ppos >= z->z_capacity) in zonefs_file_splice_read()
729 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_seq_file_write_open() local
747 if (i_size_read(inode) < z->z_capacity) { in zonefs_seq_file_write_open()
754 z->z_flags |= ZONEFS_ZONE_OPEN; in zonefs_seq_file_write_open()
786 struct zonefs_zone *z = zonefs_inode_zone(inode); in zonefs_seq_file_write_close() local
802 if (z->z_flags & ZONEFS_ZONE_OPEN) { in zonefs_seq_file_write_close()
812 if (z->z_flags & ZONEFS_ZONE_OPEN && in zonefs_seq_file_write_close()
816 z->z_sector, ret); in zonefs_seq_file_write_close()
824 z->z_flags &= ~ZONEFS_ZONE_OPEN; in zonefs_seq_file_write_close()