mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
ubifs: remove useless code
By checking ubifs source code, s_instances parameter is not used anymore. So, set this parameter and the associated source code under __UBOOT__ compilation. Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
committed by
Heiko Schocher
parent
4a94e53b23
commit
5a08cfee39
@@ -2360,7 +2360,9 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags)
|
|||||||
return ERR_PTR(err);
|
return ERR_PTR(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __UBOOT__
|
||||||
INIT_HLIST_NODE(&s->s_instances);
|
INIT_HLIST_NODE(&s->s_instances);
|
||||||
|
#endif
|
||||||
INIT_LIST_HEAD(&s->s_inodes);
|
INIT_LIST_HEAD(&s->s_inodes);
|
||||||
s->s_time_gran = 1000000000;
|
s->s_time_gran = 1000000000;
|
||||||
s->s_flags = flags;
|
s->s_flags = flags;
|
||||||
@@ -2429,14 +2431,12 @@ retry:
|
|||||||
#ifndef __UBOOT__
|
#ifndef __UBOOT__
|
||||||
strlcpy(s->s_id, type->name, sizeof(s->s_id));
|
strlcpy(s->s_id, type->name, sizeof(s->s_id));
|
||||||
list_add_tail(&s->s_list, &super_blocks);
|
list_add_tail(&s->s_list, &super_blocks);
|
||||||
#else
|
|
||||||
strncpy(s->s_id, type->name, sizeof(s->s_id));
|
|
||||||
#endif
|
|
||||||
hlist_add_head(&s->s_instances, &type->fs_supers);
|
hlist_add_head(&s->s_instances, &type->fs_supers);
|
||||||
#ifndef __UBOOT__
|
|
||||||
spin_unlock(&sb_lock);
|
spin_unlock(&sb_lock);
|
||||||
get_filesystem(type);
|
get_filesystem(type);
|
||||||
register_shrinker(&s->s_shrink);
|
register_shrinker(&s->s_shrink);
|
||||||
|
#else
|
||||||
|
strncpy(s->s_id, type->name, sizeof(s->s_id));
|
||||||
#endif
|
#endif
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
@@ -316,8 +316,8 @@ struct super_block {
|
|||||||
struct backing_dev_info *s_bdi;
|
struct backing_dev_info *s_bdi;
|
||||||
#endif
|
#endif
|
||||||
struct mtd_info *s_mtd;
|
struct mtd_info *s_mtd;
|
||||||
struct hlist_node s_instances;
|
|
||||||
#ifndef __UBOOT__
|
#ifndef __UBOOT__
|
||||||
|
struct hlist_node s_instances;
|
||||||
struct quota_info s_dquot; /* Diskquota specific options */
|
struct quota_info s_dquot; /* Diskquota specific options */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user