]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/f2fs/super.c
Merge tag 'f2fs-for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk...
[thirdparty/linux.git] / fs / f2fs / super.c
index 53d70b64fea1a339a90aeae61ef53ff52424c748..896b885f504e782f2bc37a4aba4da5e9870f2b20 100644 (file)
@@ -2956,7 +2956,8 @@ try_onemore:
        /* For write statistics */
        if (sb->s_bdev->bd_part)
                sbi->sectors_written_start =
-                       (u64)part_stat_read(sb->s_bdev->bd_part, sectors[1]);
+                       (u64)part_stat_read(sb->s_bdev->bd_part,
+                                           sectors[STAT_WRITE]);
 
        /* Read accumulated write IO statistics if exists */
        seg_i = CURSEG_I(sbi, CURSEG_HOT_NODE);