gfs2: Fix gfs2_file_buffered_write endless loop workaround
[platform/kernel/linux-rpi.git] / fs / gfs2 / file.c
index 60390f9..e93185d 100644 (file)
@@ -1086,6 +1086,7 @@ out_uninit:
        gfs2_holder_uninit(gh);
        if (statfs_gh)
                kfree(statfs_gh);
+       from->count = orig_count - read;
        return read ? read : ret;
 }