Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
bad96266
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看板
提交
bad96266
编写于
2月 10, 2015
作者:
D
Dave Chinner
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'xfs-misc-fixes-for-3.20-4' into for-next
上级
17907362
e9892d3c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
6 deletion
+14
-6
Documentation/filesystems/xfs.txt
Documentation/filesystems/xfs.txt
+3
-2
fs/xfs/xfs_fsops.c
fs/xfs/xfs_fsops.c
+1
-0
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl.c
+2
-2
fs/xfs/xfs_super.c
fs/xfs/xfs_super.c
+5
-0
fs/xfs/xfs_trans_buf.c
fs/xfs/xfs_trans_buf.c
+3
-2
未找到文件。
Documentation/filesystems/xfs.txt
浏览文件 @
bad96266
...
@@ -287,9 +287,9 @@ The following sysctls are available for the XFS filesystem:
...
@@ -287,9 +287,9 @@ The following sysctls are available for the XFS filesystem:
XFS_ERRLEVEL_LOW: 1
XFS_ERRLEVEL_LOW: 1
XFS_ERRLEVEL_HIGH: 5
XFS_ERRLEVEL_HIGH: 5
fs.xfs.panic_mask (Min: 0 Default: 0 Max:
127
)
fs.xfs.panic_mask (Min: 0 Default: 0 Max:
255
)
Causes certain error conditions to call BUG(). Value is a bitmask;
Causes certain error conditions to call BUG(). Value is a bitmask;
AND
together the tags which represent errors which should cause panics:
OR
together the tags which represent errors which should cause panics:
XFS_NO_PTAG 0
XFS_NO_PTAG 0
XFS_PTAG_IFLUSH 0x00000001
XFS_PTAG_IFLUSH 0x00000001
...
@@ -299,6 +299,7 @@ The following sysctls are available for the XFS filesystem:
...
@@ -299,6 +299,7 @@ The following sysctls are available for the XFS filesystem:
XFS_PTAG_SHUTDOWN_CORRUPT 0x00000010
XFS_PTAG_SHUTDOWN_CORRUPT 0x00000010
XFS_PTAG_SHUTDOWN_IOERROR 0x00000020
XFS_PTAG_SHUTDOWN_IOERROR 0x00000020
XFS_PTAG_SHUTDOWN_LOGERROR 0x00000040
XFS_PTAG_SHUTDOWN_LOGERROR 0x00000040
XFS_PTAG_FSBLOCK_ZERO 0x00000080
This option is intended for debugging only.
This option is intended for debugging only.
...
...
fs/xfs/xfs_fsops.c
浏览文件 @
bad96266
...
@@ -488,6 +488,7 @@ xfs_growfs_data_private(
...
@@ -488,6 +488,7 @@ xfs_growfs_data_private(
xfs_trans_mod_sb
(
tp
,
XFS_TRANS_SB_FDBLOCKS
,
nfree
);
xfs_trans_mod_sb
(
tp
,
XFS_TRANS_SB_FDBLOCKS
,
nfree
);
if
(
dpct
)
if
(
dpct
)
xfs_trans_mod_sb
(
tp
,
XFS_TRANS_SB_IMAXPCT
,
dpct
);
xfs_trans_mod_sb
(
tp
,
XFS_TRANS_SB_IMAXPCT
,
dpct
);
xfs_trans_set_sync
(
tp
);
error
=
xfs_trans_commit
(
tp
,
0
);
error
=
xfs_trans_commit
(
tp
,
0
);
if
(
error
)
if
(
error
)
return
error
;
return
error
;
...
...
fs/xfs/xfs_ioctl.c
浏览文件 @
bad96266
...
@@ -1086,7 +1086,7 @@ xfs_ioctl_setattr_get_trans(
...
@@ -1086,7 +1086,7 @@ xfs_ioctl_setattr_get_trans(
* to half the AG size to avoid alignment extending the extent beyond the
* to half the AG size to avoid alignment extending the extent beyond the
* limits of the AG.
* limits of the AG.
*/
*/
int
static
int
xfs_ioctl_setattr_check_extsize
(
xfs_ioctl_setattr_check_extsize
(
struct
xfs_inode
*
ip
,
struct
xfs_inode
*
ip
,
struct
fsxattr
*
fa
)
struct
fsxattr
*
fa
)
...
@@ -1129,7 +1129,7 @@ xfs_ioctl_setattr_check_extsize(
...
@@ -1129,7 +1129,7 @@ xfs_ioctl_setattr_check_extsize(
return
0
;
return
0
;
}
}
int
static
int
xfs_ioctl_setattr_check_projid
(
xfs_ioctl_setattr_check_projid
(
struct
xfs_inode
*
ip
,
struct
xfs_inode
*
ip
,
struct
fsxattr
*
fa
)
struct
fsxattr
*
fa
)
...
...
fs/xfs/xfs_super.c
浏览文件 @
bad96266
...
@@ -1111,6 +1111,11 @@ xfs_fs_statfs(
...
@@ -1111,6 +1111,11 @@ xfs_fs_statfs(
statp
->
f_files
,
statp
->
f_files
,
mp
->
m_maxicount
);
mp
->
m_maxicount
);
/* If sb_icount overshot maxicount, report actual allocation */
statp
->
f_files
=
max_t
(
typeof
(
statp
->
f_files
),
statp
->
f_files
,
sbp
->
sb_icount
);
/* make sure statp->f_ffree does not underflow */
/* make sure statp->f_ffree does not underflow */
ffree
=
statp
->
f_files
-
(
sbp
->
sb_icount
-
sbp
->
sb_ifree
);
ffree
=
statp
->
f_files
-
(
sbp
->
sb_icount
-
sbp
->
sb_ifree
);
statp
->
f_ffree
=
max_t
(
__int64_t
,
ffree
,
0
);
statp
->
f_ffree
=
max_t
(
__int64_t
,
ffree
,
0
);
...
...
fs/xfs/xfs_trans_buf.c
浏览文件 @
bad96266
...
@@ -327,9 +327,10 @@ xfs_trans_read_buf_map(
...
@@ -327,9 +327,10 @@ xfs_trans_read_buf_map(
return
-
EIO
;
return
-
EIO
;
}
}
if
(
tp
)
if
(
tp
)
{
_xfs_trans_bjoin
(
tp
,
bp
,
1
);
_xfs_trans_bjoin
(
tp
,
bp
,
1
);
trace_xfs_trans_read_buf
(
bp
->
b_fspriv
);
trace_xfs_trans_read_buf
(
bp
->
b_fspriv
);
}
*
bpp
=
bp
;
*
bpp
=
bp
;
return
0
;
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录