]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: drop the volatile_write flag only
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Jun 2015 00:51:10 +0000 (17:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Jun 2015 20:56:47 +0000 (13:56 -0700)
When aborting volatile_writes, let's drop its flag and give up any further
volatile_writes.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c

index 096e08ca394586448ec60ddb6c26162616811b3e..53c1b743754b0884f8cd9f2eab9f25f69dd897d3 100644 (file)
@@ -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;
 }