Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
f25dfb5e
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看板
提交
f25dfb5e
编写于
9月 08, 2005
作者:
A
Anton Altaparmakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NTFS: Remove bogus setting of PageError in ntfs_read_compressed_block().
Signed-off-by:
N
Anton Altaparmakov
<
aia21@cantab.net
>
上级
8e08ceae
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
10 deletion
+8
-10
fs/ntfs/ChangeLog
fs/ntfs/ChangeLog
+1
-0
fs/ntfs/compress.c
fs/ntfs/compress.c
+0
-8
fs/ntfs/file.c
fs/ntfs/file.c
+7
-2
未找到文件。
fs/ntfs/ChangeLog
浏览文件 @
f25dfb5e
...
...
@@ -58,6 +58,7 @@ ToDo/Notes:
- Fix a bug in fs/ntfs/index.c::ntfs_index_lookup(). When the returned
index entry is in the index root, we forgot to set the @ir pointer in
the index context. Thanks to Yura Pakhuchiy for finding this bug.
- Remove bogus setting of PageError in ntfs_read_compressed_block().
2.1.23 - Implement extension of resident files and make writing safe as well as
many bug fixes, cleanups, and enhancements...
...
...
fs/ntfs/compress.c
浏览文件 @
f25dfb5e
...
...
@@ -539,7 +539,6 @@ int ntfs_read_compressed_block(struct page *page)
if
(
unlikely
(
!
pages
||
!
bhs
))
{
kfree
(
bhs
);
kfree
(
pages
);
SetPageError
(
page
);
unlock_page
(
page
);
ntfs_error
(
vol
->
sb
,
"Failed to allocate internal buffers."
);
return
-
ENOMEM
;
...
...
@@ -871,9 +870,6 @@ int ntfs_read_compressed_block(struct page *page)
for
(;
prev_cur_page
<
cur_page
;
prev_cur_page
++
)
{
page
=
pages
[
prev_cur_page
];
if
(
page
)
{
if
(
prev_cur_page
==
xpage
&&
!
xpage_done
)
SetPageError
(
page
);
flush_dcache_page
(
page
);
kunmap
(
page
);
unlock_page
(
page
);
...
...
@@ -904,8 +900,6 @@ int ntfs_read_compressed_block(struct page *page)
"Terminating them with extreme "
"prejudice. Inode 0x%lx, page index "
"0x%lx."
,
ni
->
mft_no
,
page
->
index
);
if
(
cur_page
==
xpage
&&
!
xpage_done
)
SetPageError
(
page
);
flush_dcache_page
(
page
);
kunmap
(
page
);
unlock_page
(
page
);
...
...
@@ -953,8 +947,6 @@ int ntfs_read_compressed_block(struct page *page)
for
(
i
=
cur_page
;
i
<
max_page
;
i
++
)
{
page
=
pages
[
i
];
if
(
page
)
{
if
(
i
==
xpage
&&
!
xpage_done
)
SetPageError
(
page
);
flush_dcache_page
(
page
);
kunmap
(
page
);
unlock_page
(
page
);
...
...
fs/ntfs/file.c
浏览文件 @
f25dfb5e
/*
* file.c - NTFS kernel file operations. Part of the Linux-NTFS project.
* file.c - NTFS kernel file operations.
Part of the Linux-NTFS project.
*
* Copyright (c) 2001-200
4
Anton Altaparmakov
* Copyright (c) 2001-200
5
Anton Altaparmakov
*
* This program/include file is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
...
...
@@ -94,6 +94,11 @@ static int ntfs_file_fsync(struct file *filp, struct dentry *dentry,
if
(
!
datasync
||
!
NInoNonResident
(
NTFS_I
(
vi
)))
ret
=
ntfs_write_inode
(
vi
,
1
);
write_inode_now
(
vi
,
!
datasync
);
/*
* NOTE: If we were to use mapping->private_list (see ext2 and
* fs/buffer.c) for dirty blocks then we could optimize the below to be
* sync_mapping_buffers(vi->i_mapping).
*/
err
=
sync_blockdev
(
vi
->
i_sb
->
s_bdev
);
if
(
unlikely
(
err
&&
!
ret
))
ret
=
err
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录