OSDN Git Service

ext2fs_extent_open: If the inode is empty, initialize the extent tree
authorTheodore Ts'o <tytso@mit.edu>
Mon, 2 Jun 2008 04:08:19 +0000 (00:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Jun 2008 04:14:23 +0000 (00:14 -0400)
commitaa8e2f1c31374bfc6e479aea008896d179b100b4
treed0b48d66d249337672140ac01e288eee5df33691
parent05a32de263228ce8f78746143384e5ebe2677d14
ext2fs_extent_open: If the inode is empty, initialize the extent tree

If the inode's i_block[] array is completely empty, create an empty
extent tree in the in-core inode and set the EXT4_EXTENT_FL inode
flag.  This makes it easy to create a new inode using extents.

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