From: Aneesh Kumar K.V Date: Tue, 8 Mar 2011 11:09:48 +0000 (+0530) Subject: fs/9p: Use truncate_setsize instead of vmtruncate X-Git-Tag: v2.6.39-rc1~381^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059c138bc79320bd7d6fba91bad4d50eeec9c31f;p=pandora-kernel.git fs/9p: Use truncate_setsize instead of vmtruncate convert vmtruncate usage to truncate_setsize. We also writeback all dirty pages before doing 9p operations and on success call truncate_setsize. This ensure that we continue sanely on failed truncate on the server. The disadvantage is that we are now going to write back the content that get thrown away later as a part of truncate. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed