[Qemu-devel] [PATCH v2] qed: adjust the way to get nb_sectors

2011-11-01 Thread Zhi Yong Wu
This patch is only to refactor some lines of codes to get better and more robust codes. As you have seen, in qed_read_table_cb() it's nice to use qiov->size because that function doesn't obviously use a single struct iovec. In other two functions, if qiov use more than one struct iovec, the exis

Re: [Qemu-devel] [PATCH v2] qed: adjust the way to get nb_sectors

2011-11-01 Thread Stefan Hajnoczi
On Tue, Nov 1, 2011 at 8:04 AM, Zhi Yong Wu wrote: > This patch is only to refactor some lines of codes to get better and more > robust codes. > > As you have seen, in qed_read_table_cb() it's nice to > use qiov->size because that function doesn't obviously use a single > struct iovec. > > In oth

Re: [Qemu-devel] [PATCH v2] qed: adjust the way to get nb_sectors

2011-11-02 Thread Kevin Wolf
Am 01.11.2011 09:04, schrieb Zhi Yong Wu: > This patch is only to refactor some lines of codes to get better and more > robust codes. > > As you have seen, in qed_read_table_cb() it's nice to > use qiov->size because that function doesn't obviously use a single > struct iovec. > > In other two f