From: Younger Liu Date: Thu, 18 Jul 2013 23:56:36 +0000 (+1000) Subject: ocfs2-fix-issue-that-ocfs2_setattr-does-not-deal-with-new_i_size==i_size-v2 X-Git-Tag: next-20130719~3^2~69 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=494b69170120b75e19a218b20e5f80ee11b18ff5;p=karo-tx-linux.git ocfs2-fix-issue-that-ocfs2_setattr-does-not-deal-with-new_i_size==i_size-v2 Compared with PATCH V1, bug description is updated, and pointless comments are removed. Signed-off-by: Younger Liu Cc: Jie Liu Cc: Joel Becker Cc: Mark Fasheh Cc: Sunil Mushran Cc: Jensen Signed-off-by: Andrew Morton --- diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index f25177fedd99..9e01793cd23a 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -474,8 +474,6 @@ static int ocfs2_truncate_file(struct inode *inode, goto bail; } - /* lets handle the simple truncate cases before doing any more - * cluster locking. */ down_write(&OCFS2_I(inode)->ip_alloc_sem); ocfs2_resv_discard(&osb->osb_la_resmap,