Lines Matching refs:from

78 static int nilfs_prepare_chunk(struct page *page, unsigned from, unsigned to)  in nilfs_prepare_chunk()  argument
80 loff_t pos = page_offset(page) + from; in nilfs_prepare_chunk()
81 return __block_write_begin(page, pos, to - from, nilfs_get_block); in nilfs_prepare_chunk()
86 unsigned from, unsigned to) in nilfs_commit_chunk() argument
89 loff_t pos = page_offset(page) + from; in nilfs_commit_chunk()
90 unsigned len = to - from; in nilfs_commit_chunk()
94 nr_dirty = nilfs_page_count_clean_buffers(page, from, to); in nilfs_commit_chunk()
413 unsigned from = (char *) de - (char *) page_address(page); in nilfs_set_link() local
414 unsigned to = from + nilfs_rec_len_from_disk(de->rec_len); in nilfs_set_link()
419 err = nilfs_prepare_chunk(page, from, to); in nilfs_set_link()
423 nilfs_commit_chunk(page, mapping, from, to); in nilfs_set_link()
444 unsigned from, to; in nilfs_add_link() local
497 from = (char *)de - (char *)page_address(page); in nilfs_add_link()
498 to = from + rec_len; in nilfs_add_link()
499 err = nilfs_prepare_chunk(page, from, to); in nilfs_add_link()
514 nilfs_commit_chunk(page, page->mapping, from, to); in nilfs_add_link()
536 unsigned from = ((char *)dir - kaddr) & ~(nilfs_chunk_size(inode) - 1); in nilfs_delete_entry() local
540 struct nilfs_dir_entry *de = (struct nilfs_dir_entry *)(kaddr + from); in nilfs_delete_entry()
554 from = (char *)pde - (char *)page_address(page); in nilfs_delete_entry()
556 err = nilfs_prepare_chunk(page, from, to); in nilfs_delete_entry()
559 pde->rec_len = nilfs_rec_len_to_disk(to - from); in nilfs_delete_entry()
561 nilfs_commit_chunk(page, mapping, from, to); in nilfs_delete_entry()