]> git.baikalelectronics.ru Git - kernel.git/commit
fs/9p: Use truncate_setsize instead of vmtruncate
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 8 Mar 2011 11:09:48 +0000 (16:39 +0530)
committerEric Van Hensbergen <ericvh@gmail.com>
Tue, 22 Mar 2011 20:43:35 +0000 (15:43 -0500)
commit44b637f8bbfc86aa9b42a776c0a19371327144c5
tree0ec60c1a30863ff20029043b14909d02aadc696e
parentbfb75c3dd411dafde4ebb875f4a9f7847d1c6027
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 <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c