projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd52b63
)
f2fs: fix wrong condition check to trigger f2fs_sync_fs
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 10 Dec 2014 23:20:48 +0000
(15:20 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 10 Jan 2015 01:02:21 +0000
(17:02 -0800)
If there is not enough available memory, we need to trigger f2fs_sync_fs.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index 42607a679923356c314d4b77399ff3e4b6cf8320..11e4b5c146162aa23def8febb4ab381002adc3fa 100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-290,7
+290,7
@@
void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi)
/* check the # of cached NAT entries and prefree segments */
if (try_to_free_nats(sbi, NAT_ENTRY_PER_BLOCK) ||
excess_prefree_segs(sbi) ||
- available_free_memory(sbi, INO_ENTRIES))
+
!
available_free_memory(sbi, INO_ENTRIES))
f2fs_sync_fs(sbi->sb, true);
}