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
1b85674e
Commit
1b85674e
authored
Dec 11, 2002
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] remove some dead code from pagebuf
SGI Modid: 2.5.x-xfs:slinx:134960a
parent
dcf092b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
32 deletions
+1
-32
fs/xfs/pagebuf/page_buf.c
fs/xfs/pagebuf/page_buf.c
+1
-23
fs/xfs/pagebuf/page_buf.h
fs/xfs/pagebuf/page_buf.h
+0
-9
No files found.
fs/xfs/pagebuf/page_buf.c
View file @
1b85674e
...
@@ -786,28 +786,6 @@ pagebuf_get( /* allocate a buffer */
...
@@ -786,28 +786,6 @@ pagebuf_get( /* allocate a buffer */
return
(
pb
);
return
(
pb
);
}
}
/*
* Create a pagebuf and populate it with pages from the address
* space of the passed in inode.
*/
page_buf_t
*
pagebuf_lookup
(
struct
pb_target
*
target
,
struct
inode
*
inode
,
loff_t
ioff
,
size_t
isize
,
page_buf_flags_t
flags
)
{
page_buf_t
*
pb
=
NULL
;
flags
|=
_PBF_PRIVATE_BH
;
pb
=
pagebuf_allocate
(
flags
);
if
(
pb
)
{
_pagebuf_initialize
(
pb
,
target
,
ioff
,
isize
,
flags
);
}
return
pb
;
}
/*
/*
* If we are not low on memory then do the readahead in a deadlock
* If we are not low on memory then do the readahead in a deadlock
* safe manner.
* safe manner.
...
@@ -905,7 +883,7 @@ pagebuf_associate_memory(
...
@@ -905,7 +883,7 @@ pagebuf_associate_memory(
pb
->
pb_locked
=
0
;
pb
->
pb_locked
=
0
;
pb
->
pb_count_desired
=
pb
->
pb_buffer_length
=
len
;
pb
->
pb_count_desired
=
pb
->
pb_buffer_length
=
len
;
pb
->
pb_flags
|=
PBF_MAPPED
|
_PBF_PRIVATE_BH
;
pb
->
pb_flags
|=
PBF_MAPPED
;
return
0
;
return
0
;
}
}
...
...
fs/xfs/pagebuf/page_buf.h
View file @
1b85674e
...
@@ -109,7 +109,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */
...
@@ -109,7 +109,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */
/* flags used only internally */
/* flags used only internally */
_PBF_LOCKABLE
=
(
1
<<
19
),
/* page_buf_t may be locked */
_PBF_LOCKABLE
=
(
1
<<
19
),
/* page_buf_t may be locked */
_PBF_PRIVATE_BH
=
(
1
<<
20
),
/* do not use public buffer heads */
_PBF_ALL_PAGES_MAPPED
=
(
1
<<
21
),
_PBF_ALL_PAGES_MAPPED
=
(
1
<<
21
),
/* all pages in rage are mapped */
/* all pages in rage are mapped */
_PBF_ADDR_ALLOCATED
=
(
1
<<
22
),
_PBF_ADDR_ALLOCATED
=
(
1
<<
22
),
...
@@ -251,14 +250,6 @@ extern page_buf_t *pagebuf_get( /* allocate a buffer */
...
@@ -251,14 +250,6 @@ extern page_buf_t *pagebuf_get( /* allocate a buffer */
page_buf_flags_t
);
/* PBF_LOCK, PBF_READ, */
page_buf_flags_t
);
/* PBF_LOCK, PBF_READ, */
/* PBF_ASYNC */
/* PBF_ASYNC */
extern
page_buf_t
*
pagebuf_lookup
(
struct
pb_target
*
,
struct
inode
*
,
loff_t
,
/* starting offset of range */
size_t
,
/* length of range */
page_buf_flags_t
);
/* PBF_READ, PBF_WRITE, */
/* PBF_FORCEIO, _PBF_LOCKABLE */
extern
page_buf_t
*
pagebuf_get_empty
(
/* allocate pagebuf struct with */
extern
page_buf_t
*
pagebuf_get_empty
(
/* allocate pagebuf struct with */
/* no memory or disk address */
/* no memory or disk address */
struct
pb_target
*
);
/* mount point "fake" inode */
struct
pb_target
*
);
/* mount point "fake" inode */
...
...
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