Home
last modified time | relevance | path

Searched refs:kaddr (Results 1 – 25 of 67) sorted by relevance

123

/fs/nilfs2/
Dcpfile.c71 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 …]
Dsufile.c75 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()
309 void *kaddr; in nilfs_sufile_alloc() local
318 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
319 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
321 kunmap_atomic(kaddr); in nilfs_sufile_alloc()
[all …]
Ddat.c92 void *kaddr; in nilfs_dat_commit_alloc() local
94 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_alloc()
96 req->pr_entry_bh, kaddr); in nilfs_dat_commit_alloc()
100 kunmap_atomic(kaddr); in nilfs_dat_commit_alloc()
116 void *kaddr; in nilfs_dat_commit_free() local
118 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_free()
120 req->pr_entry_bh, kaddr); in nilfs_dat_commit_free()
124 kunmap_atomic(kaddr); in nilfs_dat_commit_free()
146 void *kaddr; in nilfs_dat_commit_start() local
148 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_start()
[all …]
Ddir.c121 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 …]
Difile.c103 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/
Dstruct-funcs.c68 ASSERT(token->kaddr); \
72 return get_unaligned_le##bits(token->kaddr + oip); \
74 token->kaddr = page_address(token->eb->pages[idx]); \
77 return get_unaligned_le##bits(token->kaddr + oip); \
79 memcpy(lebytes, token->kaddr + oip, part); \
80 token->kaddr = page_address(token->eb->pages[idx + 1]); \
82 memcpy(lebytes + part, token->kaddr, size - part); \
91 char *kaddr = page_address(eb->pages[idx]); \
98 return get_unaligned_le##bits(kaddr + oip); \
100 memcpy(lebytes, kaddr + oip, part); \
[all …]
Dlzo.c293 char *kaddr; in copy_compressed_segment() local
301 kaddr = kmap(cur_page); in copy_compressed_segment()
303 kaddr + offset_in_page(*cur_in), in copy_compressed_segment()
316 char *kaddr; in lzo_decompress_bio() local
325 kaddr = kmap(cb->compressed_pages[0]); in lzo_decompress_bio()
326 len_in = read_compress_length(kaddr); in lzo_decompress_bio()
361 kaddr = kmap(cur_page); in lzo_decompress_bio()
362 seg_len = read_compress_length(kaddr + offset_in_page(cur_in)); in lzo_decompress_bio()
421 char *kaddr; in lzo_decompress() local
459 kaddr = kmap_local_page(dest_page); in lzo_decompress()
[all …]
/fs/ext2/
Ddir.c109 static bool ext2_check_page(struct page *page, int quiet, char *kaddr) in ext2_check_page() argument
128 p = (ext2_dirent *)(kaddr + offs); in ext2_check_page()
180 p = (ext2_dirent *)(kaddr + offs); in ext2_check_page()
284 char *kaddr, *limit; in ext2_readdir() local
286 struct page *page = ext2_get_page(inode, n, 0, (void **)&kaddr); 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()
309 ext2_put_page(page, kaddr); in ext2_readdir()
321 ext2_put_page(page, kaddr); in ext2_readdir()
[all …]
/fs/sysv/
Ddir.c81 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/
Ddir.c100 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/
Ddir.c114 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/
Dbitmap.c40 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()
Ddir.c83 u8 *kaddr; in ntfs_lookup_inode_by_name() local
317 kaddr = (u8*)page_address(page); in ntfs_lookup_inode_by_name()
320 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_lookup_inode_by_name()
323 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) { in ntfs_lookup_inode_by_name()
356 if (index_end > kaddr + PAGE_SIZE) { in ntfs_lookup_inode_by_name()
637 u8 *kaddr;
795 kaddr = (u8*)page_address(page);
798 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn <<
801 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) {
834 if (index_end > kaddr + PAGE_SIZE) {
[all …]
Daops.c77 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()
123 u8 *kaddr; in ntfs_end_buffer_async_read() local
131 kaddr = kmap_atomic(page); in ntfs_end_buffer_async_read()
133 post_read_mst_fixup((NTFS_RECORD*)(kaddr + in ntfs_end_buffer_async_read()
135 kunmap_atomic(kaddr); in ntfs_end_buffer_async_read()
724 u8 *kaddr; in ntfs_write_block() local
728 kaddr = kmap_atomic(page); in ntfs_write_block()
[all …]
Dindex.c117 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()
Dlogfile.c478 u8 *kaddr = NULL; in ntfs_check_logfile() local
539 kaddr = (u8*)page_address(page) + (pos & ~PAGE_MASK); in ntfs_check_logfile()
545 if (!ntfs_is_empty_recordp((le32*)kaddr)) in ntfs_check_logfile()
553 if (ntfs_is_rcrd_recordp((le32*)kaddr)) in ntfs_check_logfile()
556 if (!ntfs_is_rstr_recordp((le32*)kaddr) && in ntfs_check_logfile()
557 !ntfs_is_chkd_recordp((le32*)kaddr)) { in ntfs_check_logfile()
568 (RESTART_PAGE_HEADER*)kaddr, pos, in ntfs_check_logfile()
/fs/freevxfs/
Dvxfs_lookup.c93 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()
Dvxfs_immed.c70 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/
Dfile.c44 char *kaddr; in __udf_adinicb_readpage() local
52 kaddr = kmap_atomic(page); in __udf_adinicb_readpage()
53 memcpy(kaddr, iinfo->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_data + iinfo->i_lenEAttr, kaddr, i_size_read(inode)); in udf_adinicb_writepage()
81 kunmap_atomic(kaddr); in udf_adinicb_writepage()
/fs/erofs/
Dzmap.c34 void *kaddr; in z_erofs_fill_inode_lazy() local
64 kaddr = kmap_atomic(page); in z_erofs_fill_inode_lazy()
66 h = kaddr + erofs_blkoff(pos); in z_erofs_fill_inode_lazy()
101 kunmap_atomic(kaddr); in z_erofs_fill_inode_lazy()
112 void *kaddr; member
131 if (!m->kaddr) in z_erofs_reload_indexes()
132 m->kaddr = kmap_atomic(mpage); in z_erofs_reload_indexes()
136 if (m->kaddr) { in z_erofs_reload_indexes()
137 kunmap_atomic(m->kaddr); in z_erofs_reload_indexes()
138 m->kaddr = NULL; in z_erofs_reload_indexes()
[all …]
Dxattr.c12 void *kaddr; member
24 kunmap_atomic(it->kaddr); in xattr_iter_end()
104 it.kaddr = kmap(it.page); in init_inode_xattrs()
107 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs()
135 it.kaddr = kmap_atomic(it.page); in init_inode_xattrs()
140 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); in init_inode_xattrs()
187 it->kaddr = kmap_atomic(it->page); in xattr_iter_fixup()
214 it->kaddr = kmap_atomic(it->page); in inline_xattr_iter_begin()
240 entry = *(struct erofs_xattr_entry *)(it->kaddr + it->ofs); in xattr_foreach()
279 err = op->name(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach()
[all …]
Ddecompressor.c69 void *kaddr = NULL; in z_erofs_lz4_prepare_dstpages() local
91 kaddr = page_address(page); in z_erofs_lz4_prepare_dstpages()
94 if (kaddr && in z_erofs_lz4_prepare_dstpages()
95 kaddr + PAGE_SIZE == page_address(page)) { in z_erofs_lz4_prepare_dstpages()
96 kaddr += PAGE_SIZE; in z_erofs_lz4_prepare_dstpages()
100 kaddr = NULL; in z_erofs_lz4_prepare_dstpages()
103 kaddr = NULL; in z_erofs_lz4_prepare_dstpages()
116 return kaddr ? 1 : 0; in z_erofs_lz4_prepare_dstpages()
/fs/ocfs2/
Dsymlink.c62 void *kaddr; in ocfs2_fast_symlink_readpage() local
74 kaddr = kmap_atomic(page); in ocfs2_fast_symlink_readpage()
75 memcpy(kaddr, link, len + 1); in ocfs2_fast_symlink_readpage()
76 kunmap_atomic(kaddr); in ocfs2_fast_symlink_readpage()
Daops.c49 void *kaddr; in ocfs2_symlink_get_block() local
96 kaddr = kmap_atomic(bh_result->b_page); in ocfs2_symlink_get_block()
97 if (!kaddr) { in ocfs2_symlink_get_block()
101 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block()
104 kunmap_atomic(kaddr); in ocfs2_symlink_get_block()
222 void *kaddr; in ocfs2_read_inline_data() local
243 kaddr = kmap_atomic(page); in ocfs2_read_inline_data()
245 memcpy(kaddr, di->id2.i_data.id_data, size); in ocfs2_read_inline_data()
247 memset(kaddr + size, 0, PAGE_SIZE - size); in ocfs2_read_inline_data()
249 kunmap_atomic(kaddr); in ocfs2_read_inline_data()
[all …]
/fs/gfs2/
Dlops.c431 void *kaddr = kmap_atomic(page); in gfs2_jhead_pg_srch() local
436 if (!__get_log_header(sdp, kaddr + offset, 0, &lh)) { in gfs2_jhead_pg_srch()
445 kunmap_atomic(kaddr); in gfs2_jhead_pg_srch()
628 void *kaddr; in gfs2_check_magic() local
632 kaddr = kmap_atomic(bh->b_page); in gfs2_check_magic()
633 ptr = kaddr + bh_offset(bh); in gfs2_check_magic()
636 kunmap_atomic(kaddr); in gfs2_check_magic()
702 void *kaddr; in gfs2_before_commit() local
705 kaddr = kmap_atomic(bd2->bd_bh->b_page); in gfs2_before_commit()
706 memcpy(ptr, kaddr + bh_offset(bd2->bd_bh), in gfs2_before_commit()
[all …]

123