Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
c53473be
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看板
提交
c53473be
编写于
3月 07, 2016
作者:
D
Dave Chinner
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'xfs-rt-fixes-4.6' into for-next
上级
9deed095
bf85e099
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
42 addition
and
2 deletion
+42
-2
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/libxfs/xfs_log_format.h
+2
-0
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtbitmap.c
+29
-1
fs/xfs/libxfs/xfs_shared.h
fs/xfs/libxfs/xfs_shared.h
+1
-0
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_bmap_util.c
+3
-1
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_log_recover.c
+7
-0
未找到文件。
fs/xfs/libxfs/xfs_log_format.h
浏览文件 @
c53473be
...
...
@@ -495,6 +495,8 @@ enum xfs_blft {
XFS_BLFT_ATTR_LEAF_BUF
,
XFS_BLFT_ATTR_RMT_BUF
,
XFS_BLFT_SB_BUF
,
XFS_BLFT_RTBITMAP_BUF
,
XFS_BLFT_RTSUMMARY_BUF
,
XFS_BLFT_MAX_BUF
=
(
1
<<
XFS_BLFT_BITS
),
};
...
...
fs/xfs/libxfs/xfs_rtbitmap.c
浏览文件 @
c53473be
...
...
@@ -41,6 +41,31 @@
* Realtime allocator bitmap functions shared with userspace.
*/
/*
* Real time buffers need verifiers to avoid runtime warnings during IO.
* We don't have anything to verify, however, so these are just dummy
* operations.
*/
static
void
xfs_rtbuf_verify_read
(
struct
xfs_buf
*
bp
)
{
return
;
}
static
void
xfs_rtbuf_verify_write
(
struct
xfs_buf
*
bp
)
{
return
;
}
const
struct
xfs_buf_ops
xfs_rtbuf_ops
=
{
.
name
=
"rtbuf"
,
.
verify_read
=
xfs_rtbuf_verify_read
,
.
verify_write
=
xfs_rtbuf_verify_write
,
};
/*
* Get a buffer for the bitmap or summary file block specified.
* The buffer is returned read and locked.
...
...
@@ -68,9 +93,12 @@ xfs_rtbuf_get(
ASSERT
(
map
.
br_startblock
!=
NULLFSBLOCK
);
error
=
xfs_trans_read_buf
(
mp
,
tp
,
mp
->
m_ddev_targp
,
XFS_FSB_TO_DADDR
(
mp
,
map
.
br_startblock
),
mp
->
m_bsize
,
0
,
&
bp
,
NULL
);
mp
->
m_bsize
,
0
,
&
bp
,
&
xfs_rtbuf_ops
);
if
(
error
)
return
error
;
xfs_trans_buf_set_type
(
tp
,
bp
,
issum
?
XFS_BLFT_RTSUMMARY_BUF
:
XFS_BLFT_RTBITMAP_BUF
);
*
bpp
=
bp
;
return
0
;
}
...
...
fs/xfs/libxfs/xfs_shared.h
浏览文件 @
c53473be
...
...
@@ -53,6 +53,7 @@ extern const struct xfs_buf_ops xfs_dquot_buf_ra_ops;
extern
const
struct
xfs_buf_ops
xfs_sb_buf_ops
;
extern
const
struct
xfs_buf_ops
xfs_sb_quiet_buf_ops
;
extern
const
struct
xfs_buf_ops
xfs_symlink_buf_ops
;
extern
const
struct
xfs_buf_ops
xfs_rtbuf_ops
;
/*
* Transaction types. Used to distinguish types of buffers. These never reach
...
...
fs/xfs/xfs_bmap_util.c
浏览文件 @
c53473be
...
...
@@ -202,10 +202,12 @@ xfs_bmap_rtalloc(
ralen
=
MAXEXTLEN
/
mp
->
m_sb
.
sb_rextsize
;
/*
* Lock out
other modifications to the RT bitmap inode.
* Lock out
modifications to both the RT bitmap and summary inodes
*/
xfs_ilock
(
mp
->
m_rbmip
,
XFS_ILOCK_EXCL
);
xfs_trans_ijoin
(
ap
->
tp
,
mp
->
m_rbmip
,
XFS_ILOCK_EXCL
);
xfs_ilock
(
mp
->
m_rsumip
,
XFS_ILOCK_EXCL
);
xfs_trans_ijoin
(
ap
->
tp
,
mp
->
m_rsumip
,
XFS_ILOCK_EXCL
);
/*
* If it's an allocation to an empty file at offset 0,
...
...
fs/xfs/xfs_log_recover.c
浏览文件 @
c53473be
...
...
@@ -2538,6 +2538,13 @@ xlog_recover_validate_buf_type(
}
bp
->
b_ops
=
&
xfs_sb_buf_ops
;
break
;
#ifdef CONFIG_XFS_RT
case
XFS_BLFT_RTBITMAP_BUF
:
case
XFS_BLFT_RTSUMMARY_BUF
:
/* no magic numbers for verification of RT buffers */
bp
->
b_ops
=
&
xfs_rtbuf_ops
;
break
;
#endif
/* CONFIG_XFS_RT */
default:
xfs_warn
(
mp
,
"Unknown buffer type %d!"
,
xfs_blft_from_flags
(
buf_f
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录