Lines Matching defs:pos
673 loff_t pos = (loff_t)page->index << HMDFS_PAGE_OFFSET;
682 if (pos >= size)
688 else if (size < pos + HMDFS_PAGE_SIZE)
689 count = size - pos;
792 struct address_space *mapping, loff_t pos,
796 pgoff_t index = ((unsigned long long)pos) >> PAGE_SHIFT;
816 if (!((unsigned long long)pos & (HMDFS_PAGE_SIZE - 1)) &&
817 (pos + len) >= i_size_read(inode)) {
844 struct address_space *mapping, loff_t pos,
864 if (pos + copied > i_size_read(inode)) {
865 i_size_write(inode, pos + copied);
888 loff_t pos;
890 pos = ((loff_t)dev_id << (POS_BIT_NUM - 1 - DEV_ID_BIT_NUM)) +
893 pos |= ((loff_t)1 << (POS_BIT_NUM - 1));
894 return pos;
903 loff_t pos = ctx->pos;
904 unsigned long dev_id = (unsigned long)((pos << 1) >> (POS_BIT_NUM - DEV_ID_BIT_NUM));
905 unsigned long group_id = (unsigned long)((pos << (1 + DEV_ID_BIT_NUM)) >>
907 loff_t offset = pos & OFFSET_BIT_MASK;
960 pos = hmdfs_set_pos(dev_id, i, j);
963 pos + INUNUMBER_START, file_type);
965 ctx->pos = pos;
992 loff_t start_pos = ctx->pos;
995 bool is_local = !((ctx->pos) >> (POS_BIT_NUM - 1));
998 if (ctx->pos == -1)
1001 ctx->pos = hmdfs_set_pos(dev_id, 0, 0);
1005 // ctx->pos = 0;
1018 ctx->pos = -1;
1020 trace_hmdfs_iterate_remote(file->f_path.dentry, start_pos, ctx->pos,