diff options
| -rw-r--r-- | fs/nfs/write.c | 5 | ||||
| -rw-r--r-- | include/linux/nfs_fs.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index bb72ad34d51d..9f81bdd91c55 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
| @@ -1454,11 +1454,6 @@ out_mark_dirty: | |||
| 1454 | return ret; | 1454 | return ret; |
| 1455 | } | 1455 | } |
| 1456 | #else | 1456 | #else |
| 1457 | int nfs_commit_inode(struct inode *inode, int how) | ||
| 1458 | { | ||
| 1459 | return 0; | ||
| 1460 | } | ||
| 1461 | |||
| 1462 | static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_control *wbc) | 1457 | static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_control *wbc) |
| 1463 | { | 1458 | { |
| 1464 | return 0; | 1459 | return 0; |
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index f6e2455f13d1..bad4d121b16e 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
| @@ -496,6 +496,12 @@ extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); | |||
| 496 | extern int nfs_commit_inode(struct inode *, int); | 496 | extern int nfs_commit_inode(struct inode *, int); |
| 497 | extern struct nfs_write_data *nfs_commitdata_alloc(void); | 497 | extern struct nfs_write_data *nfs_commitdata_alloc(void); |
| 498 | extern void nfs_commit_free(struct nfs_write_data *wdata); | 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 | #endif | 505 | #endif |
| 500 | 506 | ||
| 501 | static inline int | 507 | static inline int |
