mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 01:08:03 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
20
fs/sysv/symlink.c
Normal file
20
fs/sysv/symlink.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* linux/fs/sysv/symlink.c
|
||||
*
|
||||
* Handling of System V filesystem fast symlinks extensions.
|
||||
* Aug 2001, Christoph Hellwig (hch@infradead.org)
|
||||
*/
|
||||
|
||||
#include "sysv.h"
|
||||
#include <linux/namei.h>
|
||||
|
||||
static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
|
||||
{
|
||||
nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->i_data);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const struct inode_operations sysv_fast_symlink_inode_operations = {
|
||||
.readlink = generic_readlink,
|
||||
.follow_link = sysv_follow_link,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue