Whamcloud - gitweb
libext2fs: Don't make a copy of the inode in ext2fs_extent_open2()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jul 2010 13:27:45 +0000 (09:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jul 2010 13:27:45 +0000 (09:27 -0400)
commitf03bb73ceb55791f7a59dbb72cfdbe121c5d204e
tree2cdbe5d328e60809c61e67c8cced771fec0f7022
parent47e155df575be3664493903507ac40d56c9b4e7d
libext2fs: Don't make a copy of the inode in ext2fs_extent_open2()

Previously, ext2fs_extent_open2() copied the passed-in inode structure
into the extent handle, and the extent functions modified the copy of
the inode structure if necessary due to extent splits, etc.  Change
ext2fs_extent_open2() so that the extent functions use the inode
structure passed into ext2fs_extent_open2().  Otherwise the passed-in
inode structure could become out of date due to changes made by the
extent functions.

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