diff options
author | Younger Liu <younger.liu@huawei.com> | 2013-08-08 12:55:50 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-08-08 12:55:50 +1000 |
commit | 21d4a3e64ee8b2ff09a6e14d1ed9f6eb66630b8f (patch) | |
tree | 71e3472fc7c03350b677b790dd3fec06d22923d6 | |
parent | fcd595c5be1f1e958636d8d92eba2cdc396d6a7c (diff) |
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 <younger.liu@huawei.com>
Cc: Jie Liu <jeff.liu@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Sunil Mushran <sunil.mushran@gmail.com>
Cc: Jensen <shencanquan@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | fs/ocfs2/file.c | 2 |
1 files changed, 0 insertions, 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, |