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
cccac600
Commit
cccac600
authored
May 15, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fixed quota recursion fix
This fixes the gfp_mask setting on the quota inode.
parent
054852c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
fs/dquot.c
fs/dquot.c
+10
-1
No files found.
fs/dquot.c
View file @
cccac600
...
@@ -1372,7 +1372,16 @@ static int vfs_quota_on_file(struct file *f, int type, int format_id)
...
@@ -1372,7 +1372,16 @@ static int vfs_quota_on_file(struct file *f, int type, int format_id)
* into filesystem when allocating page for quota inode */
* into filesystem when allocating page for quota inode */
down_write
(
&
dqopt
->
dqptr_sem
);
down_write
(
&
dqopt
->
dqptr_sem
);
inode
->
i_flags
|=
S_NOQUOTA
|
S_NOATIME
;
inode
->
i_flags
|=
S_NOQUOTA
|
S_NOATIME
;
clear_bit
(
ffs
(
__GFP_FS
),
&
inode
->
i_mapping
->
flags
);
/*
* We write to quota files deep within filesystem code. We don't want
* the VFS to reenter filesystem code when it tries to allocate a
* pagecache page for the quota file write. So clear __GFP_FS in
* the quota file's allocation flags.
*/
mapping_set_gfp_mask
(
inode
->
i_mapping
,
mapping_gfp_mask
(
inode
->
i_mapping
)
&
~
__GFP_FS
);
for
(
cnt
=
0
;
cnt
<
MAXQUOTAS
;
cnt
++
)
{
for
(
cnt
=
0
;
cnt
<
MAXQUOTAS
;
cnt
++
)
{
to_drop
[
cnt
]
=
inode
->
i_dquot
[
cnt
];
to_drop
[
cnt
]
=
inode
->
i_dquot
[
cnt
];
inode
->
i_dquot
[
cnt
]
=
NODQUOT
;
inode
->
i_dquot
[
cnt
]
=
NODQUOT
;
...
...
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