diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-09-11 15:25:02 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-09-11 17:31:05 (GMT) |
commit | e48c465bb366c0169f7908bfe62ae7080874ee7d (patch) | |
tree | 016cf009f64964e692470612ebbfa538d6b4bc83 /fs/btrfs/file.c | |
parent | 890871be854b5f5e43e7ba2475f706209906cc24 (diff) | |
download | linux-fsl-qoriq-e48c465bb366c0169f7908bfe62ae7080874ee7d.tar.xz |
Btrfs: Fix new state initialization order
As the extent state tree is manipulated, there are call backs
that are used to take extra actions when different state bits are set
or cleared. One example of this is a counter for the total number
of delayed allocation bytes in a single inode and in the whole FS.
When new states are inserted, this callback is being done before we
properly setup the new state. This hasn't caused problems before
because the lock bit was always done first, and the existing call backs
don't care about the lock bit.
This patch makes sure the state is properly setup before using the
callback, which is important for later optimizations that do more work
without using the lock bit.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
0 files changed, 0 insertions, 0 deletions