]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: dynamically allocate the jbd2_inode in ext4_inode_info as necessary
authorTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2011 17:29:43 +0000 (12:29 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2011 17:29:43 +0000 (12:29 -0500)
commit33abeae59d4421dbd156b93b679af61018d940cc
treee13143306cd64525cddd2cc2513c448275a1d95a
parentf8dbd81d7b31b20d6b1034ea82c444e0e6358aa5
ext4: dynamically allocate the jbd2_inode in ext4_inode_info as necessary

Replace the jbd2_inode structure (which is 48 bytes) with a pointer
and only allocate the jbd2_inode when it is needed --- that is, when
the file system has a journal present and the inode has been opened
for writing.  This allows us to further slim down the ext4_inode_info
structure.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/ext4_jbd2.h
fs/ext4/file.c
fs/ext4/inode.c
fs/ext4/super.c
fs/jbd2/journal.c
include/linux/jbd2.h