Skip to contentSkip to conversation

Btrfs: enable direct I/O read support.

RFC PATCH In review jim owens 1 participant 1 message Jan 19, 2010 Btrfs file system

lore
Share & tools
lore

jim owens

author
#0 lore raw

RFC PATCH 3/3 Btrfs: enable direct I/O read support.

---
 fs/btrfs/Makefile |    2 +-
 fs/btrfs/inode.c  |    7 ++-----
 2 files changed, 3 insertions(+), 6 deletions(-)
fs/btrfs/Makefile +1 -1
index a35eb36..5cbe798 100644
@@ -7,4 +7,4 @@ btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
 	   extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
 	   extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
 	   export.o tree-log.o acl.o free-space-cache.o zlib.o \
-	   compression.o delayed-ref.o relocation.o
+	   compression.o delayed-ref.o relocation.o dio.o
fs/btrfs/inode.c +2 -5
index fbc5bd1..09a4d8e 100644
@@ -4935,12 +4935,9 @@ out:
 	return em;
 }
 
-static ssize_t btrfs_direct_IO(int rw, struct kiocb *iocb,
+extern ssize_t btrfs_direct_IO(int rw, struct kiocb *iocb,
 			const struct iovec *iov, loff_t offset,
-			unsigned long nr_segs)
-{
-	return -EINVAL;
-}
+			unsigned long nr_segs);
 
 static int btrfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
 		__u64 start, __u64 len)
Signature · 1 line
1.5.6.3