android_kernel_google_msm/fs/debugfs
Al Viro 3f02b32374 debugfs: leave freeing a symlink body until inode eviction
commit 0db59e59299f0b67450c5db21f7f316c8fb04e84 upstream.

As it is, we have debugfs_remove() racing with symlink traversals.
Supply ->evict_inode() and do freeing there - inode will remain
pinned until we are done with the symlink body.

And rip the idiocy with checking if dentry is positive right after
we'd verified debugfs_positive(), which is a stronger check...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[lizf: Backported to 3.4:
 - call end_writeback() instead of clear_inode()
 - call truncate_inode_pages() instead of truncate_inode_pages_final()]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-06-19 11:40:18 +08:00
..
file.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
inode.c debugfs: leave freeing a symlink body until inode eviction 2015-06-19 11:40:18 +08:00
Makefile