On 05/24/2011 08:05 PM, Trond Myklebust wrote: > On Tue, 2011-05-24 at 19:58 +0300, Boaz Harrosh wrote: >> Thanks Trond, I think I understand and can write the proper implementation >> for objects->pg_test now. One more question. I need the file offset >> of the beginning of the write would that then be: >> >> int objlayout_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev, >> struct nfs_page *req) >> } >> struct nfs_page *first_pg = list_entry(pgio->pg_list.next, struct nfs_page, wb_list); >> >> u64 io_offset = (first_pg->wb_index << PAGE_SHIFT) + first_pg->wb_offset; >> ... >> } > > Yes. That looks correct. > Grate the new skim with pg_test looks perfect. We have all we need and it will be really nice with the raid5/6 code. I think I will use a similar system in exofs now. Thanks Boaz -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html