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
3c1ed9b2
Commit
3c1ed9b2
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] remove address_space.io_pages
Now remove address_space.io_pages.
parent
b79a8408
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
8 deletions
+3
-8
fs/inode.c
fs/inode.c
+0
-1
fs/mpage.c
fs/mpage.c
+3
-5
include/linux/fs.h
include/linux/fs.h
+0
-1
mm/swap_state.c
mm/swap_state.c
+0
-1
No files found.
fs/inode.c
View file @
3c1ed9b2
...
@@ -180,7 +180,6 @@ void inode_init_once(struct inode *inode)
...
@@ -180,7 +180,6 @@ void inode_init_once(struct inode *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_data
.
clean_pages
);
INIT_LIST_HEAD
(
&
inode
->
i_data
.
locked_pages
);
INIT_LIST_HEAD
(
&
inode
->
i_data
.
locked_pages
);
INIT_LIST_HEAD
(
&
inode
->
i_data
.
io_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
);
...
...
fs/mpage.c
View file @
3c1ed9b2
...
@@ -589,15 +589,13 @@ mpage_writepage(struct bio *bio, struct page *page, get_block_t get_block,
...
@@ -589,15 +589,13 @@ mpage_writepage(struct bio *bio, struct page *page, get_block_t get_block,
* This is a library function, which implements the writepages()
* This is a library function, which implements the writepages()
* address_space_operation.
* address_space_operation.
*
*
* (The next two paragraphs refer to code which isn't here yet, but they
* explain the presence of address_space.io_pages)
*
* If a page is already under I/O, generic_writepages() skips it, even
* If a page is already under I/O, generic_writepages() skips it, even
* if it's dirty. This is desirable behaviour for memory-cleaning writeback,
* if it's dirty. This is desirable behaviour for memory-cleaning writeback,
* but it is INCORRECT for data-integrity system calls such as fsync(). fsync()
* but it is INCORRECT for data-integrity system calls such as fsync(). fsync()
* and msync() need to guarantee that all the data which was dirty at the time
* and msync() need to guarantee that all the data which was dirty at the time
* the call was made get new I/O started against them. So if called_for_sync()
* the call was made get new I/O started against them. If wbc->sync_mode is
* is true, we must wait for existing IO to complete.
* WB_SYNC_ALL then we were called for data integrity and we must wait for
* existing IO to complete.
*/
*/
int
int
mpage_writepages
(
struct
address_space
*
mapping
,
mpage_writepages
(
struct
address_space
*
mapping
,
...
...
include/linux/fs.h
View file @
3c1ed9b2
...
@@ -325,7 +325,6 @@ struct address_space {
...
@@ -325,7 +325,6 @@ struct address_space {
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 */
struct
list_head
clean_pages
;
/* list of clean pages */
struct
list_head
locked_pages
;
/* list of locked pages */
struct
list_head
locked_pages
;
/* list of locked pages */
struct
list_head
io_pages
;
/* being prepared for I/O */
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 */
...
...
mm/swap_state.c
View file @
3c1ed9b2
...
@@ -27,7 +27,6 @@ struct address_space swapper_space = {
...
@@ -27,7 +27,6 @@ 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
),
.
clean_pages
=
LIST_HEAD_INIT
(
swapper_space
.
clean_pages
),
.
io_pages
=
LIST_HEAD_INIT
(
swapper_space
.
io_pages
),
.
locked_pages
=
LIST_HEAD_INIT
(
swapper_space
.
locked_pages
),
.
locked_pages
=
LIST_HEAD_INIT
(
swapper_space
.
locked_pages
),
.
a_ops
=
&
swap_aops
,
.
a_ops
=
&
swap_aops
,
.
backing_dev_info
=
&
swap_backing_dev_info
,
.
backing_dev_info
=
&
swap_backing_dev_info
,
...
...
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