Btrfs: Keep extent mappings in ram until pending ordered extents are done
authorChris Mason <chris.mason@oracle.com>
Fri, 18 Jul 2008 16:01:11 +0000 (12:01 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000 (11:04 -0400)
commit7f3c74fb831fa19bafe087e817c0a5ff3883f1ea
tree416e95db10e408240916d5061caf1e5d1182b330
parent211f90e68b679d27fe23c5505f86d6ce62c98bae
Btrfs: Keep extent mappings in ram until pending ordered extents are done

It was possible for stale mappings from disk to be used instead of the
new pending ordered extent.  This adds a flag to the extent map struct
to keep it pinned until the pending ordered extent is actually on disk.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/inode.c