diff options
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 212b8c883d22..b802fb3a2d99 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -598,6 +598,19 @@ void nfs_super_set_maxbytes(struct super_block *sb, __u64 maxfilesize) | |||
598 | } | 598 | } |
599 | 599 | ||
600 | /* | 600 | /* |
601 | * Record the page as unstable and mark its inode as dirty. | ||
602 | */ | ||
603 | static inline | ||
604 | void nfs_mark_page_unstable(struct page *page) | ||
605 | { | ||
606 | struct inode *inode = page_file_mapping(page)->host; | ||
607 | |||
608 | inc_zone_page_state(page, NR_UNSTABLE_NFS); | ||
609 | inc_bdi_stat(inode_to_bdi(inode), BDI_RECLAIMABLE); | ||
610 | __mark_inode_dirty(inode, I_DIRTY_DATASYNC); | ||
611 | } | ||
612 | |||
613 | /* | ||
601 | * Determine the number of bytes of data the page contains | 614 | * Determine the number of bytes of data the page contains |
602 | */ | 615 | */ |
603 | static inline | 616 | static inline |