From: Peng Tao Date: Thu, 12 Jan 2012 15:18:46 +0000 (+0800) Subject: pnfsblock: alloc short extent before submit bio X-Git-Tag: v3.3-rc1~41^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c5465d6ccd759caa959828e2add5603518dafc4;p=pandora-kernel.git pnfsblock: alloc short extent before submit bio As discussed earlier, it is better for block client to allocate memory for tracking extents state before submitting bio. So the patch does it by allocating a short_extent for every INVALID extent touched by write pagelist and for every zeroing page we created, saving them in layout header. Then in end_io we can just use them to create commit list items and avoid memory allocation there. Signed-off-by: Peng Tao Signed-off-by: Benny Halevy Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed