Displaying 1 result from an estimated 1 matches for "diocb".
Did you mean:
aiocb
2010 Mar 22
0
[PATCH] Btrfs: change direct I/O read to not use i_mutex.
...c | 150 +++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 104 insertions(+), 46 deletions(-)
diff --git a/fs/btrfs/dio.c b/fs/btrfs/dio.c
index b6934be..c930ff5 100644
--- a/fs/btrfs/dio.c
+++ b/fs/btrfs/dio.c
@@ -435,14 +435,81 @@ static void btrfs_dio_write(struct btrfs_diocb *diocb)
{
}
+/* verify that we have locked everything we need to do the read and
+ * have pushed the ordered data into the btree so the extent is valid
+ */
+static void btrfs_dio_safe_to_read(struct btrfs_diocb *diocb,
+ struct extent_map *em, u64 *lockend,
+ u64 *data_len, int *safe_to_...