projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
002a41c
)
f2fs: add f2fs_balance_fs for expand_inode_data
author
Chao Yu
<chao2.yu@samsung.com>
Mon, 4 Aug 2014 02:11:17 +0000
(10:11 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 4 Aug 2014 20:02:03 +0000
(13:02 -0700)
This patch adds f2fs_balance_fs in expand_inode_data to avoid allocation failure
with segment.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index 2a91a7d1760cae25b2e90c7668b92c7ce6a74931..208f1a9bd569b6d2c7afafa20c5a5dff9f9b39d1 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-672,6
+672,8
@@
static int expand_inode_data(struct inode *inode, loff_t offset,
loff_t off_start, off_end;
int ret = 0;
+ f2fs_balance_fs(sbi);
+
ret = inode_newsize_ok(inode, (len + offset));
if (ret)
return ret;