Re: [PATCHSET v6 0/26] pnfs for 2.6.40

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@xxxxxxxxxx
www.netapp.com

--
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


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux