Whamcloud - gitweb
libext2fs: don't update the summary counts when doing implied cluster allocation
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 16 Dec 2013 04:50:52 +0000 (23:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 Dec 2013 04:50:54 +0000 (23:50 -0500)
commit230272c15a71edfd53bc805adf560d0386dddff3
tree63ae4fde35e8fe172ae537f567f720a8e44cda22
parent84397754250d13e8596dd68c157c4c9863800079
libext2fs: don't update the summary counts when doing implied cluster allocation

When we're appending a block to a directory file or the journal file,
and the new block is part of a cluster that has already been allocated
to the file (implied cluster allocation), don't update the bitmap or
the summary counts because that was performed when the cluster was
allocated.

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/expanddir.c
lib/ext2fs/mkjournal.c