Lines Matching defs:pos

408 	loff_t pos = get_dentry_group_pos(bidx);
410 return kernel_read(filp, buffer, (size_t)size, &pos);
416 loff_t pos = get_dentry_group_pos(bidx);
418 return cache_file_read(sbi, filp, buffer, (size_t)size, &pos);
424 loff_t pos = get_dentry_group_pos(bidx);
426 return cache_file_write(sbi, filp, buffer, (size_t)size, &pos);
544 unsigned long pos = (unsigned long)(ctx->pos);
545 unsigned long group_id = (pos << (1 + DEV_ID_BIT_NUM)) >>
547 unsigned long offset = pos & OFFSET_BIT_MASK;
600 pos = hmdfs_set_pos(0, i, j);
606 ctx->pos = pos;
635 loff_t pos = get_dentry_group_pos(index);
642 err = hmdfs_wlock_file(filp, pos, DENTRYGROUP_SIZE);
644 hmdfs_err("lock file pos %lld failed", pos);
650 &pos);
652 hmdfs_unlock_file(filp, pos, DENTRYGROUP_SIZE);
878 loff_t pos;
911 pos = get_dentry_group_pos(bidx);
912 ret = hmdfs_wlock_file(file, pos, DENTRYGROUP_SIZE);
917 (size_t)DENTRYGROUP_SIZE, &pos);
920 hmdfs_unlock_file(file, pos, DENTRYGROUP_SIZE);
929 hmdfs_unlock_file(file, pos, DENTRYGROUP_SIZE);
934 pos = get_dentry_group_pos(bidx);
938 sizeof(struct hmdfs_dentry_group), &pos);
941 hmdfs_unlock_file(file, pos, DENTRYGROUP_SIZE);
1608 size_t count, loff_t *pos)
1611 ssize_t ret = kernel_read(filp, buf, count, pos);
1619 const void *buf, size_t count, loff_t *pos)
1622 ssize_t ret = kernel_write(filp, buf, count, pos);
1634 loff_t pos = 0;
1636 bytes = cache_file_read(sbi, filp, header, sizeof(*header), &pos);
1679 loff_t pos = 0;
1682 size = kernel_write(filp, header, sizeof(*header), &pos);
1859 .ctx.pos = 0,