summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-06-08 17:51:10 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-06-09 13:56:47 -0700
commitde6a8ec9822dbe2ce1f5a273cfac9e16032387e2 (patch)
treee5012ee6ce17898a09a5bcb93926ebd7c3dca398 /fs
parentc5bda1c8b13ad7840ae0e8c9a2926df686ba6e06 (diff)
downloadop-kernel-dev-de6a8ec9822dbe2ce1f5a273cfac9e16032387e2.zip
op-kernel-dev-de6a8ec9822dbe2ce1f5a273cfac9e16032387e2.tar.gz
f2fs: drop the volatile_write flag only
When aborting volatile_writes, let's drop its flag and give up any further volatile_writes. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 096e08c..53c1b74 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1391,11 +1391,9 @@ static int f2fs_ioc_abort_volatile_write(struct file *filp)
clear_inode_flag(F2FS_I(inode), FI_ATOMIC_FILE);
}
- if (f2fs_is_volatile_file(inode)) {
+ if (f2fs_is_volatile_file(inode))
clear_inode_flag(F2FS_I(inode), FI_VOLATILE_FILE);
- filemap_fdatawrite(inode->i_mapping);
- set_inode_flag(F2FS_I(inode), FI_VOLATILE_FILE);
- }
+
mnt_drop_write_file(filp);
return ret;
}
OpenPOWER on IntegriCloud