* [PATCH 2/2] f2fs: reserve space for tmpfile
@ 2015-05-18 5:55 Chao Yu
0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2015-05-18 5:55 UTC (permalink / raw)
To: Jaegeuk Kim, Changman Lee; +Cc: linux-f2fs-devel, linux-kernel
Add missed f2fs_balance_fs to reserve space for ->tmpfile.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
---
fs/f2fs/namei.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index bed0cb0..38a783e 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -517,6 +517,9 @@ static int __f2fs_tmpfile(struct inode *dir, struct dentry *dentry,
struct inode *inode;
int err;
+ if (!whiteout)
+ f2fs_balance_fs(sbi);
+
inode = f2fs_new_inode(dir, mode);
if (IS_ERR(inode))
return PTR_ERR(inode);
--
2.3.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-18 5:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-18 5:55 [PATCH 2/2] f2fs: reserve space for tmpfile Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome