Message ID | 1439224487.5233.2.camel@primarydata.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Aug 10, 2015 at 12:34:47PM -0400, Trond Myklebust wrote: > The following patch should fix it. Do you mind if I just squash it in > to the existing one? Fine with me. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 9553e024fa7d..1dad18105ed0 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -628,9 +628,9 @@ void nfs_super_set_maxbytes(struct super_block *sb, __u64 maxfilesize) static inline void nfs_mark_page_unstable(struct page *page, struct nfs_commit_info *cinfo) { - struct inode *inode = page_file_mapping(page)->host; - if (!cinfo->dreq) { + struct inode *inode = page_file_mapping(page)->host; + inc_zone_page_state(page, NR_UNSTABLE_NFS); inc_wb_stat(&inode_to_bdi(inode)->wb, WB_RECLAIMABLE); __mark_inode_dirty(inode, I_DIRTY_DATASYNC);