From 494b69170120b75e19a218b20e5f80ee11b18ff5 Mon Sep 17 00:00:00 2001 From: Younger Liu Date: Fri, 19 Jul 2013 09:56:36 +1000 Subject: [PATCH] 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 --- fs/ocfs2/file.c | 2 -- 1 file changed, 2 deletions(-) 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, -- 2.39.5