Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
dda65b94
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看板
提交
dda65b94
编写于
10月 24, 2005
作者:
A
Anton Altaparmakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NTFS: Fix compilation warnings with gcc-4.0.2 on SUSE 10.0.
Signed-off-by:
N
Anton Altaparmakov
<
aia21@cantab.net
>
上级
d04bd1fb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
16 deletion
+10
-16
fs/ntfs/ChangeLog
fs/ntfs/ChangeLog
+1
-0
fs/ntfs/attrib.c
fs/ntfs/attrib.c
+1
-1
fs/ntfs/file.c
fs/ntfs/file.c
+8
-15
未找到文件。
fs/ntfs/ChangeLog
浏览文件 @
dda65b94
...
...
@@ -77,6 +77,7 @@ ToDo/Notes:
EOPNOTSUPP is returned.
- $EA attributes can be both resident and non-resident.
- Use %z for size_t to fix compilation warnings. (Andrew Morton)
- Fix compilation warnings with gcc-4.0.2 on SUSE 10.0.
2.1.24 - Lots of bug fixes and support more clean journal states.
...
...
fs/ntfs/attrib.c
浏览文件 @
dda65b94
...
...
@@ -91,7 +91,7 @@ int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn, ntfs_attr_search_ctx *ctx)
struct
page
*
put_this_page
=
NULL
;
int
err
=
0
;
BOOL
ctx_is_temporary
,
ctx_needs_reset
;
ntfs_attr_search_ctx
old_ctx
;
ntfs_attr_search_ctx
old_ctx
=
{
NULL
,
}
;
ntfs_debug
(
"Mapping runlist part containing vcn 0x%llx."
,
(
unsigned
long
long
)
vcn
);
...
...
fs/ntfs/file.c
浏览文件 @
dda65b94
...
...
@@ -78,12 +78,8 @@ static int ntfs_file_open(struct inode *vi, struct file *filp)
* Extend the initialized size of an attribute described by the ntfs inode @ni
* to @new_init_size bytes. This involves zeroing any non-sparse space between
* the old initialized size and @new_init_size both in the page cache and on
* disk (if relevant complete pages are zeroed in the page cache then these may
* simply be marked dirty for later writeout). There is one caveat and that is
* that if any uptodate page cache pages between the old initialized size and
* the smaller of @new_init_size and the file size (vfs inode->i_size) are in
* memory, these need to be marked dirty without being zeroed since they could
* be non-zero due to mmap() based writes.
* disk (if relevant complete pages are already uptodate in the page cache then
* these are simply marked dirty).
*
* As a side-effect, the file size (vfs inode->i_size) may be incremented as,
* in the resident attribute case, it is tied to the initialized size and, in
...
...
@@ -98,10 +94,10 @@ static int ntfs_file_open(struct inode *vi, struct file *filp)
* with new data via mmap() based writes, so we cannot just zero it. And since
* POSIX specifies that the behaviour of resizing a file whilst it is mmap()ped
* is unspecified, we choose not to do zeroing and thus we do not need to touch
* the page at all. For a more detailed explanation see ntfs_truncate()
which
*
is in
fs/ntfs/inode.c.
* the page at all. For a more detailed explanation see ntfs_truncate()
in
* fs/ntfs/inode.c.
*
* @cached_page and @lru_pvec are just optimi
s
ations for dealing with multiple
* @cached_page and @lru_pvec are just optimi
z
ations for dealing with multiple
* pages.
*
* Return 0 on success and -errno on error. In the case that an error is
...
...
@@ -110,9 +106,8 @@ static int ntfs_file_open(struct inode *vi, struct file *filp)
* this is the case, the necessary zeroing will also have happened and that all
* metadata is self-consistent.
*
* Locking: This function locks the mft record of the base ntfs inode and
* maintains the lock throughout execution of the function. This is required
* so that the initialized size of the attribute can be modified safely.
* Locking: i_sem on the vfs inode corrseponsind to the ntfs inode @ni must be
* held by the caller.
*/
static
int
ntfs_attr_extend_initialized
(
ntfs_inode
*
ni
,
const
s64
new_init_size
,
struct
page
**
cached_page
,
struct
pagevec
*
lru_pvec
)
...
...
@@ -1836,7 +1831,7 @@ static ssize_t ntfs_file_buffered_write(struct kiocb *iocb,
VCN
last_vcn
;
LCN
lcn
;
unsigned
long
flags
;
size_t
bytes
,
iov_ofs
;
size_t
bytes
,
iov_ofs
=
0
;
/* Offset in the current iovec. */
ssize_t
status
,
written
;
unsigned
nr_pages
;
int
err
;
...
...
@@ -1988,8 +1983,6 @@ static ssize_t ntfs_file_buffered_write(struct kiocb *iocb,
last_vcn
=
-
1
;
if
(
likely
(
nr_segs
==
1
))
buf
=
iov
->
iov_base
;
else
iov_ofs
=
0
;
/* Offset in the current iovec. */
do
{
VCN
vcn
;
pgoff_t
idx
,
start_idx
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录