Skip to content

Commit

Permalink
NFS: Ensure the inode is marked as dirty if we break out of nfs_wb_all()
Browse files Browse the repository at this point in the history
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Dec 6, 2006
1 parent fa8d8c5 commit e507d9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ int nfs_wb_all(struct inode *inode)
if (ret >= 0)
return 0;
out:
__mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
return ret;
}

Expand All @@ -1493,6 +1494,7 @@ int nfs_sync_mapping_range(struct address_space *mapping, loff_t range_start, lo
if (ret >= 0)
return 0;
out:
__mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
return ret;
}

Expand All @@ -1519,6 +1521,7 @@ int nfs_wb_page_priority(struct inode *inode, struct page *page, int how)
if (ret >= 0)
return 0;
out:
__mark_inode_dirty(inode, I_DIRTY_PAGES);
return ret;
}

Expand Down

0 comments on commit e507d9e

Please sign in to comment.