summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/export.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-02-04 15:24:25 +0100
committerChris Mason <chris.mason@oracle.com>2009-02-04 15:24:25 +0100
commitc487685d7c18a8481900755aa5c56a7a74193101 (patch)
treef2ff6c059e24d7fdf2e1fff498bbef0bb90bfbfc /fs/btrfs/export.c
parentBtrfs: disable leak debugging checks in extent_io.c (diff)
downloadlinux-c487685d7c18a8481900755aa5c56a7a74193101.tar.xz
linux-c487685d7c18a8481900755aa5c56a7a74193101.zip
Btrfs: hash_lock is no longer needed
Before metadata is written to disk, it is updated to reflect that writeout has begun. Once this update is done, the block must be cow'd before it can be modified again. This update was originally synchronized by using a per-fs spinlock. Today the buffers for the metadata blocks are locked before writeout begins, and everyone that tests the flag has the buffer locked as well. So, the per-fs spinlock (called hash_lock for no good reason) is no longer required. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/export.c')
0 files changed, 0 insertions, 0 deletions