sysfs.c (40452ffca3c1a0f2994e826f9fa213b107f1a2d4) sysfs.c (ab92184ff8f12979f3d3dd5ed601ed85770d81ba)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd.
4 * https://www.oppo.com/
5 */
6#include <linux/sysfs.h>
7#include <linux/kobject.h>
8

--- 61 unchanged lines hidden (view full) ---

70/* Features this copy of erofs supports */
71EROFS_ATTR_FEATURE(zero_padding);
72EROFS_ATTR_FEATURE(compr_cfgs);
73EROFS_ATTR_FEATURE(big_pcluster);
74EROFS_ATTR_FEATURE(chunked_file);
75EROFS_ATTR_FEATURE(device_table);
76EROFS_ATTR_FEATURE(compr_head2);
77EROFS_ATTR_FEATURE(sb_chksum);
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd.
4 * https://www.oppo.com/
5 */
6#include <linux/sysfs.h>
7#include <linux/kobject.h>
8

--- 61 unchanged lines hidden (view full) ---

70/* Features this copy of erofs supports */
71EROFS_ATTR_FEATURE(zero_padding);
72EROFS_ATTR_FEATURE(compr_cfgs);
73EROFS_ATTR_FEATURE(big_pcluster);
74EROFS_ATTR_FEATURE(chunked_file);
75EROFS_ATTR_FEATURE(device_table);
76EROFS_ATTR_FEATURE(compr_head2);
77EROFS_ATTR_FEATURE(sb_chksum);
78EROFS_ATTR_FEATURE(ztailpacking);
78
79static struct attribute *erofs_feat_attrs[] = {
80 ATTR_LIST(zero_padding),
81 ATTR_LIST(compr_cfgs),
82 ATTR_LIST(big_pcluster),
83 ATTR_LIST(chunked_file),
84 ATTR_LIST(device_table),
85 ATTR_LIST(compr_head2),
86 ATTR_LIST(sb_chksum),
79
80static struct attribute *erofs_feat_attrs[] = {
81 ATTR_LIST(zero_padding),
82 ATTR_LIST(compr_cfgs),
83 ATTR_LIST(big_pcluster),
84 ATTR_LIST(chunked_file),
85 ATTR_LIST(device_table),
86 ATTR_LIST(compr_head2),
87 ATTR_LIST(sb_chksum),
88 ATTR_LIST(ztailpacking),
87 NULL,
88};
89ATTRIBUTE_GROUPS(erofs_feat);
90
91static unsigned char *__struct_ptr(struct erofs_sb_info *sbi,
92 int struct_type, int offset)
93{
94 if (struct_type == struct_erofs_sb_info)

--- 160 unchanged lines hidden ---
89 NULL,
90};
91ATTRIBUTE_GROUPS(erofs_feat);
92
93static unsigned char *__struct_ptr(struct erofs_sb_info *sbi,
94 int struct_type, int offset)
95{
96 if (struct_type == struct_erofs_sb_info)

--- 160 unchanged lines hidden ---