Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
6bcf0939
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看板
提交
6bcf0939
编写于
1月 09, 2015
作者:
D
Dave Chinner
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'xfs-misc-fixes-for-3.20-2' into for-next
上级
efdca7aa
43fd1fce
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
44 addition
and
67 deletion
+44
-67
Documentation/filesystems/xfs.txt
Documentation/filesystems/xfs.txt
+7
-10
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/libxfs/xfs_bmap.h
+33
-0
fs/xfs/libxfs/xfs_fs.h
fs/xfs/libxfs/xfs_fs.h
+0
-0
fs/xfs/libxfs/xfs_types.h
fs/xfs/libxfs/xfs_types.h
+0
-0
fs/xfs/xfs_bmap_util.h
fs/xfs/xfs_bmap_util.h
+1
-36
fs/xfs/xfs_dquot.h
fs/xfs/xfs_dquot.h
+1
-1
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.c
+1
-1
fs/xfs/xfs_iomap.h
fs/xfs/xfs_iomap.h
+1
-1
fs/xfs/xfs_sysctl.c
fs/xfs/xfs_sysctl.c
+0
-18
未找到文件。
Documentation/filesystems/xfs.txt
浏览文件 @
6bcf0939
...
@@ -348,16 +348,13 @@ The following sysctls are available for the XFS filesystem:
...
@@ -348,16 +348,13 @@ The following sysctls are available for the XFS filesystem:
Deprecated Sysctls
Deprecated Sysctls
==================
==================
fs.xfs.xfsbufd_centisecs (Min: 50 Default: 100 Max: 3000)
None at present.
Dirty metadata is now tracked by the log subsystem and
flushing is driven by log space and idling demands. The
xfsbufd no longer exists, so this syctl does nothing.
Due for removal in 3.14.
fs.xfs.age_buffer_centisecs (Min: 100 Default: 1500 Max: 720000)
Removed Sysctls
Dirty metadata is now tracked by the log subsystem and
===============
flushing is driven by log space and idling demands. The
xfsbufd no longer exists, so this syctl does nothing.
Due for removal in 3.14.
Name Removed
---- -------
fs.xfs.xfsbufd_centisec v3.20
fs.xfs.age_buffer_centisecs v3.20
fs/xfs/libxfs/xfs_bmap.h
浏览文件 @
6bcf0939
...
@@ -27,6 +27,37 @@ struct xfs_trans;
...
@@ -27,6 +27,37 @@ struct xfs_trans;
extern
kmem_zone_t
*
xfs_bmap_free_item_zone
;
extern
kmem_zone_t
*
xfs_bmap_free_item_zone
;
/*
* Argument structure for xfs_bmap_alloc.
*/
struct
xfs_bmalloca
{
xfs_fsblock_t
*
firstblock
;
/* i/o first block allocated */
struct
xfs_bmap_free
*
flist
;
/* bmap freelist */
struct
xfs_trans
*
tp
;
/* transaction pointer */
struct
xfs_inode
*
ip
;
/* incore inode pointer */
struct
xfs_bmbt_irec
prev
;
/* extent before the new one */
struct
xfs_bmbt_irec
got
;
/* extent after, or delayed */
xfs_fileoff_t
offset
;
/* offset in file filling in */
xfs_extlen_t
length
;
/* i/o length asked/allocated */
xfs_fsblock_t
blkno
;
/* starting block of new extent */
struct
xfs_btree_cur
*
cur
;
/* btree cursor */
xfs_extnum_t
idx
;
/* current extent index */
int
nallocs
;
/* number of extents alloc'd */
int
logflags
;
/* flags for transaction logging */
xfs_extlen_t
total
;
/* total blocks needed for xaction */
xfs_extlen_t
minlen
;
/* minimum allocation size (blocks) */
xfs_extlen_t
minleft
;
/* amount must be left after alloc */
bool
eof
;
/* set if allocating past last extent */
bool
wasdel
;
/* replacing a delayed allocation */
bool
userdata
;
/* set if is user data */
bool
aeof
;
/* allocated space at eof */
bool
conv
;
/* overwriting unwritten extents */
int
flags
;
};
/*
/*
* List of extents to be free "later".
* List of extents to be free "later".
* The list is kept sorted on xbf_startblock.
* The list is kept sorted on xbf_startblock.
...
@@ -149,6 +180,8 @@ void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork);
...
@@ -149,6 +180,8 @@ void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork);
void
xfs_bmap_add_free
(
xfs_fsblock_t
bno
,
xfs_filblks_t
len
,
void
xfs_bmap_add_free
(
xfs_fsblock_t
bno
,
xfs_filblks_t
len
,
struct
xfs_bmap_free
*
flist
,
struct
xfs_mount
*
mp
);
struct
xfs_bmap_free
*
flist
,
struct
xfs_mount
*
mp
);
void
xfs_bmap_cancel
(
struct
xfs_bmap_free
*
flist
);
void
xfs_bmap_cancel
(
struct
xfs_bmap_free
*
flist
);
int
xfs_bmap_finish
(
struct
xfs_trans
**
tp
,
struct
xfs_bmap_free
*
flist
,
int
*
committed
);
void
xfs_bmap_compute_maxlevels
(
struct
xfs_mount
*
mp
,
int
whichfork
);
void
xfs_bmap_compute_maxlevels
(
struct
xfs_mount
*
mp
,
int
whichfork
);
int
xfs_bmap_first_unused
(
struct
xfs_trans
*
tp
,
struct
xfs_inode
*
ip
,
int
xfs_bmap_first_unused
(
struct
xfs_trans
*
tp
,
struct
xfs_inode
*
ip
,
xfs_extlen_t
len
,
xfs_fileoff_t
*
unused
,
int
whichfork
);
xfs_extlen_t
len
,
xfs_fileoff_t
*
unused
,
int
whichfork
);
...
...
fs/xfs/xfs_fs.h
→
fs/xfs/
libxfs/
xfs_fs.h
浏览文件 @
6bcf0939
文件已移动
fs/xfs/xfs_types.h
→
fs/xfs/
libxfs/
xfs_types.h
浏览文件 @
6bcf0939
文件已移动
fs/xfs/xfs_bmap_util.h
浏览文件 @
6bcf0939
...
@@ -26,43 +26,8 @@ struct xfs_ifork;
...
@@ -26,43 +26,8 @@ struct xfs_ifork;
struct
xfs_inode
;
struct
xfs_inode
;
struct
xfs_mount
;
struct
xfs_mount
;
struct
xfs_trans
;
struct
xfs_trans
;
struct
xfs_bmalloca
;
/*
* Argument structure for xfs_bmap_alloc.
*/
struct
xfs_bmalloca
{
xfs_fsblock_t
*
firstblock
;
/* i/o first block allocated */
struct
xfs_bmap_free
*
flist
;
/* bmap freelist */
struct
xfs_trans
*
tp
;
/* transaction pointer */
struct
xfs_inode
*
ip
;
/* incore inode pointer */
struct
xfs_bmbt_irec
prev
;
/* extent before the new one */
struct
xfs_bmbt_irec
got
;
/* extent after, or delayed */
xfs_fileoff_t
offset
;
/* offset in file filling in */
xfs_extlen_t
length
;
/* i/o length asked/allocated */
xfs_fsblock_t
blkno
;
/* starting block of new extent */
struct
xfs_btree_cur
*
cur
;
/* btree cursor */
xfs_extnum_t
idx
;
/* current extent index */
int
nallocs
;
/* number of extents alloc'd */
int
logflags
;
/* flags for transaction logging */
xfs_extlen_t
total
;
/* total blocks needed for xaction */
xfs_extlen_t
minlen
;
/* minimum allocation size (blocks) */
xfs_extlen_t
minleft
;
/* amount must be left after alloc */
bool
eof
;
/* set if allocating past last extent */
bool
wasdel
;
/* replacing a delayed allocation */
bool
userdata
;
/* set if is user data */
bool
aeof
;
/* allocated space at eof */
bool
conv
;
/* overwriting unwritten extents */
int
flags
;
struct
completion
*
done
;
struct
work_struct
work
;
int
result
;
};
int
xfs_bmap_finish
(
struct
xfs_trans
**
tp
,
struct
xfs_bmap_free
*
flist
,
int
*
committed
);
int
xfs_bmap_rtalloc
(
struct
xfs_bmalloca
*
ap
);
int
xfs_bmap_rtalloc
(
struct
xfs_bmalloca
*
ap
);
int
xfs_bmap_eof
(
struct
xfs_inode
*
ip
,
xfs_fileoff_t
endoff
,
int
xfs_bmap_eof
(
struct
xfs_inode
*
ip
,
xfs_fileoff_t
endoff
,
int
whichfork
,
int
*
eof
);
int
whichfork
,
int
*
eof
);
...
...
fs/xfs/xfs_dquot.h
浏览文件 @
6bcf0939
...
@@ -86,7 +86,7 @@ static inline void xfs_dqflock(xfs_dquot_t *dqp)
...
@@ -86,7 +86,7 @@ static inline void xfs_dqflock(xfs_dquot_t *dqp)
wait_for_completion
(
&
dqp
->
q_flush
);
wait_for_completion
(
&
dqp
->
q_flush
);
}
}
static
inline
int
xfs_dqflock_nowait
(
xfs_dquot_t
*
dqp
)
static
inline
bool
xfs_dqflock_nowait
(
xfs_dquot_t
*
dqp
)
{
{
return
try_wait_for_completion
(
&
dqp
->
q_flush
);
return
try_wait_for_completion
(
&
dqp
->
q_flush
);
}
}
...
...
fs/xfs/xfs_iomap.c
浏览文件 @
6bcf0939
...
@@ -802,7 +802,7 @@ int
...
@@ -802,7 +802,7 @@ int
xfs_iomap_write_unwritten
(
xfs_iomap_write_unwritten
(
xfs_inode_t
*
ip
,
xfs_inode_t
*
ip
,
xfs_off_t
offset
,
xfs_off_t
offset
,
size_t
count
)
xfs_off_t
count
)
{
{
xfs_mount_t
*
mp
=
ip
->
i_mount
;
xfs_mount_t
*
mp
=
ip
->
i_mount
;
xfs_fileoff_t
offset_fsb
;
xfs_fileoff_t
offset_fsb
;
...
...
fs/xfs/xfs_iomap.h
浏览文件 @
6bcf0939
...
@@ -27,6 +27,6 @@ int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t,
...
@@ -27,6 +27,6 @@ int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t,
struct
xfs_bmbt_irec
*
);
struct
xfs_bmbt_irec
*
);
int
xfs_iomap_write_allocate
(
struct
xfs_inode
*
,
xfs_off_t
,
int
xfs_iomap_write_allocate
(
struct
xfs_inode
*
,
xfs_off_t
,
struct
xfs_bmbt_irec
*
);
struct
xfs_bmbt_irec
*
);
int
xfs_iomap_write_unwritten
(
struct
xfs_inode
*
,
xfs_off_t
,
size
_t
);
int
xfs_iomap_write_unwritten
(
struct
xfs_inode
*
,
xfs_off_t
,
xfs_off
_t
);
#endif
/* __XFS_IOMAP_H__*/
#endif
/* __XFS_IOMAP_H__*/
fs/xfs/xfs_sysctl.c
浏览文件 @
6bcf0939
...
@@ -148,24 +148,6 @@ static struct ctl_table xfs_table[] = {
...
@@ -148,24 +148,6 @@ static struct ctl_table xfs_table[] = {
.
extra1
=
&
xfs_params
.
inherit_noatim
.
min
,
.
extra1
=
&
xfs_params
.
inherit_noatim
.
min
,
.
extra2
=
&
xfs_params
.
inherit_noatim
.
max
.
extra2
=
&
xfs_params
.
inherit_noatim
.
max
},
},
{
.
procname
=
"xfsbufd_centisecs"
,
.
data
=
&
xfs_params
.
xfs_buf_timer
.
val
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
proc_dointvec_minmax
,
.
extra1
=
&
xfs_params
.
xfs_buf_timer
.
min
,
.
extra2
=
&
xfs_params
.
xfs_buf_timer
.
max
},
{
.
procname
=
"age_buffer_centisecs"
,
.
data
=
&
xfs_params
.
xfs_buf_age
.
val
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
proc_dointvec_minmax
,
.
extra1
=
&
xfs_params
.
xfs_buf_age
.
min
,
.
extra2
=
&
xfs_params
.
xfs_buf_age
.
max
},
{
{
.
procname
=
"inherit_nosymlinks"
,
.
procname
=
"inherit_nosymlinks"
,
.
data
=
&
xfs_params
.
inherit_nosym
.
val
,
.
data
=
&
xfs_params
.
inherit_nosym
.
val
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录