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
933efea8
Commit
933efea8
authored
Mar 16, 2004
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: zero new log pages, etc.
parent
e8c51293
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
fs/jfs/jfs_logmgr.c
fs/jfs/jfs_logmgr.c
+1
-1
fs/jfs/jfs_metapage.c
fs/jfs/jfs_metapage.c
+4
-0
fs/jfs/super.c
fs/jfs/super.c
+1
-1
No files found.
fs/jfs/jfs_logmgr.c
View file @
933efea8
...
...
@@ -1811,7 +1811,7 @@ static int lbmLogInit(struct jfs_log * log)
lbuf
=
kmalloc
(
sizeof
(
struct
lbuf
),
GFP_KERNEL
);
if
(
lbuf
==
0
)
goto
error
;
lbuf
->
l_ldata
=
(
char
*
)
__get_free
_page
(
GFP_KERNEL
);
lbuf
->
l_ldata
=
(
char
*
)
get_zeroed
_page
(
GFP_KERNEL
);
if
(
lbuf
->
l_ldata
==
0
)
{
kfree
(
lbuf
);
goto
error
;
...
...
fs/jfs/jfs_metapage.c
View file @
933efea8
...
...
@@ -341,6 +341,10 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock,
}
mp
->
data
=
kmap
(
mp
->
page
)
+
page_offset
;
}
if
(
new
)
memset
(
mp
->
data
,
0
,
PSIZE
);
jfs_info
(
"__get_metapage: returning = 0x%p"
,
mp
);
return
mp
;
...
...
fs/jfs/super.c
View file @
933efea8
...
...
@@ -548,11 +548,11 @@ static void init_once(void *foo, kmem_cache_t * cachep, unsigned long flags)
if
((
flags
&
(
SLAB_CTOR_VERIFY
|
SLAB_CTOR_CONSTRUCTOR
))
==
SLAB_CTOR_CONSTRUCTOR
)
{
memset
(
jfs_ip
,
0
,
sizeof
(
struct
jfs_inode_info
));
INIT_LIST_HEAD
(
&
jfs_ip
->
anon_inode_list
);
init_rwsem
(
&
jfs_ip
->
rdwrlock
);
init_MUTEX
(
&
jfs_ip
->
commit_sem
);
init_rwsem
(
&
jfs_ip
->
xattr_sem
);
jfs_ip
->
atlhead
=
0
;
jfs_ip
->
active_ag
=
-
1
;
#ifdef CONFIG_JFS_POSIX_ACL
jfs_ip
->
i_acl
=
JFS_ACL_NOT_CACHED
;
...
...
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