Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
2b93681f
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2b93681f
编写于
3月 25, 2015
作者:
D
Dave Chinner
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'xfs-misc-fixes-for-4.1-2' into for-next
Conflicts: fs/xfs/libxfs/xfs_bmap.c fs/xfs/xfs_inode.c
上级
d41bb034
5e9383f9
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
20 addition
and
52 deletion
+20
-52
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.c
+0
-32
fs/xfs/libxfs/xfs_da_btree.c
fs/xfs/libxfs/xfs_da_btree.c
+4
-4
fs/xfs/xfs_error.c
fs/xfs/xfs_error.c
+1
-1
fs/xfs/xfs_filestream.c
fs/xfs/xfs_filestream.c
+1
-1
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.c
+2
-2
fs/xfs/xfs_mru_cache.c
fs/xfs/xfs_mru_cache.c
+1
-1
fs/xfs/xfs_super.c
fs/xfs/xfs_super.c
+1
-1
fs/xfs/xfs_trace.h
fs/xfs/xfs_trace.h
+10
-10
未找到文件。
fs/xfs/libxfs/xfs_bmap.c
浏览文件 @
2b93681f
...
...
@@ -244,30 +244,6 @@ xfs_bmap_forkoff_reset(
}
}
/*
* Debug/sanity checking code
*/
STATIC
int
xfs_bmap_sanity_check
(
struct
xfs_mount
*
mp
,
struct
xfs_buf
*
bp
,
int
level
)
{
struct
xfs_btree_block
*
block
=
XFS_BUF_TO_BLOCK
(
bp
);
if
(
block
->
bb_magic
!=
cpu_to_be32
(
XFS_BMAP_CRC_MAGIC
)
&&
block
->
bb_magic
!=
cpu_to_be32
(
XFS_BMAP_MAGIC
))
return
0
;
if
(
be16_to_cpu
(
block
->
bb_level
)
!=
level
||
be16_to_cpu
(
block
->
bb_numrecs
)
==
0
||
be16_to_cpu
(
block
->
bb_numrecs
)
>
mp
->
m_bmap_dmxr
[
level
!=
0
])
return
0
;
return
1
;
}
#ifdef DEBUG
STATIC
struct
xfs_buf
*
xfs_bmap_get_bp
(
...
...
@@ -410,9 +386,6 @@ xfs_bmap_check_leaf_extents(
goto
error_norelse
;
}
block
=
XFS_BUF_TO_BLOCK
(
bp
);
XFS_WANT_CORRUPTED_GOTO
(
mp
,
xfs_bmap_sanity_check
(
mp
,
bp
,
level
),
error0
);
if
(
level
==
0
)
break
;
...
...
@@ -1312,8 +1285,6 @@ xfs_bmap_read_extents(
if
(
error
)
return
error
;
block
=
XFS_BUF_TO_BLOCK
(
bp
);
XFS_WANT_CORRUPTED_GOTO
(
mp
,
xfs_bmap_sanity_check
(
mp
,
bp
,
level
),
error0
);
if
(
level
==
0
)
break
;
pp
=
XFS_BMBT_PTR_ADDR
(
mp
,
block
,
1
,
mp
->
m_bmap_dmxr
[
1
]);
...
...
@@ -1346,9 +1317,6 @@ xfs_bmap_read_extents(
XFS_ERRLEVEL_LOW
,
ip
->
i_mount
,
block
);
goto
error0
;
}
XFS_WANT_CORRUPTED_GOTO
(
mp
,
xfs_bmap_sanity_check
(
mp
,
bp
,
0
),
error0
);
/*
* Read-ahead the next leaf block, if any.
*/
...
...
fs/xfs/libxfs/xfs_da_btree.c
浏览文件 @
2b93681f
...
...
@@ -538,12 +538,12 @@ xfs_da3_root_split(
oldroot
=
blk1
->
bp
->
b_addr
;
if
(
oldroot
->
hdr
.
info
.
magic
==
cpu_to_be16
(
XFS_DA_NODE_MAGIC
)
||
oldroot
->
hdr
.
info
.
magic
==
cpu_to_be16
(
XFS_DA3_NODE_MAGIC
))
{
struct
xfs_da3_icnode_hdr
nodehdr
;
struct
xfs_da3_icnode_hdr
ic
nodehdr
;
dp
->
d_ops
->
node_hdr_from_disk
(
&
nodehdr
,
oldroot
);
dp
->
d_ops
->
node_hdr_from_disk
(
&
ic
nodehdr
,
oldroot
);
btree
=
dp
->
d_ops
->
node_tree_p
(
oldroot
);
size
=
(
int
)((
char
*
)
&
btree
[
nodehdr
.
count
]
-
(
char
*
)
oldroot
);
level
=
nodehdr
.
level
;
size
=
(
int
)((
char
*
)
&
btree
[
ic
nodehdr
.
count
]
-
(
char
*
)
oldroot
);
level
=
ic
nodehdr
.
level
;
/*
* we are about to copy oldroot to bp, so set up the type
...
...
fs/xfs/xfs_error.c
浏览文件 @
2b93681f
...
...
@@ -131,7 +131,7 @@ xfs_error_report(
{
if
(
level
<=
xfs_error_level
)
{
xfs_alert_tag
(
mp
,
XFS_PTAG_ERROR_REPORT
,
"Internal error %s at line %d of file %s. Caller %p
F
"
,
"Internal error %s at line %d of file %s. Caller %p
S
"
,
tag
,
linenum
,
filename
,
ra
);
xfs_stack_trace
();
...
...
fs/xfs/xfs_filestream.c
浏览文件 @
2b93681f
...
...
@@ -322,7 +322,7 @@ xfs_filestream_lookup_ag(
pip
=
xfs_filestream_get_parent
(
ip
);
if
(
!
pip
)
goto
out
;
return
NULLAGNUMBER
;
mru
=
xfs_mru_cache_lookup
(
mp
->
m_filestream
,
pip
->
i_ino
);
if
(
mru
)
{
...
...
fs/xfs/xfs_inode.c
浏览文件 @
2b93681f
...
...
@@ -2911,8 +2911,8 @@ xfs_rename(
struct
xfs_inode
*
wip
=
NULL
;
/* whiteout inode */
struct
xfs_inode
*
inodes
[
__XFS_SORT_INODES
];
int
num_inodes
=
__XFS_SORT_INODES
;
int
new_parent
=
(
src_dp
!=
target_dp
);
int
src_is_directory
=
S_ISDIR
(
src_ip
->
i_d
.
di_mode
);
bool
new_parent
=
(
src_dp
!=
target_dp
);
bool
src_is_directory
=
S_ISDIR
(
src_ip
->
i_d
.
di_mode
);
int
cancel_flags
=
0
;
int
spaceres
;
int
error
;
...
...
fs/xfs/xfs_mru_cache.c
浏览文件 @
2b93681f
...
...
@@ -437,7 +437,7 @@ xfs_mru_cache_insert(
if
(
!
mru
||
!
mru
->
lists
)
return
-
EINVAL
;
if
(
radix_tree_preload
(
GFP_
KERNEL
))
if
(
radix_tree_preload
(
GFP_
NOFS
))
return
-
ENOMEM
;
INIT_LIST_HEAD
(
&
elem
->
list_node
);
...
...
fs/xfs/xfs_super.c
浏览文件 @
2b93681f
...
...
@@ -1380,7 +1380,7 @@ xfs_init_percpu_counters(
error
=
percpu_counter_init
(
&
mp
->
m_icount
,
0
,
GFP_KERNEL
);
if
(
error
)
return
ENOMEM
;
return
-
ENOMEM
;
error
=
percpu_counter_init
(
&
mp
->
m_ifree
,
0
,
GFP_KERNEL
);
if
(
error
)
...
...
fs/xfs/xfs_trace.h
浏览文件 @
2b93681f
...
...
@@ -115,7 +115,7 @@ DECLARE_EVENT_CLASS(xfs_perag_class,
__entry
->
refcount
=
refcount
;
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d agno %u refcount %d caller %p
f
"
,
TP_printk
(
"dev %d:%d agno %u refcount %d caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
agno
,
__entry
->
refcount
,
...
...
@@ -239,7 +239,7 @@ TRACE_EVENT(xfs_iext_insert,
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d ino 0x%llx state %s idx %ld "
"offset %lld block %lld count %lld flag %d caller %p
f
"
,
"offset %lld block %lld count %lld flag %d caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
ino
,
__print_flags
(
__entry
->
bmap_state
,
"|"
,
XFS_BMAP_EXT_FLAGS
),
...
...
@@ -283,7 +283,7 @@ DECLARE_EVENT_CLASS(xfs_bmap_class,
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d ino 0x%llx state %s idx %ld "
"offset %lld block %lld count %lld flag %d caller %p
f
"
,
"offset %lld block %lld count %lld flag %d caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
ino
,
__print_flags
(
__entry
->
bmap_state
,
"|"
,
XFS_BMAP_EXT_FLAGS
),
...
...
@@ -329,7 +329,7 @@ DECLARE_EVENT_CLASS(xfs_buf_class,
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d bno 0x%llx nblks 0x%x hold %d pincount %d "
"lock %d flags %s caller %p
f
"
,
"lock %d flags %s caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
(
unsigned
long
long
)
__entry
->
bno
,
__entry
->
nblks
,
...
...
@@ -402,7 +402,7 @@ DECLARE_EVENT_CLASS(xfs_buf_flags_class,
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d "
"lock %d flags %s caller %p
f
"
,
"lock %d flags %s caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
(
unsigned
long
long
)
__entry
->
bno
,
__entry
->
buffer_length
,
...
...
@@ -447,7 +447,7 @@ TRACE_EVENT(xfs_buf_ioerror,
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d "
"lock %d error %d flags %s caller %p
f
"
,
"lock %d error %d flags %s caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
(
unsigned
long
long
)
__entry
->
bno
,
__entry
->
buffer_length
,
...
...
@@ -613,7 +613,7 @@ DECLARE_EVENT_CLASS(xfs_lock_class,
__entry
->
lock_flags
=
lock_flags
;
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d ino 0x%llx flags %s caller %p
f
"
,
TP_printk
(
"dev %d:%d ino 0x%llx flags %s caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
ino
,
__print_flags
(
__entry
->
lock_flags
,
"|"
,
XFS_LOCK_FLAGS
),
...
...
@@ -705,7 +705,7 @@ DECLARE_EVENT_CLASS(xfs_iref_class,
__entry
->
pincount
=
atomic_read
(
&
ip
->
i_pincount
);
__entry
->
caller_ip
=
caller_ip
;
),
TP_printk
(
"dev %d:%d ino 0x%llx count %d pincount %d caller %p
f
"
,
TP_printk
(
"dev %d:%d ino 0x%llx count %d pincount %d caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
ino
,
__entry
->
count
,
...
...
@@ -1336,7 +1336,7 @@ TRACE_EVENT(xfs_bunmap,
__entry
->
flags
=
flags
;
),
TP_printk
(
"dev %d:%d ino 0x%llx size 0x%llx bno 0x%llx len 0x%llx"
"flags %s caller %p
f
"
,
"flags %s caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
ino
,
__entry
->
size
,
...
...
@@ -1469,7 +1469,7 @@ TRACE_EVENT(xfs_agf,
),
TP_printk
(
"dev %d:%d agno %u flags %s length %u roots b %u c %u "
"levels b %u c %u flfirst %u fllast %u flcount %u "
"freeblks %u longest %u caller %p
f
"
,
"freeblks %u longest %u caller %p
s
"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
agno
,
__print_flags
(
__entry
->
flags
,
"|"
,
XFS_AGF_FLAGS
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录