diff options
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 55de0770df4a..cbebd7d1b9e8 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -56,9 +56,7 @@ | |||
56 | * When flushing a cluster of dirty pages, there can be different | 56 | * When flushing a cluster of dirty pages, there can be different |
57 | * strategies: | 57 | * strategies: |
58 | */ | 58 | */ |
59 | #define FLUSH_AGING 0 /* only flush old buffers */ | ||
60 | #define FLUSH_SYNC 1 /* file being synced, or contention */ | 59 | #define FLUSH_SYNC 1 /* file being synced, or contention */ |
61 | #define FLUSH_WAIT 2 /* wait for completion */ | ||
62 | #define FLUSH_STABLE 4 /* commit to stable storage */ | 60 | #define FLUSH_STABLE 4 /* commit to stable storage */ |
63 | #define FLUSH_LOWPRI 8 /* low priority background flush */ | 61 | #define FLUSH_LOWPRI 8 /* low priority background flush */ |
64 | #define FLUSH_HIGHPRI 16 /* high priority memory reclaim flush */ | 62 | #define FLUSH_HIGHPRI 16 /* high priority memory reclaim flush */ |
@@ -419,7 +417,7 @@ void nfs_commit_free(struct nfs_write_data *p); | |||
419 | * Try to write back everything synchronously (but check the | 417 | * Try to write back everything synchronously (but check the |
420 | * return value!) | 418 | * return value!) |
421 | */ | 419 | */ |
422 | extern int nfs_sync_inode(struct inode *, unsigned long, unsigned int, int); | 420 | extern int nfs_sync_inode_wait(struct inode *, unsigned long, unsigned int, int); |
423 | #if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4) | 421 | #if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4) |
424 | extern int nfs_commit_inode(struct inode *, int); | 422 | extern int nfs_commit_inode(struct inode *, int); |
425 | extern void nfs_commit_release(void *wdata); | 423 | extern void nfs_commit_release(void *wdata); |
@@ -440,7 +438,7 @@ nfs_have_writebacks(struct inode *inode) | |||
440 | static inline int | 438 | static inline int |
441 | nfs_wb_all(struct inode *inode) | 439 | nfs_wb_all(struct inode *inode) |
442 | { | 440 | { |
443 | int error = nfs_sync_inode(inode, 0, 0, FLUSH_WAIT); | 441 | int error = nfs_sync_inode_wait(inode, 0, 0, 0); |
444 | return (error < 0) ? error : 0; | 442 | return (error < 0) ? error : 0; |
445 | } | 443 | } |
446 | 444 | ||
@@ -449,8 +447,8 @@ nfs_wb_all(struct inode *inode) | |||
449 | */ | 447 | */ |
450 | static inline int nfs_wb_page_priority(struct inode *inode, struct page* page, int how) | 448 | static inline int nfs_wb_page_priority(struct inode *inode, struct page* page, int how) |
451 | { | 449 | { |
452 | int error = nfs_sync_inode(inode, page->index, 1, | 450 | int error = nfs_sync_inode_wait(inode, page->index, 1, |
453 | how | FLUSH_WAIT | FLUSH_STABLE); | 451 | how | FLUSH_STABLE); |
454 | return (error < 0) ? error : 0; | 452 | return (error < 0) ? error : 0; |
455 | } | 453 | } |
456 | 454 | ||