/fs/nilfs2/ |
D | cpfile.c | 71 void *kaddr, in nilfs_cpfile_block_add_valid_checkpoints() argument 74 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_add_valid_checkpoints() 85 void *kaddr, in nilfs_cpfile_block_sub_valid_checkpoints() argument 88 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_sub_valid_checkpoints() 100 void *kaddr) in nilfs_cpfile_block_get_header() argument 102 return kaddr + bh_offset(bh); in nilfs_cpfile_block_get_header() 108 void *kaddr) in nilfs_cpfile_block_get_checkpoint() argument 110 return kaddr + bh_offset(bh) + nilfs_cpfile_get_offset(cpfile, cno) * in nilfs_cpfile_block_get_checkpoint() 116 void *kaddr) in nilfs_cpfile_block_init() argument 118 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_init() [all …]
|
D | dat.c | 79 void *kaddr; in nilfs_dat_commit_alloc() local 81 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_alloc() 83 req->pr_entry_bh, kaddr); in nilfs_dat_commit_alloc() 87 kunmap_atomic(kaddr); in nilfs_dat_commit_alloc() 103 void *kaddr; in nilfs_dat_commit_free() local 105 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_free() 107 req->pr_entry_bh, kaddr); in nilfs_dat_commit_free() 111 kunmap_atomic(kaddr); in nilfs_dat_commit_free() 130 void *kaddr; in nilfs_dat_commit_start() local 132 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_start() [all …]
|
D | sufile.c | 75 struct buffer_head *bh, void *kaddr) in nilfs_sufile_block_get_segment_usage() argument 77 return kaddr + bh_offset(bh) + in nilfs_sufile_block_get_segment_usage() 108 void *kaddr; in nilfs_sufile_mod_counter() local 110 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_mod_counter() 111 header = kaddr + bh_offset(header_bh); in nilfs_sufile_mod_counter() 114 kunmap_atomic(kaddr); in nilfs_sufile_mod_counter() 310 void *kaddr; in nilfs_sufile_alloc() local 319 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc() 320 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc() 322 kunmap_atomic(kaddr); in nilfs_sufile_alloc() [all …]
|
D | dir.c | 121 char *kaddr = page_address(page); in nilfs_check_page() local 135 p = (struct nilfs_dir_entry *)(kaddr + offs); in nilfs_check_page() 179 p = (struct nilfs_dir_entry *)(kaddr + offs); in nilfs_check_page() 276 char *kaddr, *limit; in nilfs_readdir() local 285 kaddr = page_address(page); in nilfs_readdir() 286 de = (struct nilfs_dir_entry *)(kaddr + offset); in nilfs_readdir() 287 limit = kaddr + nilfs_last_byte(inode, n) - in nilfs_readdir() 348 char *kaddr; in nilfs_find_entry() local 352 kaddr = page_address(page); in nilfs_find_entry() 353 de = (struct nilfs_dir_entry *)kaddr; in nilfs_find_entry() [all …]
|
D | ifile.c | 103 void *kaddr; in nilfs_ifile_delete_inode() local 118 kaddr = kmap_atomic(req.pr_entry_bh->b_page); in nilfs_ifile_delete_inode() 120 req.pr_entry_bh, kaddr); in nilfs_ifile_delete_inode() 122 kunmap_atomic(kaddr); in nilfs_ifile_delete_inode()
|
/fs/btrfs/ |
D | struct-funcs.c | 49 char *kaddr; \ 58 if (token->kaddr && token->offset <= offset && \ 60 kaddr = token->kaddr; \ 61 p = kaddr + part_offset - token->offset; \ 66 &kaddr, &map_start, &map_len); \ 73 p = kaddr + part_offset - map_start; \ 75 token->kaddr = kaddr; \ 86 char *kaddr; \ 93 &kaddr, &map_start, &map_len); \ 100 p = kaddr + part_offset - map_start; \ [all …]
|
D | zlib.c | 333 char *kaddr; in zlib_decompress() local 390 kaddr = kmap_atomic(dest_page); in zlib_decompress() 391 memcpy(kaddr + pg_offset, workspace->buf + buf_offset, bytes); in zlib_decompress() 392 kunmap_atomic(kaddr); in zlib_decompress() 414 kaddr = kmap_atomic(dest_page); in zlib_decompress() 415 memset(kaddr + pg_offset, 0, destlen - pg_offset); in zlib_decompress() 416 kunmap_atomic(kaddr); in zlib_decompress()
|
/fs/ext2/ |
D | dir.c | 120 char *kaddr = page_address(page); in ext2_check_page() local 135 p = (ext2_dirent *)(kaddr + offs); in ext2_check_page() 187 p = (ext2_dirent *)(kaddr + offs); in ext2_check_page() 283 char *kaddr, *limit; in ext2_readdir() local 294 kaddr = page_address(page); in ext2_readdir() 297 offset = ext2_validate_entry(kaddr, offset, chunk_mask); in ext2_readdir() 303 de = (ext2_dirent *)(kaddr+offset); in ext2_readdir() 304 limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); in ext2_readdir() 364 char *kaddr; in ext2_find_entry() local 367 kaddr = page_address(page); in ext2_find_entry() [all …]
|
/fs/sysv/ |
D | dir.c | 81 char *kaddr, *limit; in sysv_readdir() local 87 kaddr = (char *)page_address(page); in sysv_readdir() 88 de = (struct sysv_dir_entry *)(kaddr+offset); in sysv_readdir() 89 limit = kaddr + PAGE_SIZE - SYSV_DIRSIZE; in sysv_readdir() 145 char *kaddr; in sysv_find_entry() local 148 kaddr = (char*)page_address(page); in sysv_find_entry() 149 de = (struct sysv_dir_entry *) kaddr; in sysv_find_entry() 150 kaddr += PAGE_SIZE - SYSV_DIRSIZE; in sysv_find_entry() 151 for ( ; (char *) de <= kaddr ; de++) { in sysv_find_entry() 182 char *kaddr; in sysv_add_link() local [all …]
|
/fs/minix/ |
D | dir.c | 100 char *p, *kaddr, *limit; in minix_readdir() local 105 kaddr = (char *)page_address(page); in minix_readdir() 106 p = kaddr+offset; in minix_readdir() 107 limit = kaddr + minix_last_byte(inode, n) - chunk_size; in minix_readdir() 168 char *kaddr, *limit; in minix_find_entry() local 174 kaddr = (char*)page_address(page); in minix_find_entry() 175 limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; in minix_find_entry() 176 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_find_entry() 210 char *kaddr, *p; in minix_add_link() local 231 kaddr = (char*)page_address(page); in minix_add_link() [all …]
|
/fs/ufs/ |
D | dir.c | 114 char *kaddr = page_address(page); in ufs_check_page() local 129 p = (struct ufs_dir_entry *)(kaddr + offs); in ufs_check_page() 179 p = (struct ufs_dir_entry *)(kaddr + offs); in ufs_check_page() 277 char *kaddr; in ufs_find_entry() local 280 kaddr = page_address(page); in ufs_find_entry() 281 de = (struct ufs_dir_entry *) kaddr; in ufs_find_entry() 282 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry() 283 while ((char *) de <= kaddr) { in ufs_find_entry() 318 char *kaddr; in ufs_add_link() local 337 kaddr = page_address(page); in ufs_add_link() [all …]
|
/fs/ntfs/ |
D | bitmap.c | 40 u8 *kaddr; in __ntfs_bitmap_set_bits_in_run() local 68 kaddr = page_address(page); in __ntfs_bitmap_set_bits_in_run() 78 u8 *byte = kaddr + pos; in __ntfs_bitmap_set_bits_in_run() 98 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run() 116 kaddr = page_address(page); in __ntfs_bitmap_set_bits_in_run() 122 memset(kaddr, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run() 136 byte = kaddr + len; in __ntfs_bitmap_set_bits_in_run()
|
D | dir.c | 82 u8 *kaddr; in ntfs_lookup_inode_by_name() local 316 kaddr = (u8*)page_address(page); in ntfs_lookup_inode_by_name() 319 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_lookup_inode_by_name() 322 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) { in ntfs_lookup_inode_by_name() 355 if (index_end > kaddr + PAGE_SIZE) { in ntfs_lookup_inode_by_name() 636 u8 *kaddr; 794 kaddr = (u8*)page_address(page); 797 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << 800 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) { 833 if (index_end > kaddr + PAGE_SIZE) { [all …]
|
D | aops.c | 77 void *kaddr; in ntfs_end_buffer_async_read() local 82 kaddr = kmap_atomic(page); in ntfs_end_buffer_async_read() 83 memset(kaddr + bh_offset(bh) + ofs, 0, in ntfs_end_buffer_async_read() 86 kunmap_atomic(kaddr); in ntfs_end_buffer_async_read() 125 u8 *kaddr; in ntfs_end_buffer_async_read() local 133 kaddr = kmap_atomic(page); in ntfs_end_buffer_async_read() 135 post_read_mst_fixup((NTFS_RECORD*)(kaddr + in ntfs_end_buffer_async_read() 137 kunmap_atomic(kaddr); in ntfs_end_buffer_async_read() 727 u8 *kaddr; in ntfs_write_block() local 731 kaddr = kmap_atomic(page); in ntfs_write_block() [all …]
|
D | index.c | 117 u8 *index_end, *kaddr; in ntfs_index_lookup() local 273 kaddr = (u8*)page_address(page); in ntfs_index_lookup() 276 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_index_lookup() 279 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) { in ntfs_index_lookup() 312 if (index_end > kaddr + PAGE_SIZE) { in ntfs_index_lookup()
|
D | logfile.c | 478 u8 *kaddr = NULL; in ntfs_check_logfile() local 540 kaddr = (u8*)page_address(page) + (pos & ~PAGE_MASK); in ntfs_check_logfile() 546 if (!ntfs_is_empty_recordp((le32*)kaddr)) in ntfs_check_logfile() 554 if (ntfs_is_rcrd_recordp((le32*)kaddr)) in ntfs_check_logfile() 557 if (!ntfs_is_rstr_recordp((le32*)kaddr) && in ntfs_check_logfile() 558 !ntfs_is_chkd_recordp((le32*)kaddr)) { in ntfs_check_logfile() 569 (RESTART_PAGE_HEADER*)kaddr, pos, in ntfs_check_logfile()
|
/fs/erofs/ |
D | zmap.c | 36 void *kaddr; in fill_inode_lazy() local 59 kaddr = kmap_atomic(page); in fill_inode_lazy() 61 h = kaddr + erofs_blkoff(pos); in fill_inode_lazy() 88 kunmap_atomic(kaddr); in fill_inode_lazy() 99 void *kaddr; member 118 if (!m->kaddr) in z_erofs_reload_indexes() 119 m->kaddr = kmap_atomic(mpage); in z_erofs_reload_indexes() 123 if (m->kaddr) { in z_erofs_reload_indexes() 124 kunmap_atomic(m->kaddr); in z_erofs_reload_indexes() 125 m->kaddr = NULL; in z_erofs_reload_indexes() [all …]
|
D | decompressor.c | 39 void *kaddr = NULL; in z_erofs_lz4_prepare_destpages() local 59 if (kaddr) { in z_erofs_lz4_prepare_destpages() 60 if (kaddr + PAGE_SIZE == page_address(page)) in z_erofs_lz4_prepare_destpages() 61 kaddr += PAGE_SIZE; in z_erofs_lz4_prepare_destpages() 63 kaddr = NULL; in z_erofs_lz4_prepare_destpages() 65 kaddr = page_address(page); in z_erofs_lz4_prepare_destpages() 69 kaddr = NULL; in z_erofs_lz4_prepare_destpages() 83 return kaddr ? 1 : 0; in z_erofs_lz4_prepare_destpages()
|
D | xattr.c | 13 void *kaddr; member 25 kunmap_atomic(it->kaddr); in xattr_iter_end() 99 it.kaddr = kmap(it.page); in init_inode_xattrs() 102 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs() 130 it.kaddr = kmap_atomic(it.page); in init_inode_xattrs() 135 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); in init_inode_xattrs() 180 it->kaddr = kmap_atomic(it->page); in xattr_iter_fixup() 207 it->kaddr = kmap_atomic(it->page); in inline_xattr_iter_begin() 233 entry = *(struct erofs_xattr_entry *)(it->kaddr + it->ofs); in xattr_foreach() 272 err = op->name(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach() [all …]
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 93 char *kaddr; in vxfs_find_entry() local 99 kaddr = (char *)page_address(pp); in vxfs_find_entry() 107 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry() 113 de = (struct vxfs_direct *)(kaddr + pg_ofs); in vxfs_find_entry() 242 char *kaddr; in vxfs_readdir() local 250 kaddr = (char *)page_address(pp); in vxfs_readdir() 258 (kaddr + (pos & ~PAGE_MASK)); in vxfs_readdir() 264 de = (struct vxfs_direct *)(kaddr + pg_ofs); in vxfs_readdir()
|
D | vxfs_immed.c | 70 caddr_t kaddr; in vxfs_immed_readpage() local 72 kaddr = kmap(pp); in vxfs_immed_readpage() 73 memcpy(kaddr, vip->vii_immed.vi_immed + offset, PAGE_SIZE); in vxfs_immed_readpage()
|
/fs/udf/ |
D | file.c | 44 char *kaddr; in __udf_adinicb_readpage() local 52 kaddr = kmap_atomic(page); in __udf_adinicb_readpage() 53 memcpy(kaddr, iinfo->i_ext.i_data + iinfo->i_lenEAttr, isize); in __udf_adinicb_readpage() 54 memset(kaddr + isize, 0, PAGE_SIZE - isize); in __udf_adinicb_readpage() 57 kunmap_atomic(kaddr); in __udf_adinicb_readpage() 73 char *kaddr; in udf_adinicb_writepage() local 78 kaddr = kmap_atomic(page); in udf_adinicb_writepage() 79 memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr, kaddr, in udf_adinicb_writepage() 82 kunmap_atomic(kaddr); in udf_adinicb_writepage()
|
/fs/ocfs2/ |
D | symlink.c | 64 void *kaddr; in ocfs2_fast_symlink_readpage() local 76 kaddr = kmap_atomic(page); in ocfs2_fast_symlink_readpage() 77 memcpy(kaddr, link, len + 1); in ocfs2_fast_symlink_readpage() 78 kunmap_atomic(kaddr); in ocfs2_fast_symlink_readpage()
|
D | aops.c | 52 void *kaddr; in ocfs2_symlink_get_block() local 99 kaddr = kmap_atomic(bh_result->b_page); in ocfs2_symlink_get_block() 100 if (!kaddr) { in ocfs2_symlink_get_block() 104 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block() 107 kunmap_atomic(kaddr); in ocfs2_symlink_get_block() 225 void *kaddr; in ocfs2_read_inline_data() local 246 kaddr = kmap_atomic(page); in ocfs2_read_inline_data() 248 memcpy(kaddr, di->id2.i_data.id_data, size); in ocfs2_read_inline_data() 250 memset(kaddr + size, 0, PAGE_SIZE - size); in ocfs2_read_inline_data() 252 kunmap_atomic(kaddr); in ocfs2_read_inline_data() [all …]
|
/fs/gfs2/ |
D | lops.c | 418 void *kaddr = kmap_atomic(page); in gfs2_jhead_pg_srch() local 423 if (!__get_log_header(sdp, kaddr + offset, 0, &lh)) { in gfs2_jhead_pg_srch() 432 kunmap_atomic(kaddr); in gfs2_jhead_pg_srch() 593 void *kaddr; in gfs2_check_magic() local 597 kaddr = kmap_atomic(bh->b_page); in gfs2_check_magic() 598 ptr = kaddr + bh_offset(bh); in gfs2_check_magic() 601 kunmap_atomic(kaddr); in gfs2_check_magic() 666 void *kaddr; in gfs2_before_commit() local 669 kaddr = kmap_atomic(bd2->bd_bh->b_page); in gfs2_before_commit() 670 memcpy(ptr, kaddr + bh_offset(bd2->bd_bh), in gfs2_before_commit() [all …]
|