Re: [patch] Re: NFS writes

Olaf Kirch (okir@monad.swb.de)
Sat, 31 May 1997 17:28:52 +0200 (MET DST)


To: linux-kernel@vger.rutgers.edu
Subject: Re: [patch] Re: NFS writes
X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]

In article <9705261819.AA23413@nodebonn.muc> you wrote:
: The following patch (against 2.1.40) fixes this by adding a third io buffer
: (containing from 1 to 3 bytes) if padding is necessary.
: Maybe there's a better way to do this?

It is safe to just pad out the buffer to a multiple of four. Any write
data that goes through nfs_xdr_writeargs is from the page cache anyway,
so there shouldn't be any page faults etc. You just send a few bytes more
of the dirty page than you actually want the server to write.

This fix will be part of the next set of NFS patches (which will also
feature preliminary NFSv3 support, FWIW).

Cheers
Olaf

-- 
Olaf Kirch         |  --- o --- Nous sommes du soleil we love when we play
okir@monad.swb.de  |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax