Lines Matching refs:pos
36 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) in dir_commit_chunk() argument
42 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk()
43 if (pos+len > dir->i_size) { in dir_commit_chunk()
44 i_size_write(dir, pos+len); in dir_commit_chunk()
65 unsigned long pos = ctx->pos; in sysv_readdir() local
72 ctx->pos = pos = (pos + SYSV_DIRSIZE-1) & ~(SYSV_DIRSIZE-1); in sysv_readdir()
73 if (pos >= inode->i_size) in sysv_readdir()
76 offset = pos & ~PAGE_MASK; in sysv_readdir()
77 n = pos >> PAGE_SHIFT; in sysv_readdir()
89 for ( ;(char*)de <= limit; de++, ctx->pos += sizeof(*de)) { in sysv_readdir()
182 loff_t pos; in sysv_add_link() local
208 pos = page_offset(page) + in sysv_add_link()
211 err = sysv_prepare_chunk(page, pos, SYSV_DIRSIZE); in sysv_add_link()
217 err = dir_commit_chunk(page, pos, SYSV_DIRSIZE); in sysv_add_link()
233 loff_t pos = page_offset(page) + (char *)de - kaddr; in sysv_delete_entry() local
237 err = sysv_prepare_chunk(page, pos, SYSV_DIRSIZE); in sysv_delete_entry()
240 err = dir_commit_chunk(page, pos, SYSV_DIRSIZE); in sysv_delete_entry()
330 loff_t pos = page_offset(page) + in sysv_set_link() local
335 err = sysv_prepare_chunk(page, pos, SYSV_DIRSIZE); in sysv_set_link()
338 err = dir_commit_chunk(page, pos, SYSV_DIRSIZE); in sysv_set_link()