summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-09-24 02:28:46 +0200
committerChris Mason <chris.mason@oracle.com>2009-09-24 02:30:53 +0200
commit11ef160fda9c150cd75db77194bcc66839709662 (patch)
tree2cd7577234c112177a06ad09c0c507c81cb9658a /fs/btrfs/inode-item.c
parentBtrfs: Fix test_range_bit for whole file extents (diff)
downloadlinux-11ef160fda9c150cd75db77194bcc66839709662.tar.xz
linux-11ef160fda9c150cd75db77194bcc66839709662.zip
Btrfs: fix releasepage to avoid unlocking extents we haven't locked
During releasepage, we try to drop any extent_state structs for the bye offsets of the page we're releaseing. But the code was incorrectly telling clear_extent_bit to delete the state struct unconditionallly. Normally this would be fine because we have the page locked, but other parts of btrfs will lock down an entire extent, the most common place being IO completion. releasepage was deleting the extent state without first locking the extent, which may result in removing a state struct that another process had locked down. The fix here is to leave the NODATASUM and EXTENT_LOCKED bits alone in releasepage. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode-item.c')
0 files changed, 0 insertions, 0 deletions