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
8f062df2
Commit
8f062df2
authored
Feb 10, 2004
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Remove PBF_MAPPABLE
SGI Modid: xfs-linux:xfs-kern:166087a
parent
b7e65c30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
fs/xfs/linux/xfs_buf.c
fs/xfs/linux/xfs_buf.c
+3
-6
fs/xfs/linux/xfs_buf.h
fs/xfs/linux/xfs_buf.h
+4
-7
No files found.
fs/xfs/linux/xfs_buf.c
View file @
8f062df2
...
@@ -470,10 +470,8 @@ _pagebuf_lookup_pages(
...
@@ -470,10 +470,8 @@ _pagebuf_lookup_pages(
retry_count
=
0
;
retry_count
=
0
;
}
else
if
(
flags
&
PBF_DONT_BLOCK
)
{
}
else
if
(
flags
&
PBF_DONT_BLOCK
)
{
gfp_mask
=
GFP_NOFS
;
gfp_mask
=
GFP_NOFS
;
}
else
if
(
flags
&
PBF_MAPPABLE
)
{
gfp_mask
=
GFP_KERNEL
;
}
else
{
}
else
{
gfp_mask
=
GFP_
HIGHUSER
;
gfp_mask
=
GFP_
KERNEL
;
}
}
next_buffer_offset
=
pb
->
pb_file_offset
+
pb
->
pb_buffer_length
;
next_buffer_offset
=
pb
->
pb_file_offset
+
pb
->
pb_buffer_length
;
...
@@ -708,8 +706,7 @@ _pagebuf_find( /* find buffer for block */
...
@@ -708,8 +706,7 @@ _pagebuf_find( /* find buffer for block */
}
}
if
(
pb
->
pb_flags
&
PBF_STALE
)
if
(
pb
->
pb_flags
&
PBF_STALE
)
pb
->
pb_flags
&=
PBF_MAPPABLE
|
\
pb
->
pb_flags
&=
PBF_MAPPED
|
\
PBF_MAPPED
|
\
_PBF_ALL_PAGES_MAPPED
|
\
_PBF_ALL_PAGES_MAPPED
|
\
_PBF_ADDR_ALLOCATED
|
\
_PBF_ADDR_ALLOCATED
|
\
_PBF_MEM_ALLOCATED
|
\
_PBF_MEM_ALLOCATED
|
\
...
@@ -856,7 +853,7 @@ pagebuf_readahead(
...
@@ -856,7 +853,7 @@ pagebuf_readahead(
if
(
bdi_write_congested
(
bdi
))
if
(
bdi_write_congested
(
bdi
))
return
;
return
;
flags
|=
(
PBF_TRYLOCK
|
PBF_READ
|
PBF_ASYNC
|
PBF_
MAPPABLE
|
PBF_
READ_AHEAD
);
flags
|=
(
PBF_TRYLOCK
|
PBF_READ
|
PBF_ASYNC
|
PBF_READ_AHEAD
);
pagebuf_get
(
target
,
ioff
,
isize
,
flags
);
pagebuf_get
(
target
,
ioff
,
isize
,
flags
);
}
}
...
...
fs/xfs/linux/xfs_buf.h
View file @
8f062df2
...
@@ -77,7 +77,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */
...
@@ -77,7 +77,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */
PBF_NONE
=
(
1
<<
5
),
/* buffer not read at all */
PBF_NONE
=
(
1
<<
5
),
/* buffer not read at all */
PBF_DELWRI
=
(
1
<<
6
),
/* buffer has dirty pages */
PBF_DELWRI
=
(
1
<<
6
),
/* buffer has dirty pages */
PBF_SYNC
=
(
1
<<
8
),
/* force updates to disk */
PBF_SYNC
=
(
1
<<
8
),
/* force updates to disk */
PBF_MAPPABLE
=
(
1
<<
9
),
/* use directly-addressable pages */
PBF_STALE
=
(
1
<<
10
),
/* buffer has been staled, do not find it */
PBF_STALE
=
(
1
<<
10
),
/* buffer has been staled, do not find it */
PBF_FS_MANAGED
=
(
1
<<
11
),
/* filesystem controls freeing memory */
PBF_FS_MANAGED
=
(
1
<<
11
),
/* filesystem controls freeing memory */
PBF_FS_DATAIOD
=
(
1
<<
12
),
/* schedule IO completion on fs datad */
PBF_FS_DATAIOD
=
(
1
<<
12
),
/* schedule IO completion on fs datad */
...
@@ -508,17 +507,15 @@ extern inline xfs_caddr_t xfs_buf_offset(page_buf_t *bp, size_t offset)
...
@@ -508,17 +507,15 @@ extern inline xfs_caddr_t xfs_buf_offset(page_buf_t *bp, size_t offset)
#define xfs_buf_read(target, blkno, len, flags) \
#define xfs_buf_read(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \
pagebuf_get((target), (blkno), (len), \
PBF_LOCK | PBF_READ | PBF_MAPPED
| PBF_MAPPABLE
)
PBF_LOCK | PBF_READ | PBF_MAPPED)
#define xfs_buf_get(target, blkno, len, flags) \
#define xfs_buf_get(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \
pagebuf_get((target), (blkno), (len), \
PBF_LOCK | PBF_MAPPED
| PBF_MAPPABLE
)
PBF_LOCK | PBF_MAPPED)
#define xfs_buf_read_flags(target, blkno, len, flags) \
#define xfs_buf_read_flags(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \
pagebuf_get((target), (blkno), (len), PBF_READ | (flags))
PBF_READ | PBF_MAPPABLE | flags)
#define xfs_buf_get_flags(target, blkno, len, flags) \
#define xfs_buf_get_flags(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \
pagebuf_get((target), (blkno), (len), (flags))
PBF_MAPPABLE | flags)
static
inline
int
xfs_bawrite
(
void
*
mp
,
page_buf_t
*
bp
)
static
inline
int
xfs_bawrite
(
void
*
mp
,
page_buf_t
*
bp
)
{
{
...
...
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