aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_sb.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-02-28 19:39:58 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-02-28 19:39:58 -0500
commitafc32f7ee9febc020c73da61402351d4c90437f3 (patch)
tree7b78aaaac87eb704074f6ece996b2c78a69fbe18 /fs/ext4/ext4_sb.h
parentd6014301b5599fba395c42a1e96a7fe86f7d0b2d (diff)
ext4: Track lifetime disk writes
Add a new superblock value which tracks the lifetime amount of writes to the filesystem. This is useful in estimating the amount of wear on solid state drives (SSD's) caused by writes to the filesystem. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_sb.h')
-rw-r--r--fs/ext4/ext4_sb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/ext4_sb.h b/fs/ext4/ext4_sb.h
index 4e4d9cc3f40d..50ab1169c378 100644
--- a/fs/ext4/ext4_sb.h
+++ b/fs/ext4/ext4_sb.h
@@ -142,6 +142,10 @@ struct ext4_sb_info {
142 /* locality groups */ 142 /* locality groups */
143 struct ext4_locality_group *s_locality_groups; 143 struct ext4_locality_group *s_locality_groups;
144 144
145 /* for write statistics */
146 unsigned long s_sectors_written_start;
147 u64 s_kbytes_written;
148
145 unsigned int s_log_groups_per_flex; 149 unsigned int s_log_groups_per_flex;
146 struct flex_groups *s_flex_groups; 150 struct flex_groups *s_flex_groups;
147}; 151};