diff options
author | J.Bruce Fields <bfields@fieldses.org> | 2006-12-13 03:35:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 12:05:54 -0500 |
commit | 7191155bd3abbbf62368a0528f7610741d007a58 (patch) | |
tree | 9f4b2e6306184f5c77d9284356b3056a6640338b /fs/nfsd/nfs4proc.c | |
parent | a4f1706a9bd94d0e33e853a7e9f40b2650d54fbf (diff) |
[PATCH] knfsd: nfsd4: don't inline nfsd4 compound op functions
The inlining contributes to bloating the stack of nfsd4_compound, and I want
to change the compound op functions to function pointers anyway.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 0972cb33d7d4..9fcf46a7d95d 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -33,13 +33,6 @@ | |||
33 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | 33 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
34 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 34 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
35 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 35 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
36 | * | ||
37 | * Note: some routines in this file are just trivial wrappers | ||
38 | * (e.g. nfsd4_lookup()) defined solely for the sake of consistent | ||
39 | * naming. Since all such routines have been declared "inline", | ||
40 | * there shouldn't be any associated overhead. At some point in | ||
41 | * the future, I might inline these "by hand" to clean up a | ||
42 | * little. | ||
43 | */ | 36 | */ |
44 | 37 | ||
45 | #include <linux/param.h> | 38 | #include <linux/param.h> |
@@ -161,7 +154,7 @@ do_open_fhandle(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_ | |||
161 | } | 154 | } |
162 | 155 | ||
163 | 156 | ||
164 | static inline __be32 | 157 | static __be32 |
165 | nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 158 | nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
166 | struct nfsd4_open *open) | 159 | struct nfsd4_open *open) |
167 | { | 160 | { |
@@ -264,7 +257,7 @@ out: | |||
264 | /* | 257 | /* |
265 | * filehandle-manipulating ops. | 258 | * filehandle-manipulating ops. |
266 | */ | 259 | */ |
267 | static inline __be32 | 260 | static __be32 |
268 | nfsd4_getfh(struct nfsd4_compound_state *cstate, struct svc_fh **getfh) | 261 | nfsd4_getfh(struct nfsd4_compound_state *cstate, struct svc_fh **getfh) |
269 | { | 262 | { |
270 | if (!cstate->current_fh.fh_dentry) | 263 | if (!cstate->current_fh.fh_dentry) |
@@ -274,7 +267,7 @@ nfsd4_getfh(struct nfsd4_compound_state *cstate, struct svc_fh **getfh) | |||
274 | return nfs_ok; | 267 | return nfs_ok; |
275 | } | 268 | } |
276 | 269 | ||
277 | static inline __be32 | 270 | static __be32 |
278 | nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 271 | nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
279 | struct nfsd4_putfh *putfh) | 272 | struct nfsd4_putfh *putfh) |
280 | { | 273 | { |
@@ -285,7 +278,7 @@ nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
285 | return fh_verify(rqstp, &cstate->current_fh, 0, MAY_NOP); | 278 | return fh_verify(rqstp, &cstate->current_fh, 0, MAY_NOP); |
286 | } | 279 | } |
287 | 280 | ||
288 | static inline __be32 | 281 | static __be32 |
289 | nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate) | 282 | nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate) |
290 | { | 283 | { |
291 | __be32 status; | 284 | __be32 status; |
@@ -296,7 +289,7 @@ nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate) | |||
296 | return status; | 289 | return status; |
297 | } | 290 | } |
298 | 291 | ||
299 | static inline __be32 | 292 | static __be32 |
300 | nfsd4_restorefh(struct nfsd4_compound_state *cstate) | 293 | nfsd4_restorefh(struct nfsd4_compound_state *cstate) |
301 | { | 294 | { |
302 | if (!cstate->save_fh.fh_dentry) | 295 | if (!cstate->save_fh.fh_dentry) |
@@ -306,7 +299,7 @@ nfsd4_restorefh(struct nfsd4_compound_state *cstate) | |||
306 | return nfs_ok; | 299 | return nfs_ok; |
307 | } | 300 | } |
308 | 301 | ||
309 | static inline __be32 | 302 | static __be32 |
310 | nfsd4_savefh(struct nfsd4_compound_state *cstate) | 303 | nfsd4_savefh(struct nfsd4_compound_state *cstate) |
311 | { | 304 | { |
312 | if (!cstate->current_fh.fh_dentry) | 305 | if (!cstate->current_fh.fh_dentry) |
@@ -319,7 +312,7 @@ nfsd4_savefh(struct nfsd4_compound_state *cstate) | |||
319 | /* | 312 | /* |
320 | * misc nfsv4 ops | 313 | * misc nfsv4 ops |
321 | */ | 314 | */ |
322 | static inline __be32 | 315 | static __be32 |
323 | nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 316 | nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
324 | struct nfsd4_access *access) | 317 | struct nfsd4_access *access) |
325 | { | 318 | { |
@@ -331,7 +324,7 @@ nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
331 | &access->ac_supported); | 324 | &access->ac_supported); |
332 | } | 325 | } |
333 | 326 | ||
334 | static inline __be32 | 327 | static __be32 |
335 | nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 328 | nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
336 | struct nfsd4_commit *commit) | 329 | struct nfsd4_commit *commit) |
337 | { | 330 | { |
@@ -434,7 +427,7 @@ nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
434 | return status; | 427 | return status; |
435 | } | 428 | } |
436 | 429 | ||
437 | static inline __be32 | 430 | static __be32 |
438 | nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 431 | nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
439 | struct nfsd4_getattr *getattr) | 432 | struct nfsd4_getattr *getattr) |
440 | { | 433 | { |
@@ -454,7 +447,7 @@ nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
454 | return nfs_ok; | 447 | return nfs_ok; |
455 | } | 448 | } |
456 | 449 | ||
457 | static inline __be32 | 450 | static __be32 |
458 | nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 451 | nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
459 | struct nfsd4_link *link) | 452 | struct nfsd4_link *link) |
460 | { | 453 | { |
@@ -488,7 +481,7 @@ nfsd4_lookupp(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate) | |||
488 | "..", 2, &cstate->current_fh); | 481 | "..", 2, &cstate->current_fh); |
489 | } | 482 | } |
490 | 483 | ||
491 | static inline __be32 | 484 | static __be32 |
492 | nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 485 | nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
493 | struct nfsd4_lookup *lookup) | 486 | struct nfsd4_lookup *lookup) |
494 | { | 487 | { |
@@ -497,7 +490,7 @@ nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
497 | &cstate->current_fh); | 490 | &cstate->current_fh); |
498 | } | 491 | } |
499 | 492 | ||
500 | static inline __be32 | 493 | static __be32 |
501 | nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 494 | nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
502 | struct nfsd4_read *read) | 495 | struct nfsd4_read *read) |
503 | { | 496 | { |
@@ -527,7 +520,7 @@ out: | |||
527 | return status; | 520 | return status; |
528 | } | 521 | } |
529 | 522 | ||
530 | static inline __be32 | 523 | static __be32 |
531 | nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 524 | nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
532 | struct nfsd4_readdir *readdir) | 525 | struct nfsd4_readdir *readdir) |
533 | { | 526 | { |
@@ -551,7 +544,7 @@ nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
551 | return nfs_ok; | 544 | return nfs_ok; |
552 | } | 545 | } |
553 | 546 | ||
554 | static inline __be32 | 547 | static __be32 |
555 | nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 548 | nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
556 | struct nfsd4_readlink *readlink) | 549 | struct nfsd4_readlink *readlink) |
557 | { | 550 | { |
@@ -560,7 +553,7 @@ nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
560 | return nfs_ok; | 553 | return nfs_ok; |
561 | } | 554 | } |
562 | 555 | ||
563 | static inline __be32 | 556 | static __be32 |
564 | nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 557 | nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
565 | struct nfsd4_remove *remove) | 558 | struct nfsd4_remove *remove) |
566 | { | 559 | { |
@@ -579,7 +572,7 @@ nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
579 | return status; | 572 | return status; |
580 | } | 573 | } |
581 | 574 | ||
582 | static inline __be32 | 575 | static __be32 |
583 | nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 576 | nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
584 | struct nfsd4_rename *rename) | 577 | struct nfsd4_rename *rename) |
585 | { | 578 | { |
@@ -612,7 +605,7 @@ nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
612 | return status; | 605 | return status; |
613 | } | 606 | } |
614 | 607 | ||
615 | static inline __be32 | 608 | static __be32 |
616 | nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 609 | nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
617 | struct nfsd4_setattr *setattr) | 610 | struct nfsd4_setattr *setattr) |
618 | { | 611 | { |
@@ -639,7 +632,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
639 | return status; | 632 | return status; |
640 | } | 633 | } |
641 | 634 | ||
642 | static inline __be32 | 635 | static __be32 |
643 | nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 636 | nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
644 | struct nfsd4_write *write) | 637 | struct nfsd4_write *write) |
645 | { | 638 | { |