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
27
fs/ext3/namei.h
Normal file
27
fs/ext3/namei.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* linux/fs/ext3/namei.h
|
||||
*
|
||||
* Copyright (C) 2005 Simtec Electronics
|
||||
* Ben Dooks <ben@simtec.co.uk>
|
||||
*
|
||||
*/
|
||||
|
||||
extern struct dentry *ext3_get_parent(struct dentry *child);
|
||||
|
||||
static inline struct buffer_head *ext3_dir_bread(handle_t *handle,
|
||||
struct inode *inode,
|
||||
int block, int create,
|
||||
int *err)
|
||||
{
|
||||
struct buffer_head *bh;
|
||||
|
||||
bh = ext3_bread(handle, inode, block, create, err);
|
||||
|
||||
if (!bh && !(*err)) {
|
||||
*err = -EIO;
|
||||
ext3_error(inode->i_sb, __func__,
|
||||
"Directory hole detected on inode %lu\n",
|
||||
inode->i_ino);
|
||||
return NULL;
|
||||
}
|
||||
return bh;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue