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
f6c0a192
Commit
f6c0a192
authored
Apr 23, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/file.c: don't open-code kvfree()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
38583f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
fs/file.c
fs/file.c
+3
-8
No files found.
fs/file.c
View file @
f6c0a192
...
...
@@ -44,15 +44,10 @@ static void *alloc_fdmem(size_t size)
return
vmalloc
(
size
);
}
static
void
free_fdmem
(
void
*
ptr
)
{
is_vmalloc_addr
(
ptr
)
?
vfree
(
ptr
)
:
kfree
(
ptr
);
}
static
void
__free_fdtable
(
struct
fdtable
*
fdt
)
{
free_fdmem
(
fdt
->
fd
);
free_fdmem
(
fdt
->
open_fds
);
kvfree
(
fdt
->
fd
);
kvfree
(
fdt
->
open_fds
);
kfree
(
fdt
);
}
...
...
@@ -130,7 +125,7 @@ static struct fdtable * alloc_fdtable(unsigned int nr)
return
fdt
;
out_arr:
free_fdmem
(
fdt
->
fd
);
kvfree
(
fdt
->
fd
);
out_fdt:
kfree
(
fdt
);
out:
...
...
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