diff options
author | Steve French <sfrench@us.ibm.com> | 2005-11-01 12:02:10 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-11-01 12:02:10 -0500 |
commit | ef0eaa13362041f531f951b89362bfbc177e2bc0 (patch) | |
tree | e2d43099698aa238f9d108c67451871b0d4073f9 /fs | |
parent | 53b2ec5518aa2623e8c0cb36f1c304a797988a46 (diff) | |
parent | df70b17f88a4d1d8545d3569a1f6d28c6004f9e4 (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs-writeback.c | 2 | ||||
-rw-r--r-- | fs/ntfs/file.c | 17 |
2 files changed, 10 insertions, 9 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index ffab4783ac64..c27f8d4098be 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -247,7 +247,7 @@ __writeback_single_inode(struct inode *inode, struct writeback_control *wbc) | |||
247 | wait_queue_head_t *wqh; | 247 | wait_queue_head_t *wqh; |
248 | 248 | ||
249 | if (!atomic_read(&inode->i_count)) | 249 | if (!atomic_read(&inode->i_count)) |
250 | WARN_ON(!(inode->i_state & I_WILL_FREE)); | 250 | WARN_ON(!(inode->i_state & (I_WILL_FREE|I_FREEING))); |
251 | else | 251 | else |
252 | WARN_ON(inode->i_state & I_WILL_FREE); | 252 | WARN_ON(inode->i_state & I_WILL_FREE); |
253 | 253 | ||
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index cf3e6ced2d01..727533891813 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c | |||
@@ -668,10 +668,10 @@ map_buffer_cached: | |||
668 | * to, we need to read it in before the write, | 668 | * to, we need to read it in before the write, |
669 | * i.e. now. | 669 | * i.e. now. |
670 | */ | 670 | */ |
671 | if (!buffer_uptodate(bh) && ((bh_pos < pos && | 671 | if (!buffer_uptodate(bh) && bh_pos < end && |
672 | bh_end > pos) || | 672 | bh_end > pos && |
673 | (bh_end > end && | 673 | (bh_pos < pos || |
674 | bh_end > end))) { | 674 | bh_end > end)) { |
675 | /* | 675 | /* |
676 | * If the buffer is fully or partially | 676 | * If the buffer is fully or partially |
677 | * within the initialized size, do an | 677 | * within the initialized size, do an |
@@ -784,10 +784,11 @@ retry_remap: | |||
784 | blocksize_bits); | 784 | blocksize_bits); |
785 | cdelta = 0; | 785 | cdelta = 0; |
786 | /* | 786 | /* |
787 | * If the number of remaining clusters in the | 787 | * If the number of remaining clusters touched |
788 | * @pages is smaller or equal to the number of | 788 | * by the write is smaller or equal to the |
789 | * cached clusters, unlock the runlist as the | 789 | * number of cached clusters, unlock the |
790 | * map cache will be used from now on. | 790 | * runlist as the map cache will be used from |
791 | * now on. | ||
791 | */ | 792 | */ |
792 | if (likely(vcn + vcn_len >= cend)) { | 793 | if (likely(vcn + vcn_len >= cend)) { |
793 | if (rl_write_locked) { | 794 | if (rl_write_locked) { |