Whamcloud - gitweb
Create the journal in the middle of the filesystem
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2008 19:11:28 +0000 (15:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2008 21:04:16 +0000 (17:04 -0400)
commit1af01e94cc020ab989cc97cec1b755bf2a476508
tree8947ad3e006adc9b035364decc505fc3619742df
parent674c0cc4cb137c6362cb1ae71b6db5cbccbad83a
Create the journal in the middle of the filesystem

This speeds up access to the journal by eliminating worst-case seeks
from one end of the disk to another, which can be quite common in very
fsync-intensive workloads if the file is located near the end of the
disk, and the journal is located the beginning of the disk.

In addition, this can help eliminate journal fragmentation when
flex_bg is enabled, since the first block group has a large amount of
metadata.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/mkjournal.c