]> rtime.felk.cvut.cz Git - linux-imx.git/commit
pnfsblock: alloc short extent before submit bio
authorPeng Tao <bergwolf@gmail.com>
Thu, 12 Jan 2012 15:18:46 +0000 (23:18 +0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 12 Jan 2012 21:52:10 +0000 (16:52 -0500)
commit7c5465d6ccd759caa959828e2add5603518dafc4
tree0d7a8dff18b667da2d2d1394c8e4585e7e098920
parentc0411a94a8f318379464e29dd81db806249dbca6
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 <peng_tao@emc.com>
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/blocklayout/blocklayout.c
fs/nfs/blocklayout/blocklayout.h
fs/nfs/blocklayout/extents.c