]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
f2fs: fix multiple f2fs_add_link() calls having same name
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 14 Feb 2017 17:54:37 +0000 (09:54 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit06132abde6b9a7e95cf139c01363e24483002e95
tree743bd6f03a817e08eba3043d6fbc87d7f58ad944
parent8f9ef7d60f7213781c239ee3012540e391fe0ea7
f2fs: fix multiple f2fs_add_link() calls having same name

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 88c5c13a5027b36d914536fdba23f069d7067204 upstream.

It turns out a stakable filesystem like sdcardfs in AOSP can trigger multiple
vfs_create() to lower filesystem. In that case, f2fs will add multiple dentries
having same name which breaks filesystem consistency.

Until upper layer fixes, let's work around by f2fs, which shows actually not
much performance regression.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/f2fs/dir.c
fs/f2fs/f2fs.h