diff options
author | Andrew Price <anprice@redhat.com> | 2012-04-16 16:40:55 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-04-24 16:44:37 +0100 |
commit | 4306629e1c0fd098d52f499e5a60aaa03e30df0d (patch) | |
tree | 82e2f8768dd0d273d31bb83eb8e10c1501eceece /fs/gfs2/aops.c | |
parent | c50b91c4bd511dfe844e2aa7be429b6b88406353 (diff) | |
download | linux-4306629e1c0fd098d52f499e5a60aaa03e30df0d.tar.gz linux-4306629e1c0fd098d52f499e5a60aaa03e30df0d.tar.bz2 linux-4306629e1c0fd098d52f499e5a60aaa03e30df0d.zip |
GFS2: Remove unused argument from gfs2_internal_read
gfs2_internal_read accepts an unused ra_state argument, left over from
when we did readahead on the rindex. Since there are currently no plans
to add back this readahead, this patch removes the ra_state parameter
and updates the functions which call gfs2_internal_read accordingly.
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/aops.c')
-rw-r--r-- | fs/gfs2/aops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index a627b3ee5c9f..695bbe16d1f0 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -517,15 +517,14 @@ out: /** * gfs2_internal_read - read an internal file * @ip: The gfs2 inode - * @ra_state: The readahead state (or NULL for no readahead) * @buf: The buffer to fill * @pos: The file position * @size: The amount to read * */ -int gfs2_internal_read(struct gfs2_inode *ip, struct file_ra_state *ra_state, - char *buf, loff_t *pos, unsigned size) +int gfs2_internal_read(struct gfs2_inode *ip, char *buf, loff_t *pos, + unsigned size) { struct address_space *mapping = ip->i_inode.i_mapping; unsigned long index = *pos / PAGE_CACHE_SIZE; |