diff options
-rw-r--r-- | fs/ocfs2/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 17947dc8341e..2b4235c5831d 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -2021,9 +2021,9 @@ out_dio: | |||
2021 | if (ret < 0) | 2021 | if (ret < 0) |
2022 | written = ret; | 2022 | written = ret; |
2023 | 2023 | ||
2024 | if (!ret && (old_size != i_size_read(inode) || | 2024 | if (!ret && ((old_size != i_size_read(inode)) || |
2025 | old_clusters != OCFS2_I(inode)->ip_clusters || | 2025 | (old_clusters != OCFS2_I(inode)->ip_clusters) || |
2026 | has_refcount)) { | 2026 | has_refcount)) { |
2027 | ret = jbd2_journal_force_commit(osb->journal->j_journal); | 2027 | ret = jbd2_journal_force_commit(osb->journal->j_journal); |
2028 | if (ret < 0) | 2028 | if (ret < 0) |
2029 | written = ret; | 2029 | written = ret; |