summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/inode.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2006-03-23 16:21:02 +0000
committerAnton Altaparmakov <aia21@cantab.net>2006-03-23 16:21:02 +0000
commit20fdcf1d543b1285ef8b1c1993a9221f2eda52dc (patch)
tree476002aa4a3af68a5986ac38c51ab0f083d6c520 /fs/ntfs/inode.c
parenta778f217328a7391e0919b6463ec7f143851d12d (diff)
downloadop-kernel-dev-20fdcf1d543b1285ef8b1c1993a9221f2eda52dc.zip
op-kernel-dev-20fdcf1d543b1285ef8b1c1993a9221f2eda52dc.tar.gz
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/inode.c')
-rw-r--r--fs/ntfs/inode.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c
index 5f4b23d..73791b2 100644
--- a/fs/ntfs/inode.c
+++ b/fs/ntfs/inode.c
@@ -3064,9 +3064,12 @@ int ntfs_write_inode(struct inode *vi, int sync)
* record will be cleaned and written out to disk below, i.e. before
* this function returns.
*/
- if (modified && !NInoTestSetDirty(ctx->ntfs_ino))
- mark_ntfs_record_dirty(ctx->ntfs_ino->page,
- ctx->ntfs_ino->page_ofs);
+ if (modified) {
+ flush_dcache_mft_record_page(ctx->ntfs_ino);
+ if (!NInoTestSetDirty(ctx->ntfs_ino)) {
+ mark_ntfs_record_dirty(ctx->ntfs_ino->page,
+ ctx->ntfs_ino->page_ofs);
+ }
ntfs_attr_put_search_ctx(ctx);
/* Now the access times are updated, write the base mft record. */
if (NInoDirty(ni))
OpenPOWER on IntegriCloud