lkml.org 
[lkml]   [2002]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [patch] 512-byte alignment for O_DIRECT I/O
From
Date
On Mon, 2002-10-07 at 17:59, Andrew Morton wrote:
>
> This patch from Badari is passing all testing now.
>
.....
> +++ 2.5.41-akpm/fs/xfs/linux/xfs_aops.c Mon Oct 7 15:50:21 2002
> @@ -688,8 +688,8 @@ linvfs_direct_IO(
> {
> struct inode *inode = file->f_dentry->d_inode->i_mapping->host;
>
> - return generic_direct_IO(rw, inode, iov, offset, nr_segs,
> - linvfs_get_blocks_direct);
> + return generic_direct_IO(rw, inode, inode->i_sb->s_bdev,
> + iov, offset, nr_segs, linvfs_get_blocks_direct);
> }
>
> STATIC int
>

Actually this part is broken for XFS - it will work for most cases,
but not for realtime files, in this case there is another bdev involved.
I just have to work out how to get to it from here...... the getblock
code knows enough to set it in the bh, but at this level we do not.

Steve

--

Steve Lord voice: +1-651-683-3511
Principal Engineer, Filesystem Software email: lord@sgi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.056 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site