Skip to contentSkip to conversation

f2fs: reserve space for tmpfile

PATCH Superseded Chao Yu 1 participant 1 message May 18, 2015 F2FS file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 2/2 f2fs: reserve space for tmpfile

Add missed f2fs_balance_fs to reserve space for ->tmpfile.

---
 fs/f2fs/namei.c | 3 +++
 1 file changed, 3 insertions(+)
fs/f2fs/namei.c +3 -0
index bed0cb0..38a783e 100644
@@ -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);
Signature · 1 line
2.3.3