lkml.org 
[lkml]   [2006]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 20/33] readahead: initial method - expected read size
Wu Fengguang <wfg@mail.ustc.edu.cn> wrote:
>
> backing_dev_info.ra_expect_bytes is dynamicly updated to be the expected
> read pages on start-of-file. It allows the initial readahead to be more
> aggressive and hence efficient.
>
>
> +void fastcall readahead_close(struct file *file)

eww, fastcall.

> +{
> + struct inode *inode = file->f_dentry->d_inode;
> + struct address_space *mapping = inode->i_mapping;
> + struct backing_dev_info *bdi = mapping->backing_dev_info;
> + unsigned long pos = file->f_pos;

f_pos is loff_t.

-
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: 2006-05-26 19:32    [W:0.343 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site