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
6316036f
Commit
6316036f
authored
May 19, 2004
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: set GFP_NOFS to avoid recursing back into file system code
parent
10e27752
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
fs/jfs/jfs_mount.c
fs/jfs/jfs_mount.c
+5
-0
fs/jfs/jfs_umount.c
fs/jfs/jfs_umount.c
+7
-1
No files found.
fs/jfs/jfs_mount.c
View file @
6316036f
...
@@ -288,6 +288,11 @@ int jfs_mount_rw(struct super_block *sb, int remount)
...
@@ -288,6 +288,11 @@ int jfs_mount_rw(struct super_block *sb, int remount)
*/
*/
logMOUNT
(
sb
);
logMOUNT
(
sb
);
/*
* Set page cache allocation policy
*/
mapping_set_gfp_mask
(
sb
->
s_bdev
->
bd_inode
->
i_mapping
,
GFP_NOFS
);
return
rc
;
return
rc
;
}
}
...
...
fs/jfs/jfs_umount.c
View file @
6316036f
...
@@ -121,7 +121,10 @@ int jfs_umount(struct super_block *sb)
...
@@ -121,7 +121,10 @@ int jfs_umount(struct super_block *sb)
* list (to signify skip logredo()).
* list (to signify skip logredo()).
*/
*/
if
(
log
)
{
/* log = NULL if read-only mount */
if
(
log
)
{
/* log = NULL if read-only mount */
rc
=
updateSuper
(
sb
,
FM_CLEAN
);
updateSuper
(
sb
,
FM_CLEAN
);
/* Restore default gfp_mask for bdev */
mapping_set_gfp_mask
(
bdev_mapping
,
GFP_USER
);
/*
/*
* close log:
* close log:
...
@@ -168,5 +171,8 @@ int jfs_umount_rw(struct super_block *sb)
...
@@ -168,5 +171,8 @@ int jfs_umount_rw(struct super_block *sb)
updateSuper
(
sb
,
FM_CLEAN
);
updateSuper
(
sb
,
FM_CLEAN
);
/* Restore default gfp_mask for bdev */
mapping_set_gfp_mask
(
bdev_mapping
,
GFP_USER
);
return
lmLogClose
(
sb
);
return
lmLogClose
(
sb
);
}
}
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