[Top] [All Lists]

nfs fix for test5

To: linux-xfs@xxxxxxxxxxx
Subject: nfs fix for test5
From: Thomas Graichen <news-innominate.list.sgi.xfs@xxxxxxxxxxxxx>
Date: 27 Sep 2000 14:18:48 GMT
Distribution: local
Organization: innominate AG, Berlin, Germany
Reply-to: Thomas Graichen <graichen@xxxxxxxxxxxxx>
Reply-to: thomas.graichen@xxxxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.4.0-test5 (i586))
the following patch fixes a small nfs problem in -test5 (on which the
SGI XFS tree is currently based and which is fixed in later test
versions) ... it manifests itself in the fact that you have problems
writing big files with your machine being nfs client ... maybe it's
worth to add it to the tree as long as it stays at -test5 ... for me
here (linux xfs kernel nfs client to an linux normal nfs server)
this is the only way to really use this kernel in this envirnonment
and it might be the case for other beta tester too (btw. the patch
comes from the linux nfs mailinglist)

hope that helps


p.s.: ... and now the patch

Index: write.c
RCS file: /cvs/linux-2.4-xfs/linux/fs/nfs/write.c,v
retrieving revision 1.18
diff -u -r1.18 write.c
--- write.c     2000/06/02 00:22:59     1.18
+++ write.c     2000/09/27 14:06:28
@@ -1294,7 +1294,7 @@
        struct nfs_page         *req;
        struct dentry           *dentry;
        struct inode            *inode;
-       loff_t                  start, end, len;
+       u64                     start, end, len;
        /* Set up the RPC argument and reply structs
         * NB: take care not to mess about with data->commit et al. */
@@ -1308,7 +1308,7 @@
        inode = dentry->d_inode;
        while (!list_empty(head)) {
                struct nfs_page *req;
-               loff_t  rqstart, rqend;
+               u64     rqstart, rqend;
                req = nfs_list_entry(head->next);
                nfs_list_add_request(req, &data->pages);

technical director                                       innominate AG
clustering & security                                networking people
tel: +49.30.308806-13  fax: -77                   http://innominate.de

<Prev in Thread] Current Thread [Next in Thread>