]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
f2fs: fix incorrectly stat number of inline data inode
authorChao Yu <chao2.yu@samsung.com>
Mon, 16 Feb 2015 08:20:27 +0000 (16:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 3 Mar 2015 17:58:45 +0000 (09:58 -0800)
We should stat inline data information for temp file in f2fs_tmpfile if we
enable inline_data feature.

Otherwise, inline data stat number will be wrong after this temp file is
evicted.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c

index e79639a9787aab0f5d8d8b27fae7354a5cd087b6..1e2ae21bd6b6010e18c5949b7625ef3dd3e0e704 100644 (file)
@@ -693,6 +693,8 @@ static int f2fs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode)
        f2fs_unlock_op(sbi);
 
        alloc_nid_done(sbi, inode->i_ino);
+
+       stat_inc_inline_inode(inode);
        d_tmpfile(dentry, inode);
        unlock_new_inode(inode);
        return 0;