• Home
  • Raw
  • Download

Lines Matching refs:kaddr

109 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()
327 ext2_put_page(page, kaddr); in ext2_readdir()
374 char *kaddr; in ext2_find_entry() local
379 kaddr = page_addr; in ext2_find_entry()
380 de = (ext2_dirent *) kaddr; in ext2_find_entry()
381 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry()
382 while ((char *) de <= kaddr) { in ext2_find_entry()
509 char *kaddr; in ext2_add_link() local
517 kaddr = page_addr; in ext2_add_link()
518 dir_end = kaddr + ext2_last_byte(dir, n); in ext2_add_link()
519 de = (ext2_dirent *)kaddr; in ext2_add_link()
520 kaddr += PAGE_SIZE - reclen; in ext2_add_link()
521 while ((char *)de <= kaddr) { in ext2_add_link()
588 char *kaddr) in ext2_delete_entry() argument
591 unsigned from = ((char*)dir - kaddr) & ~(ext2_chunk_size(inode)-1); in ext2_delete_entry()
592 unsigned to = ((char *)dir - kaddr) + in ext2_delete_entry()
596 ext2_dirent * de = (ext2_dirent *) (kaddr + from); in ext2_delete_entry()
610 from = (char *)pde - kaddr; in ext2_delete_entry()
635 void *kaddr; in ext2_make_empty() local
645 kaddr = kmap_atomic(page); in ext2_make_empty()
646 memset(kaddr, 0, chunk_size); in ext2_make_empty()
647 de = (struct ext2_dir_entry_2 *)kaddr; in ext2_make_empty()
654 de = (struct ext2_dir_entry_2 *)(kaddr + EXT2_DIR_REC_LEN(1)); in ext2_make_empty()
660 kunmap_atomic(kaddr); in ext2_make_empty()
678 char *kaddr; in ext2_empty_dir() local
687 kaddr = page_addr; in ext2_empty_dir()
688 de = (ext2_dirent *)kaddr; in ext2_empty_dir()
689 kaddr += ext2_last_byte(inode, i) - EXT2_DIR_REC_LEN(1); in ext2_empty_dir()
691 while ((char *)de <= kaddr) { in ext2_empty_dir()
695 printk("kaddr=%p, de=%p\n", kaddr, de); in ext2_empty_dir()