aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 081bb25a9ad..ecb57259192 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -959,7 +959,11 @@ static int ext4_ordered_write_end(struct file *file,
959 ext4_orphan_add(handle, inode); 959 ext4_orphan_add(handle, inode);
960 if (ret2 < 0) 960 if (ret2 < 0)
961 ret = ret2; 961 ret = ret2;
962 } else {
963 unlock_page(page);
964 page_cache_release(page);
962 } 965 }
966
963 ret2 = ext4_journal_stop(handle); 967 ret2 = ext4_journal_stop(handle);
964 if (!ret) 968 if (!ret)
965 ret = ret2; 969 ret = ret2;