OSDN Git Service

[PATCH] NFS server as a module with -mregparm=3
authorKrzysztof Strasburger <strasbur@chkw386.ch.pwr.wroc.pl>
Wed, 2 Nov 2005 09:43:36 +0000 (10:43 +0100)
committerMarcelo Tosatti <marcelo@pegasos.cnet>
Mon, 28 Nov 2005 17:32:13 +0000 (11:32 -0600)
commitb7844980a750ebe9f32ab5a29e370a4e32781e5d
treec20e1da5fc127ef859e8f6f9cc34a54c0c1db810
parente8f3e8dd41308fb66c026f51bb86b23205ad48c1
[PATCH] NFS server as a module with -mregparm=3

This patch makes it possible to compile the nfs server as a module, with
-mregparm=3 (at least on x86).

Such a combination did not work, as handle_sys_nfsservctl was called
from the sys_nfsservctl function (in fs/filesystems.c) with parameters
in registers, but tried to read them from the stack.

Signed-off-by: Krzysztof Strasburger
fs/nfsd/nfsctl.c