[lkml]   [2002]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] 2.4.20 Direct IO patch for NFS. (Note: a trivial API change...)
    >>>>> " " == Matthew Wilcox <> writes:

    >> -static int blkdev_direct_IO(int rw, struct inode * inode,
    >> struct kiobuf * iobuf, unsigned long blocknr, int blocksize)
    >> +static int blkdev_direct_IO(int rw, struct file * filp, struct
    >> kiobuf * iobuf, unsigned long blocknr, int blocksize) {
    >> + struct inode * inode =
    >> filp->f_dentry->d_inode->i_mapping->host;
    >> return generic_direct_IO(rw, inode, iobuf, blocknr, blocksize,
    >> blkdev_get_block); }

    > isn't that two dereferences more than necessary for a local
    > filesystem?

    IIRC this is an issue with block filesystems: the i_mapping->host may
    differ from d_inode.

    It is in any case just the exact same dereference that is being made
    in the current version of generic_file_direct_IO(). The API change
    simply moves this dereference down into the filesystem code.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:29    [W:0.034 / U:9.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site