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
876a4fb3
Commit
876a4fb3
authored
Jan 31, 2004
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Don't fail pagebuf allocations
SGI Modid: xfs-linux:xfs-kern:165648a
parent
bd997c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fs/xfs/linux/xfs_buf.c
fs/xfs/linux/xfs_buf.c
+6
-2
No files found.
fs/xfs/linux/xfs_buf.c
View file @
876a4fb3
...
...
@@ -193,10 +193,14 @@ EXPORT_SYMBOL(pagebuf_trace_buf);
(((flags) & PBF_READ_AHEAD) ? GFP_READAHEAD : \
((flags) & PBF_DONT_BLOCK) ? GFP_NOFS : GFP_KERNEL)
#define pb_to_km(flags) \
(((flags) & PBF_DONT_BLOCK) ? KM_NOFS : KM_SLEEP)
#define pagebuf_allocate(flags) \
kmem_
cache_alloc(pagebuf_cache, pb_to_gfp
(flags))
kmem_
zone_alloc(pagebuf_cache, pb_to_km
(flags))
#define pagebuf_deallocate(pb) \
kmem_
cach
e_free(pagebuf_cache, (pb));
kmem_
zon
e_free(pagebuf_cache, (pb));
/*
* Pagebuf hashing
...
...
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