Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
77ba7877
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
77ba7877
编写于
4月 02, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xfs: switch to proper __bitwise type for KM_... flags
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
c217a2a0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
19 deletion
+20
-19
fs/xfs/kmem.c
fs/xfs/kmem.c
+5
-5
fs/xfs/kmem.h
fs/xfs/kmem.h
+11
-10
fs/xfs/xfs_log.c
fs/xfs/xfs_log.c
+1
-1
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_log_priv.h
+1
-1
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.c
+1
-1
fs/xfs/xfs_trans.h
fs/xfs/xfs_trans.h
+1
-1
未找到文件。
fs/xfs/kmem.c
浏览文件 @
77ba7877
...
...
@@ -46,7 +46,7 @@ kmem_zalloc_greedy(size_t *size, size_t minsize, size_t maxsize)
}
void
*
kmem_alloc
(
size_t
size
,
unsigned
int
__nocas
t
flags
)
kmem_alloc
(
size_t
size
,
xfs_km_flags_
t
flags
)
{
int
retries
=
0
;
gfp_t
lflags
=
kmem_flags_convert
(
flags
);
...
...
@@ -65,7 +65,7 @@ kmem_alloc(size_t size, unsigned int __nocast flags)
}
void
*
kmem_zalloc
(
size_t
size
,
unsigned
int
__nocas
t
flags
)
kmem_zalloc
(
size_t
size
,
xfs_km_flags_
t
flags
)
{
void
*
ptr
;
...
...
@@ -87,7 +87,7 @@ kmem_free(const void *ptr)
void
*
kmem_realloc
(
const
void
*
ptr
,
size_t
newsize
,
size_t
oldsize
,
unsigned
int
__nocas
t
flags
)
xfs_km_flags_
t
flags
)
{
void
*
new
;
...
...
@@ -102,7 +102,7 @@ kmem_realloc(const void *ptr, size_t newsize, size_t oldsize,
}
void
*
kmem_zone_alloc
(
kmem_zone_t
*
zone
,
unsigned
int
__nocas
t
flags
)
kmem_zone_alloc
(
kmem_zone_t
*
zone
,
xfs_km_flags_
t
flags
)
{
int
retries
=
0
;
gfp_t
lflags
=
kmem_flags_convert
(
flags
);
...
...
@@ -121,7 +121,7 @@ kmem_zone_alloc(kmem_zone_t *zone, unsigned int __nocast flags)
}
void
*
kmem_zone_zalloc
(
kmem_zone_t
*
zone
,
unsigned
int
__nocas
t
flags
)
kmem_zone_zalloc
(
kmem_zone_t
*
zone
,
xfs_km_flags_
t
flags
)
{
void
*
ptr
;
...
...
fs/xfs/kmem.h
浏览文件 @
77ba7877
...
...
@@ -27,10 +27,11 @@
* General memory allocation interfaces
*/
#define KM_SLEEP 0x0001u
#define KM_NOSLEEP 0x0002u
#define KM_NOFS 0x0004u
#define KM_MAYFAIL 0x0008u
typedef
unsigned
__bitwise
xfs_km_flags_t
;
#define KM_SLEEP ((__force xfs_km_flags_t)0x0001u)
#define KM_NOSLEEP ((__force xfs_km_flags_t)0x0002u)
#define KM_NOFS ((__force xfs_km_flags_t)0x0004u)
#define KM_MAYFAIL ((__force xfs_km_flags_t)0x0008u)
/*
* We use a special process flag to avoid recursive callbacks into
...
...
@@ -38,7 +39,7 @@
* warnings, so we explicitly skip any generic ones (silly of us).
*/
static
inline
gfp_t
kmem_flags_convert
(
unsigned
int
__nocas
t
flags
)
kmem_flags_convert
(
xfs_km_flags_
t
flags
)
{
gfp_t
lflags
;
...
...
@@ -54,9 +55,9 @@ kmem_flags_convert(unsigned int __nocast flags)
return
lflags
;
}
extern
void
*
kmem_alloc
(
size_t
,
unsigned
int
__nocas
t
);
extern
void
*
kmem_zalloc
(
size_t
,
unsigned
int
__nocas
t
);
extern
void
*
kmem_realloc
(
const
void
*
,
size_t
,
size_t
,
unsigned
int
__nocas
t
);
extern
void
*
kmem_alloc
(
size_t
,
xfs_km_flags_
t
);
extern
void
*
kmem_zalloc
(
size_t
,
xfs_km_flags_
t
);
extern
void
*
kmem_realloc
(
const
void
*
,
size_t
,
size_t
,
xfs_km_flags_
t
);
extern
void
kmem_free
(
const
void
*
);
static
inline
void
*
kmem_zalloc_large
(
size_t
size
)
...
...
@@ -107,7 +108,7 @@ kmem_zone_destroy(kmem_zone_t *zone)
kmem_cache_destroy
(
zone
);
}
extern
void
*
kmem_zone_alloc
(
kmem_zone_t
*
,
unsigned
int
__nocas
t
);
extern
void
*
kmem_zone_zalloc
(
kmem_zone_t
*
,
unsigned
int
__nocas
t
);
extern
void
*
kmem_zone_alloc
(
kmem_zone_t
*
,
xfs_km_flags_
t
);
extern
void
*
kmem_zone_zalloc
(
kmem_zone_t
*
,
xfs_km_flags_
t
);
#endif
/* __XFS_SUPPORT_KMEM_H__ */
fs/xfs/xfs_log.c
浏览文件 @
77ba7877
...
...
@@ -3152,7 +3152,7 @@ xlog_ticket_alloc(
int
cnt
,
char
client
,
bool
permanent
,
int
alloc_flags
)
xfs_km_flags_t
alloc_flags
)
{
struct
xlog_ticket
*
tic
;
uint
num_headers
;
...
...
fs/xfs/xfs_log_priv.h
浏览文件 @
77ba7877
...
...
@@ -555,7 +555,7 @@ extern void xlog_pack_data(xlog_t *log, xlog_in_core_t *iclog, int);
extern
kmem_zone_t
*
xfs_log_ticket_zone
;
struct
xlog_ticket
*
xlog_ticket_alloc
(
struct
log
*
log
,
int
unit_bytes
,
int
count
,
char
client
,
bool
permanent
,
in
t
alloc_flags
);
xfs_km_flags_
t
alloc_flags
);
static
inline
void
...
...
fs/xfs/xfs_trans.c
浏览文件 @
77ba7877
...
...
@@ -584,7 +584,7 @@ xfs_trans_t *
_xfs_trans_alloc
(
xfs_mount_t
*
mp
,
uint
type
,
uint
memflags
)
xfs_km_flags_t
memflags
)
{
xfs_trans_t
*
tp
;
...
...
fs/xfs/xfs_trans.h
浏览文件 @
77ba7877
...
...
@@ -443,7 +443,7 @@ typedef struct xfs_trans {
* XFS transaction mechanism exported interfaces.
*/
xfs_trans_t
*
xfs_trans_alloc
(
struct
xfs_mount
*
,
uint
);
xfs_trans_t
*
_xfs_trans_alloc
(
struct
xfs_mount
*
,
uint
,
uin
t
);
xfs_trans_t
*
_xfs_trans_alloc
(
struct
xfs_mount
*
,
uint
,
xfs_km_flags_
t
);
xfs_trans_t
*
xfs_trans_dup
(
xfs_trans_t
*
);
int
xfs_trans_reserve
(
xfs_trans_t
*
,
uint
,
uint
,
uint
,
uint
,
uint
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录