pnfsblock: clean up _add_entry
authorPeng Tao <bergwolf@gmail.com>
Thu, 12 Jan 2012 15:18:45 +0000 (23:18 +0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 12 Jan 2012 21:38:55 +0000 (16:38 -0500)
commit57582b372f63d0f655b1a35b0d306d73d1a46775
tree27c27ca5a20720d835b901760b52b66060ddb840
parent82b906d6550ee5fe0d5553359b3c9692dd0aed31
pnfsblock: clean up _add_entry

It is wrong to kmalloc in _add_entry() as it is inside
spinlock. memory should be already allocated _add_entry() is called.

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/extents.c