projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
f2fs: enable in-place-update for fdatasync
[deliverable/linux.git]
/
fs
/
f2fs
/
segment.h
diff --git
a/fs/f2fs/segment.h
b/fs/f2fs/segment.h
index ee5c75e08d9cc24b917356f01e1933717400f232..55973f7b0330be844e17c0f02b7c02d661ca8c3e 100644
(file)
--- a/
fs/f2fs/segment.h
+++ b/
fs/f2fs/segment.h
@@
-486,6
+486,10
@@
static inline bool need_inplace_update(struct inode *inode)
if (S_ISDIR(inode->i_mode))
return false;
+ /* this is only set during fdatasync */
+ if (is_inode_flag_set(F2FS_I(inode), FI_NEED_IPU))
+ return true;
+
switch (SM_I(sbi)->ipu_policy) {
case F2FS_IPU_FORCE:
return true;
This page took
0.025642 seconds
and
5
git commands to generate.