search for: btrfs_fiemap

Displaying 2 results from an estimated 2 matches for "btrfs_fiemap".

2009 Aug 24
2
[RFC] Early look at btrfs directIO read code
...308,12 +4308,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) -- 1.5.6.3 ======================= fs/btrfs/dio.c attached =======================
2010 May 07
6
[PATCH 1/5] fs: allow short direct-io reads to be completed via buffered IO V2
V1->V2: Check to see if our current ppos is >= i_size after a short DIO read, just in case it was actually a short read and we need to just return. This is similar to what already happens in the write case. If we have a short read while doing O_DIRECT, instead of just returning, fallthrough and try to read the rest via buffered IO. BTRFS needs this because if we encounter a compressed or