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
Kirill Smelkov
linux
Commits
10bbd235
Commit
10bbd235
authored
7 years ago
by
Matthew Wilcox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pagevec: Use xa_mark_t
Removes sparse warnings. Signed-off-by:
Matthew Wilcox
<
willy@infradead.org
>
parent
67891fff
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
10 deletions
+12
-10
fs/btrfs/extent_io.c
fs/btrfs/extent_io.c
+2
-2
fs/ext4/inode.c
fs/ext4/inode.c
+1
-1
fs/f2fs/data.c
fs/f2fs/data.c
+1
-1
fs/gfs2/aops.c
fs/gfs2/aops.c
+1
-1
include/linux/pagevec.h
include/linux/pagevec.h
+5
-3
mm/swap.c
mm/swap.c
+2
-2
No files found.
fs/btrfs/extent_io.c
View file @
10bbd235
...
@@ -3778,7 +3778,7 @@ int btree_write_cache_pages(struct address_space *mapping,
...
@@ -3778,7 +3778,7 @@ int btree_write_cache_pages(struct address_space *mapping,
pgoff_t
index
;
pgoff_t
index
;
pgoff_t
end
;
/* Inclusive */
pgoff_t
end
;
/* Inclusive */
int
scanned
=
0
;
int
scanned
=
0
;
in
t
tag
;
xa_mark_
t
tag
;
pagevec_init
(
&
pvec
);
pagevec_init
(
&
pvec
);
if
(
wbc
->
range_cyclic
)
{
if
(
wbc
->
range_cyclic
)
{
...
@@ -3903,7 +3903,7 @@ static int extent_write_cache_pages(struct address_space *mapping,
...
@@ -3903,7 +3903,7 @@ static int extent_write_cache_pages(struct address_space *mapping,
pgoff_t
done_index
;
pgoff_t
done_index
;
int
range_whole
=
0
;
int
range_whole
=
0
;
int
scanned
=
0
;
int
scanned
=
0
;
in
t
tag
;
xa_mark_
t
tag
;
/*
/*
* We have to hold onto the inode so that ordered extents can do their
* We have to hold onto the inode so that ordered extents can do their
...
...
This diff is collapsed.
Click to expand it.
fs/ext4/inode.c
View file @
10bbd235
...
@@ -2613,7 +2613,7 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd)
...
@@ -2613,7 +2613,7 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd)
long
left
=
mpd
->
wbc
->
nr_to_write
;
long
left
=
mpd
->
wbc
->
nr_to_write
;
pgoff_t
index
=
mpd
->
first_page
;
pgoff_t
index
=
mpd
->
first_page
;
pgoff_t
end
=
mpd
->
last_page
;
pgoff_t
end
=
mpd
->
last_page
;
in
t
tag
;
xa_mark_
t
tag
;
int
i
,
err
=
0
;
int
i
,
err
=
0
;
int
blkbits
=
mpd
->
inode
->
i_blkbits
;
int
blkbits
=
mpd
->
inode
->
i_blkbits
;
ext4_lblk_t
lblk
;
ext4_lblk_t
lblk
;
...
...
This diff is collapsed.
Click to expand it.
fs/f2fs/data.c
View file @
10bbd235
...
@@ -2003,7 +2003,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,
...
@@ -2003,7 +2003,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping,
pgoff_t
last_idx
=
ULONG_MAX
;
pgoff_t
last_idx
=
ULONG_MAX
;
int
cycled
;
int
cycled
;
int
range_whole
=
0
;
int
range_whole
=
0
;
in
t
tag
;
xa_mark_
t
tag
;
pagevec_init
(
&
pvec
);
pagevec_init
(
&
pvec
);
...
...
This diff is collapsed.
Click to expand it.
fs/gfs2/aops.c
View file @
10bbd235
...
@@ -366,7 +366,7 @@ static int gfs2_write_cache_jdata(struct address_space *mapping,
...
@@ -366,7 +366,7 @@ static int gfs2_write_cache_jdata(struct address_space *mapping,
pgoff_t
done_index
;
pgoff_t
done_index
;
int
cycled
;
int
cycled
;
int
range_whole
=
0
;
int
range_whole
=
0
;
in
t
tag
;
xa_mark_
t
tag
;
pagevec_init
(
&
pvec
);
pagevec_init
(
&
pvec
);
if
(
wbc
->
range_cyclic
)
{
if
(
wbc
->
range_cyclic
)
{
...
...
This diff is collapsed.
Click to expand it.
include/linux/pagevec.h
View file @
10bbd235
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
#ifndef _LINUX_PAGEVEC_H
#ifndef _LINUX_PAGEVEC_H
#define _LINUX_PAGEVEC_H
#define _LINUX_PAGEVEC_H
#include <linux/xarray.h>
/* 15 pointers + header align the pagevec structure to a power of two */
/* 15 pointers + header align the pagevec structure to a power of two */
#define PAGEVEC_SIZE 15
#define PAGEVEC_SIZE 15
...
@@ -40,12 +42,12 @@ static inline unsigned pagevec_lookup(struct pagevec *pvec,
...
@@ -40,12 +42,12 @@ static inline unsigned pagevec_lookup(struct pagevec *pvec,
unsigned
pagevec_lookup_range_tag
(
struct
pagevec
*
pvec
,
unsigned
pagevec_lookup_range_tag
(
struct
pagevec
*
pvec
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
in
t
tag
);
xa_mark_
t
tag
);
unsigned
pagevec_lookup_range_nr_tag
(
struct
pagevec
*
pvec
,
unsigned
pagevec_lookup_range_nr_tag
(
struct
pagevec
*
pvec
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
in
t
tag
,
unsigned
max_pages
);
xa_mark_
t
tag
,
unsigned
max_pages
);
static
inline
unsigned
pagevec_lookup_tag
(
struct
pagevec
*
pvec
,
static
inline
unsigned
pagevec_lookup_tag
(
struct
pagevec
*
pvec
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
in
t
tag
)
struct
address_space
*
mapping
,
pgoff_t
*
index
,
xa_mark_
t
tag
)
{
{
return
pagevec_lookup_range_tag
(
pvec
,
mapping
,
index
,
(
pgoff_t
)
-
1
,
tag
);
return
pagevec_lookup_range_tag
(
pvec
,
mapping
,
index
,
(
pgoff_t
)
-
1
,
tag
);
}
}
...
...
This diff is collapsed.
Click to expand it.
mm/swap.c
View file @
10bbd235
...
@@ -1002,7 +1002,7 @@ EXPORT_SYMBOL(pagevec_lookup_range);
...
@@ -1002,7 +1002,7 @@ EXPORT_SYMBOL(pagevec_lookup_range);
unsigned
pagevec_lookup_range_tag
(
struct
pagevec
*
pvec
,
unsigned
pagevec_lookup_range_tag
(
struct
pagevec
*
pvec
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
in
t
tag
)
xa_mark_
t
tag
)
{
{
pvec
->
nr
=
find_get_pages_range_tag
(
mapping
,
index
,
end
,
tag
,
pvec
->
nr
=
find_get_pages_range_tag
(
mapping
,
index
,
end
,
tag
,
PAGEVEC_SIZE
,
pvec
->
pages
);
PAGEVEC_SIZE
,
pvec
->
pages
);
...
@@ -1012,7 +1012,7 @@ EXPORT_SYMBOL(pagevec_lookup_range_tag);
...
@@ -1012,7 +1012,7 @@ EXPORT_SYMBOL(pagevec_lookup_range_tag);
unsigned
pagevec_lookup_range_nr_tag
(
struct
pagevec
*
pvec
,
unsigned
pagevec_lookup_range_nr_tag
(
struct
pagevec
*
pvec
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
struct
address_space
*
mapping
,
pgoff_t
*
index
,
pgoff_t
end
,
in
t
tag
,
unsigned
max_pages
)
xa_mark_
t
tag
,
unsigned
max_pages
)
{
{
pvec
->
nr
=
find_get_pages_range_tag
(
mapping
,
index
,
end
,
tag
,
pvec
->
nr
=
find_get_pages_range_tag
(
mapping
,
index
,
end
,
tag
,
min_t
(
unsigned
int
,
max_pages
,
PAGEVEC_SIZE
),
pvec
->
pages
);
min_t
(
unsigned
int
,
max_pages
,
PAGEVEC_SIZE
),
pvec
->
pages
);
...
...
This diff is collapsed.
Click to expand it.
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