]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: use dget_parent and file_dentry in f2fs_file_open
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 11 Apr 2016 22:15:38 +0000 (15:15 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Apr 2016 17:24:22 +0000 (10:24 -0700)
commit33b1395124c63ed4a42e33c1dd14859f9b3f29c2
tree60ded5e8774cb091f56d58756c9d16211266050b
parentd7d75352890447b55c13a81df316a6894ff32ecf
f2fs: use dget_parent and file_dentry in f2fs_file_open

This patch synced with the below two ext4 crypto fixes together.

In 4.6-rc1, f2fs newly introduced accessing f_path.dentry which crashes
overlayfs. To fix, now we need to use file_dentry() to access that field.

Fixes: c0a37d487884 ("ext4: use file_dentry()")
Fixes: 9dd78d8c9a7b ("ext4: use dget_parent() in ext4_file_open()")
Cc: Miklos Szeredi <mszeredi@redhat.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c