On Wed, 2009-05-06 at 01:15 +0300, Benny Halevy wrote: > On 2009-05-06 01:12, Trond Myklebust wrote: > > Not necessary. Look again at the first line of the READ_BUF(nbytes) > > macro: > > > > p = xdr_inline_decode(xdr, nbytes); > > > > So the value of 'p' is always correctly set to the beginning of the > > buffer of length 'nbytes'. > > Right, but then we want to skip over the buffer. The next call to READ_BUF() will take care of updating p to the beginning of the next buffer irrespective of whether or not you have read data from the current buffer. Cheers Trond -- To unsubscribe from this list: send the line "unsubscribe linux-next" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html