Skip to content
Commit fe188c0e authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: Assure that metadata blocks are written during fsync in no journal mode



When there is no journal present, we must attach buffer heads
associated with extent tree and indirect blocks to the inode's
mapping->private_list via mark_buffer_dirty_inode() so that
ext4_sync_file() --- which is called to service fsync() and
fdatasync() system calls --- can write out the inode's metadata blocks
by calling sync_mapping_buffers().

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent c7acb4c1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment