]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
nfs: remove duplicate initializations of nfs_read_data field
authorFred Isaman <iisaman@citi.umich.edu>
Wed, 19 Mar 2008 15:54:04 +0000 (11:54 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 19 Mar 2008 21:59:59 +0000 (17:59 -0400)
Signed-off-by: Fred Isaman <iisaman@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/read.c

index ab2f7d233e014df608b74f28fb76442749bdf60a..d333f5fedca171ec096b4f401e24803586fa4290 100644 (file)
@@ -251,7 +251,6 @@ static int nfs_pagein_multi(struct inode *inode, struct list_head *head, unsigne
                data = nfs_readdata_alloc(1);
                if (!data)
                        goto out_bad;
-               INIT_LIST_HEAD(&data->pages);
                list_add(&data->pages, &list);
                requests++;
                nbytes -= len;
@@ -298,7 +297,6 @@ static int nfs_pagein_one(struct inode *inode, struct list_head *head, unsigned
        if (!data)
                goto out_bad;
 
-       INIT_LIST_HEAD(&data->pages);
        pages = data->pagevec;
        while (!list_empty(head)) {
                req = nfs_list_entry(head->next);