Lines Matching refs:from
83 static int nilfs_prepare_chunk(struct page *page, unsigned from, unsigned to) in nilfs_prepare_chunk() argument
85 loff_t pos = page_offset(page) + from; in nilfs_prepare_chunk()
86 return __block_write_begin(page, pos, to - from, nilfs_get_block); in nilfs_prepare_chunk()
91 unsigned from, unsigned to) in nilfs_commit_chunk() argument
94 loff_t pos = page_offset(page) + from; in nilfs_commit_chunk()
95 unsigned len = to - from; in nilfs_commit_chunk()
99 nr_dirty = nilfs_page_count_clean_buffers(page, from, to); in nilfs_commit_chunk()
418 unsigned from = (char *) de - (char *) page_address(page); in nilfs_set_link() local
419 unsigned to = from + nilfs_rec_len_from_disk(de->rec_len); in nilfs_set_link()
424 err = nilfs_prepare_chunk(page, from, to); in nilfs_set_link()
428 nilfs_commit_chunk(page, mapping, from, to); in nilfs_set_link()
449 unsigned from, to; in nilfs_add_link() local
502 from = (char *)de - (char *)page_address(page); in nilfs_add_link()
503 to = from + rec_len; in nilfs_add_link()
504 err = nilfs_prepare_chunk(page, from, to); in nilfs_add_link()
519 nilfs_commit_chunk(page, page->mapping, from, to); in nilfs_add_link()
541 unsigned from = ((char *)dir - kaddr) & ~(nilfs_chunk_size(inode) - 1); in nilfs_delete_entry() local
545 struct nilfs_dir_entry *de = (struct nilfs_dir_entry *)(kaddr + from); in nilfs_delete_entry()
559 from = (char *)pde - (char *)page_address(page); in nilfs_delete_entry()
561 err = nilfs_prepare_chunk(page, from, to); in nilfs_delete_entry()
564 pde->rec_len = nilfs_rec_len_to_disk(to - from); in nilfs_delete_entry()
566 nilfs_commit_chunk(page, mapping, from, to); in nilfs_delete_entry()