Commit e507d9eb authored by Trond Myklebust's avatar Trond Myklebust

NFS: Ensure the inode is marked as dirty if we break out of nfs_wb_all()

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent fa8d8c5b
...@@ -1469,6 +1469,7 @@ int nfs_wb_all(struct inode *inode) ...@@ -1469,6 +1469,7 @@ int nfs_wb_all(struct inode *inode)
if (ret >= 0) if (ret >= 0)
return 0; return 0;
out: out:
__mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
return ret; return ret;
} }
...@@ -1493,6 +1494,7 @@ int nfs_sync_mapping_range(struct address_space *mapping, loff_t range_start, lo ...@@ -1493,6 +1494,7 @@ int nfs_sync_mapping_range(struct address_space *mapping, loff_t range_start, lo
if (ret >= 0) if (ret >= 0)
return 0; return 0;
out: out:
__mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
return ret; return ret;
} }
...@@ -1519,6 +1521,7 @@ int nfs_wb_page_priority(struct inode *inode, struct page *page, int how) ...@@ -1519,6 +1521,7 @@ int nfs_wb_page_priority(struct inode *inode, struct page *page, int how)
if (ret >= 0) if (ret >= 0)
return 0; return 0;
out: out:
__mark_inode_dirty(inode, I_DIRTY_PAGES);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment