OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f97c32
)
f2fs: do not skip any writes under memory pressure
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 7 Nov 2014 01:23:08 +0000
(17:23 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 10 Nov 2014 14:51:38 +0000
(06:51 -0800)
Under memory pressure, let's avoid skipping data writes.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.h
patch
|
blob
|
history
diff --git
a/fs/f2fs/segment.h
b/fs/f2fs/segment.h
index
6723ccc
..
7f327c0
100644
(file)
--- a/
fs/f2fs/segment.h
+++ b/
fs/f2fs/segment.h
@@
-711,6
+711,9
@@
static inline unsigned int max_hw_blocks(struct f2fs_sb_info *sbi)
*/
static inline int nr_pages_to_skip(struct f2fs_sb_info *sbi, int type)
{
+ if (sbi->sb->s_bdi->dirty_exceeded)
+ return 0;
+
if (type == DATA)
return sbi->blocks_per_seg;
else if (type == NODE)