At Wed, 22 May 2013 16:12:20 +0800, Liu Yuan wrote: > > On 05/22/2013 03:49 PM, MORITA Kazutaka wrote: > > + assert(flags & O_DIRECT ? is_aligned_to_pagesize(iocb->buf) : true); > > how about we use get_open_flags to check buf? Do you mean passing iocb->buf to get_open_flags() to check its alignment? Thanks, Kazutaka |