Skip to content
Snippets Groups Projects
Commit e27a7b33 authored by Vitaliy Kuznetsov's avatar Vitaliy Kuznetsov Committed by Oleg Drokin
Browse files

LU-16298 ldiskfs: Periodically write ldiskfs superblock


This patch introduces a mechanism to periodically check and update
the superblock within the ext4 file system. The main purpose of this
patch is to keep the disk superblock up to date. The update will be
performed if more than one hour has passed since the last update,
and if more than 16MB of data have been written to disk.

This check and update is performed within the
ext4_journal_commit_callback function, ensuring that the superblock
is written while the disk is active, rather than based on a timer
that may trigger during disk idle periods.

Signed-off-by: default avatarVitaliy Kuznetsov <vkuznetsov@ddn.com>
Change-Id: I06eb9624b663a6ca6b15c6af2373b82f1bb63de6
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51340


Tested-by: default avatarjenkins <devops@whamcloud.com>
Tested-by: default avatarMaloo <maloo@whamcloud.com>
Reviewed-by: default avatarAndreas Dilger <adilger@whamcloud.com>
Reviewed-by: default avatarAlex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
parent 524c5398
No related branches found
No related tags found
No related merge requests found
Showing
with 429 additions and 0 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment