aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2006-03-23 11:21:02 -0500
committerAnton Altaparmakov <aia21@cantab.net>2006-03-23 11:21:02 -0500
commit20fdcf1d543b1285ef8b1c1993a9221f2eda52dc (patch)
tree476002aa4a3af68a5986ac38c51ab0f083d6c520 /fs/ntfs
parenta778f217328a7391e0919b6463ec7f143851d12d (diff)
NTFS: Add a missing call to flush_dcache_mft_record_page() in
fs/ntfs/inode.c::ntfs_write_inode(). Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs')
-rw-r--r--fs/ntfs/ChangeLog2
-rw-r--r--fs/ntfs/inode.c9
2 files changed, 8 insertions, 3 deletions
diff --git a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog
index 5fb74e62f535..d20031587bbb 100644
--- a/fs/ntfs/ChangeLog
+++ b/fs/ntfs/ChangeLog
@@ -41,6 +41,8 @@ ToDo/Notes:
41 - Fix a bug in fs/ntfs/inode.c::ntfs_read_locked_index_inode() where we 41 - Fix a bug in fs/ntfs/inode.c::ntfs_read_locked_index_inode() where we
42 forgot to update a temporary variable so loading index inodes which 42 forgot to update a temporary variable so loading index inodes which
43 have an index allocation attribute failed. 43 have an index allocation attribute failed.
44 - Add a missing call to flush_dcache_mft_record_page() in
45 fs/ntfs/inode.c::ntfs_write_inode().
44 46
452.1.26 - Minor bug fixes and updates. 472.1.26 - Minor bug fixes and updates.
46 48
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c
index 5f4b23d213b9..73791b2d9495 100644
--- a/fs/ntfs/inode.c
+++ b/fs/ntfs/inode.c
@@ -3064,9 +3064,12 @@ int ntfs_write_inode(struct inode *vi, int sync)
3064 * record will be cleaned and written out to disk below, i.e. before 3064 * record will be cleaned and written out to disk below, i.e. before
3065 * this function returns. 3065 * this function returns.
3066 */ 3066 */
3067 if (modified && !NInoTestSetDirty(ctx->ntfs_ino)) 3067 if (modified) {
3068 mark_ntfs_record_dirty(ctx->ntfs_ino->page, 3068 flush_dcache_mft_record_page(ctx->ntfs_ino);
3069 ctx->ntfs_ino->page_ofs); 3069 if (!NInoTestSetDirty(ctx->ntfs_ino)) {
3070 mark_ntfs_record_dirty(ctx->ntfs_ino->page,
3071 ctx->ntfs_ino->page_ofs);
3072 }
3070 ntfs_attr_put_search_ctx(ctx); 3073 ntfs_attr_put_search_ctx(ctx);
3071 /* Now the access times are updated, write the base mft record. */ 3074 /* Now the access times are updated, write the base mft record. */
3072 if (NInoDirty(ni)) 3075 if (NInoDirty(ni))