Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
845a2cc0
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
845a2cc0
编写于
6月 07, 2010
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
convert reiserfs to ->evict_inode()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
bd555975
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
11 deletion
+12
-11
fs/reiserfs/inode.c
fs/reiserfs/inode.c
+10
-3
fs/reiserfs/super.c
fs/reiserfs/super.c
+1
-7
include/linux/reiserfs_fs.h
include/linux/reiserfs_fs.h
+1
-1
未找到文件。
fs/reiserfs/inode.c
浏览文件 @
845a2cc0
...
...
@@ -25,7 +25,7 @@ int reiserfs_commit_write(struct file *f, struct page *page,
int
reiserfs_prepare_write
(
struct
file
*
f
,
struct
page
*
page
,
unsigned
from
,
unsigned
to
);
void
reiserfs_
delete
_inode
(
struct
inode
*
inode
)
void
reiserfs_
evict
_inode
(
struct
inode
*
inode
)
{
/* We need blocks for transaction + (user+group) quota update (possibly delete) */
int
jbegin_count
=
...
...
@@ -35,10 +35,12 @@ void reiserfs_delete_inode(struct inode *inode)
int
depth
;
int
err
;
if
(
!
is_bad_inode
(
inode
))
if
(
!
i
node
->
i_nlink
&&
!
i
s_bad_inode
(
inode
))
dquot_initialize
(
inode
);
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
if
(
inode
->
i_nlink
)
goto
no_delete
;
depth
=
reiserfs_write_lock_once
(
inode
->
i_sb
);
...
...
@@ -77,9 +79,14 @@ void reiserfs_delete_inode(struct inode *inode)
;
}
out:
clear_inode
(
inode
);
/* note this must go after the journal_end to prevent deadlock */
end_writeback
(
inode
);
/* note this must go after the journal_end to prevent deadlock */
dquot_drop
(
inode
);
inode
->
i_blocks
=
0
;
reiserfs_write_unlock_once
(
inode
->
i_sb
,
depth
);
no_delete:
end_writeback
(
inode
);
dquot_drop
(
inode
);
}
static
void
_make_cpu_key
(
struct
cpu_key
*
key
,
int
version
,
__u32
dirid
,
...
...
fs/reiserfs/super.c
浏览文件 @
845a2cc0
...
...
@@ -591,11 +591,6 @@ static void reiserfs_dirty_inode(struct inode *inode)
reiserfs_write_unlock_once
(
inode
->
i_sb
,
lock_depth
);
}
static
void
reiserfs_clear_inode
(
struct
inode
*
inode
)
{
dquot_drop
(
inode
);
}
#ifdef CONFIG_QUOTA
static
ssize_t
reiserfs_quota_write
(
struct
super_block
*
,
int
,
const
char
*
,
size_t
,
loff_t
);
...
...
@@ -608,8 +603,7 @@ static const struct super_operations reiserfs_sops = {
.
destroy_inode
=
reiserfs_destroy_inode
,
.
write_inode
=
reiserfs_write_inode
,
.
dirty_inode
=
reiserfs_dirty_inode
,
.
clear_inode
=
reiserfs_clear_inode
,
.
delete_inode
=
reiserfs_delete_inode
,
.
evict_inode
=
reiserfs_evict_inode
,
.
put_super
=
reiserfs_put_super
,
.
write_super
=
reiserfs_write_super
,
.
sync_fs
=
reiserfs_sync_fs
,
...
...
include/linux/reiserfs_fs.h
浏览文件 @
845a2cc0
...
...
@@ -2033,7 +2033,7 @@ void reiserfs_read_locked_inode(struct inode *inode,
struct
reiserfs_iget_args
*
args
);
int
reiserfs_find_actor
(
struct
inode
*
inode
,
void
*
p
);
int
reiserfs_init_locked_inode
(
struct
inode
*
inode
,
void
*
p
);
void
reiserfs_
delete
_inode
(
struct
inode
*
inode
);
void
reiserfs_
evict
_inode
(
struct
inode
*
inode
);
int
reiserfs_write_inode
(
struct
inode
*
inode
,
struct
writeback_control
*
wbc
);
int
reiserfs_get_block
(
struct
inode
*
inode
,
sector_t
block
,
struct
buffer_head
*
bh_result
,
int
create
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录