Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d672c382
Commit
d672c382
authored
Apr 11, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] stop using address_space.clean_pages
Remove remaining references to address_space.clean_pages.
parent
a1513309
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
4 deletions
+0
-4
fs/inode.c
fs/inode.c
+0
-1
include/linux/fs.h
include/linux/fs.h
+0
-1
include/linux/pagemap.h
include/linux/pagemap.h
+0
-1
mm/swap_state.c
mm/swap_state.c
+0
-1
No files found.
fs/inode.c
View file @
d672c382
...
@@ -178,7 +178,6 @@ void inode_init_once(struct inode *inode)
...
@@ -178,7 +178,6 @@ void inode_init_once(struct inode *inode)
{
{
memset
(
inode
,
0
,
sizeof
(
*
inode
));
memset
(
inode
,
0
,
sizeof
(
*
inode
));
INIT_HLIST_NODE
(
&
inode
->
i_hash
);
INIT_HLIST_NODE
(
&
inode
->
i_hash
);
INIT_LIST_HEAD
(
&
inode
->
i_data
.
clean_pages
);
INIT_LIST_HEAD
(
&
inode
->
i_dentry
);
INIT_LIST_HEAD
(
&
inode
->
i_dentry
);
INIT_LIST_HEAD
(
&
inode
->
i_devices
);
INIT_LIST_HEAD
(
&
inode
->
i_devices
);
sema_init
(
&
inode
->
i_sem
,
1
);
sema_init
(
&
inode
->
i_sem
,
1
);
...
...
include/linux/fs.h
View file @
d672c382
...
@@ -323,7 +323,6 @@ struct address_space {
...
@@ -323,7 +323,6 @@ struct address_space {
struct
inode
*
host
;
/* owner: inode, block_device */
struct
inode
*
host
;
/* owner: inode, block_device */
struct
radix_tree_root
page_tree
;
/* radix tree of all pages */
struct
radix_tree_root
page_tree
;
/* radix tree of all pages */
spinlock_t
tree_lock
;
/* and spinlock protecting it */
spinlock_t
tree_lock
;
/* and spinlock protecting it */
struct
list_head
clean_pages
;
/* list of clean pages */
unsigned
long
nrpages
;
/* number of total pages */
unsigned
long
nrpages
;
/* number of total pages */
struct
address_space_operations
*
a_ops
;
/* methods */
struct
address_space_operations
*
a_ops
;
/* methods */
struct
list_head
i_mmap
;
/* list of private mappings */
struct
list_head
i_mmap
;
/* list of private mappings */
...
...
include/linux/pagemap.h
View file @
d672c382
...
@@ -142,7 +142,6 @@ static inline unsigned long get_page_cache_size(void)
...
@@ -142,7 +142,6 @@ static inline unsigned long get_page_cache_size(void)
static
inline
void
___add_to_page_cache
(
struct
page
*
page
,
static
inline
void
___add_to_page_cache
(
struct
page
*
page
,
struct
address_space
*
mapping
,
unsigned
long
index
)
struct
address_space
*
mapping
,
unsigned
long
index
)
{
{
list_add
(
&
page
->
list
,
&
mapping
->
clean_pages
);
page
->
mapping
=
mapping
;
page
->
mapping
=
mapping
;
page
->
index
=
index
;
page
->
index
=
index
;
...
...
mm/swap_state.c
View file @
d672c382
...
@@ -26,7 +26,6 @@ extern struct address_space_operations swap_aops;
...
@@ -26,7 +26,6 @@ extern struct address_space_operations swap_aops;
struct
address_space
swapper_space
=
{
struct
address_space
swapper_space
=
{
.
page_tree
=
RADIX_TREE_INIT
(
GFP_ATOMIC
),
.
page_tree
=
RADIX_TREE_INIT
(
GFP_ATOMIC
),
.
tree_lock
=
SPIN_LOCK_UNLOCKED
,
.
tree_lock
=
SPIN_LOCK_UNLOCKED
,
.
clean_pages
=
LIST_HEAD_INIT
(
swapper_space
.
clean_pages
),
.
a_ops
=
&
swap_aops
,
.
a_ops
=
&
swap_aops
,
.
backing_dev_info
=
&
swap_backing_dev_info
,
.
backing_dev_info
=
&
swap_backing_dev_info
,
.
i_mmap
=
LIST_HEAD_INIT
(
swapper_space
.
i_mmap
),
.
i_mmap
=
LIST_HEAD_INIT
(
swapper_space
.
i_mmap
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment