Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
438c3c8d
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
438c3c8d
编写于
1月 22, 2015
作者:
D
Dave Chinner
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'xfs-buf-type-fixes' into for-next
上级
465e2def
3443a3bc
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
14 addition
and
1 deletion
+14
-1
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.c
+5
-1
fs/xfs/libxfs/xfs_symlink_remote.c
fs/xfs/libxfs/xfs_symlink_remote.c
+2
-0
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_buf_item.c
+4
-0
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.c
+2
-0
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.c
+1
-0
未找到文件。
fs/xfs/libxfs/xfs_bmap.c
浏览文件 @
438c3c8d
...
@@ -973,7 +973,11 @@ xfs_bmap_local_to_extents(
...
@@ -973,7 +973,11 @@ xfs_bmap_local_to_extents(
*
firstblock
=
args
.
fsbno
;
*
firstblock
=
args
.
fsbno
;
bp
=
xfs_btree_get_bufl
(
args
.
mp
,
tp
,
args
.
fsbno
,
0
);
bp
=
xfs_btree_get_bufl
(
args
.
mp
,
tp
,
args
.
fsbno
,
0
);
/* initialise the block and copy the data */
/*
* Initialise the block and copy the data
*
* Note: init_fn must set the buffer log item type correctly!
*/
init_fn
(
tp
,
bp
,
ip
,
ifp
);
init_fn
(
tp
,
bp
,
ip
,
ifp
);
/* account for the change in fork size and log everything */
/* account for the change in fork size and log everything */
...
...
fs/xfs/libxfs/xfs_symlink_remote.c
浏览文件 @
438c3c8d
...
@@ -178,6 +178,8 @@ xfs_symlink_local_to_remote(
...
@@ -178,6 +178,8 @@ xfs_symlink_local_to_remote(
struct
xfs_mount
*
mp
=
ip
->
i_mount
;
struct
xfs_mount
*
mp
=
ip
->
i_mount
;
char
*
buf
;
char
*
buf
;
xfs_trans_buf_set_type
(
tp
,
bp
,
XFS_BLFT_SYMLINK_BUF
);
if
(
!
xfs_sb_version_hascrc
(
&
mp
->
m_sb
))
{
if
(
!
xfs_sb_version_hascrc
(
&
mp
->
m_sb
))
{
bp
->
b_ops
=
NULL
;
bp
->
b_ops
=
NULL
;
memcpy
(
bp
->
b_addr
,
ifp
->
if_u1
.
if_data
,
ifp
->
if_bytes
);
memcpy
(
bp
->
b_addr
,
ifp
->
if_u1
.
if_data
,
ifp
->
if_bytes
);
...
...
fs/xfs/xfs_buf_item.c
浏览文件 @
438c3c8d
...
@@ -319,6 +319,10 @@ xfs_buf_item_format(
...
@@ -319,6 +319,10 @@ xfs_buf_item_format(
ASSERT
(
atomic_read
(
&
bip
->
bli_refcount
)
>
0
);
ASSERT
(
atomic_read
(
&
bip
->
bli_refcount
)
>
0
);
ASSERT
((
bip
->
bli_flags
&
XFS_BLI_LOGGED
)
||
ASSERT
((
bip
->
bli_flags
&
XFS_BLI_LOGGED
)
||
(
bip
->
bli_flags
&
XFS_BLI_STALE
));
(
bip
->
bli_flags
&
XFS_BLI_STALE
));
ASSERT
((
bip
->
bli_flags
&
XFS_BLI_STALE
)
||
(
xfs_blft_from_flags
(
&
bip
->
__bli_format
)
>
XFS_BLFT_UNKNOWN_BUF
&&
xfs_blft_from_flags
(
&
bip
->
__bli_format
)
<
XFS_BLFT_MAX_BUF
));
/*
/*
* If it is an inode buffer, transfer the in-memory state to the
* If it is an inode buffer, transfer the in-memory state to the
...
...
fs/xfs/xfs_inode.c
浏览文件 @
438c3c8d
...
@@ -1995,6 +1995,7 @@ xfs_iunlink(
...
@@ -1995,6 +1995,7 @@ xfs_iunlink(
agi
->
agi_unlinked
[
bucket_index
]
=
cpu_to_be32
(
agino
);
agi
->
agi_unlinked
[
bucket_index
]
=
cpu_to_be32
(
agino
);
offset
=
offsetof
(
xfs_agi_t
,
agi_unlinked
)
+
offset
=
offsetof
(
xfs_agi_t
,
agi_unlinked
)
+
(
sizeof
(
xfs_agino_t
)
*
bucket_index
);
(
sizeof
(
xfs_agino_t
)
*
bucket_index
);
xfs_trans_buf_set_type
(
tp
,
agibp
,
XFS_BLFT_AGI_BUF
);
xfs_trans_log_buf
(
tp
,
agibp
,
offset
,
xfs_trans_log_buf
(
tp
,
agibp
,
offset
,
(
offset
+
sizeof
(
xfs_agino_t
)
-
1
));
(
offset
+
sizeof
(
xfs_agino_t
)
-
1
));
return
0
;
return
0
;
...
@@ -2086,6 +2087,7 @@ xfs_iunlink_remove(
...
@@ -2086,6 +2087,7 @@ xfs_iunlink_remove(
agi
->
agi_unlinked
[
bucket_index
]
=
cpu_to_be32
(
next_agino
);
agi
->
agi_unlinked
[
bucket_index
]
=
cpu_to_be32
(
next_agino
);
offset
=
offsetof
(
xfs_agi_t
,
agi_unlinked
)
+
offset
=
offsetof
(
xfs_agi_t
,
agi_unlinked
)
+
(
sizeof
(
xfs_agino_t
)
*
bucket_index
);
(
sizeof
(
xfs_agino_t
)
*
bucket_index
);
xfs_trans_buf_set_type
(
tp
,
agibp
,
XFS_BLFT_AGI_BUF
);
xfs_trans_log_buf
(
tp
,
agibp
,
offset
,
xfs_trans_log_buf
(
tp
,
agibp
,
offset
,
(
offset
+
sizeof
(
xfs_agino_t
)
-
1
));
(
offset
+
sizeof
(
xfs_agino_t
)
-
1
));
}
else
{
}
else
{
...
...
fs/xfs/xfs_trans.c
浏览文件 @
438c3c8d
...
@@ -472,6 +472,7 @@ xfs_trans_apply_sb_deltas(
...
@@ -472,6 +472,7 @@ xfs_trans_apply_sb_deltas(
whole
=
1
;
whole
=
1
;
}
}
xfs_trans_buf_set_type
(
tp
,
bp
,
XFS_BLFT_SB_BUF
);
if
(
whole
)
if
(
whole
)
/*
/*
* Log the whole thing, the fields are noncontiguous.
* Log the whole thing, the fields are noncontiguous.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录