diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-10-30 18:19:50 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-10-30 18:19:50 (GMT) |
commit | 6643558db29006825dbb10012b3f8890aca4bcd5 (patch) | |
tree | 0c0f4f7a0011749cda998431828cb9161747b51a /fs/nls/nls_cp862.c | |
parent | 9036c10208e1fc496cef7692ba66a78699b360dc (diff) | |
download | linux-fsl-qoriq-6643558db29006825dbb10012b3f8890aca4bcd5.tar.xz |
Btrfs: Fix bookend extent race v2
When dropping middle part of an extent, btrfs_drop_extents truncates
the extent at first, then inserts a bookend extent.
Since truncation and insertion can't be done atomically, there is a small
period that the bookend extent isn't in the tree. This causes problem for
functions that search the tree for file extent item. The way to fix this is
lock the range of the bookend extent before truncation.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'fs/nls/nls_cp862.c')
0 files changed, 0 insertions, 0 deletions