Skip to contentSkip to conversation

f2fs: drop the volatile_write flag only

PATCH New Jaegeuk Kim 1 participant 1 message Jun 10, 2015

Subsystems (2)
lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: drop the volatile_write flag only

When aborting volatile_writes, let's drop its flag and give up any further volatile_writes.

---
 fs/f2fs/file.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
fs/f2fs/file.c +2 -4
index 096e08c..53c1b74 100644
@@ -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;
 }
Signature · 1 line
2.1.1