aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-11-10 11:50:50 -0500
committerChris Mason <chris.mason@oracle.com>2008-11-10 11:50:50 -0500
commit39be25cd89450940b0e5f8a6aad71d1ec99b17bf (patch)
treeecd9732a647df1af7439e1f859ac3b00e68cb430 /fs/btrfs/file-item.c
parentf5a31e166772a7b9fff6725b697eb8b57633671e (diff)
Btrfs: Use invalidatepage when writepage finds a page outside of i_size
With all the recent fixes to the delalloc locking, it is now safe again to use invalidatepage inside the writepage code for pages outside of i_size. This used to deadlock against some of the code to write locked ranges of pages, but all of that has been fixed. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r--fs/btrfs/file-item.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c
index f4d3fa71bc41..f76378831407 100644
--- a/fs/btrfs/file-item.c
+++ b/fs/btrfs/file-item.c
@@ -185,6 +185,7 @@ int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
185 "%llu\n", inode->i_ino, 185 "%llu\n", inode->i_ino,
186 (unsigned long long)offset); 186 (unsigned long long)offset);
187 item = NULL; 187 item = NULL;
188 btrfs_release_path(root, path);
188 goto found; 189 goto found;
189 } 190 }
190 btrfs_item_key_to_cpu(path->nodes[0], &found_key, 191 btrfs_item_key_to_cpu(path->nodes[0], &found_key,