Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFS: Fix a typo in include/linux/nfs_fs.h

nfs_commit_inode() needs to be defined irrespectively of whether or not
we are supporting NFSv3 and NFSv4.

Allow the compiler to optimise away code in the NFSv2-only case by
converting it into an inlined stub function.

Reported-and-tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Trond Myklebust and committed by
Linus Torvalds
77a63f3d a63ecd83

+6 -5
-5
fs/nfs/write.c
··· 1454 1454 return ret; 1455 1455 } 1456 1456 #else 1457 - int nfs_commit_inode(struct inode *inode, int how) 1458 - { 1459 - return 0; 1460 - } 1461 - 1462 1457 static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_control *wbc) 1463 1458 { 1464 1459 return 0;
+6
include/linux/nfs_fs.h
··· 496 496 extern int nfs_commit_inode(struct inode *, int); 497 497 extern struct nfs_write_data *nfs_commitdata_alloc(void); 498 498 extern void nfs_commit_free(struct nfs_write_data *wdata); 499 + #else 500 + static inline int 501 + nfs_commit_inode(struct inode *inode, int how) 502 + { 503 + return 0; 504 + } 499 505 #endif 500 506 501 507 static inline int