mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
consolidate simple ->d_delete() instances
Rename simple_delete_dentry() to always_delete_dentry() and export it. Export simple_dentry_operations, while we are at it, and get rid of their duplicates Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
951b4bd553
commit
b26d4cd385
11 changed files with 18 additions and 101 deletions
|
|
@ -33,15 +33,6 @@ static inline struct hostfs_inode_info *HOSTFS_I(struct inode *inode)
|
|||
|
||||
#define FILE_HOSTFS_I(file) HOSTFS_I(file_inode(file))
|
||||
|
||||
static int hostfs_d_delete(const struct dentry *dentry)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const struct dentry_operations hostfs_dentry_ops = {
|
||||
.d_delete = hostfs_d_delete,
|
||||
};
|
||||
|
||||
/* Changed in hostfs_args before the kernel starts running */
|
||||
static char *root_ino = "";
|
||||
static int append = 0;
|
||||
|
|
@ -925,7 +916,7 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent)
|
|||
sb->s_blocksize_bits = 10;
|
||||
sb->s_magic = HOSTFS_SUPER_MAGIC;
|
||||
sb->s_op = &hostfs_sbops;
|
||||
sb->s_d_op = &hostfs_dentry_ops;
|
||||
sb->s_d_op = &simple_dentry_operations;
|
||||
sb->s_maxbytes = MAX_LFS_FILESIZE;
|
||||
|
||||
/* NULL is printed as <NULL> by sprintf: avoid that. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue