commit | 81d7ed29ff6bdec903c36c26b386e16c014993b2 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Fri Apr 25 08:51:48 2008 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:04:02 2008 -0400 |
tree | 561f6d5b85c9af14acc97ec45b6ce6622c3ec3f4 | |
parent | bce4eae9864e6b6ebde5d7f05576ff0a6c3724d0 [diff] [blame] |
Btrfs: Throttle file_write when data=ordered is flushing the inode Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 5d537f2..8effdf4 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c
@@ -977,6 +977,7 @@ (start_pos + num_written - 1) >> PAGE_CACHE_SHIFT); } current->backing_dev_info = NULL; + btrfs_ordered_throttle(root, inode); return num_written ? num_written : err; }