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
ddd39a53
Commit
ddd39a53
authored
Jun 23, 2003
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trivia: use JFFS2 PAD() macro instead of masking manually.
parent
25883336
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
fs/jffs2/dir.c
fs/jffs2/dir.c
+3
-3
fs/jffs2/scan.c
fs/jffs2/scan.c
+2
-2
No files found.
fs/jffs2/dir.c
View file @
ddd39a53
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: dir.c,v 1.7
6 2003/05/26 09:50:38
dwmw2 Exp $
* $Id: dir.c,v 1.7
7 2003/06/05 14:42:24
dwmw2 Exp $
*
*/
...
...
@@ -356,7 +356,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char
up
(
&
f
->
sem
);
/* Work out where to put the dirent node now. */
writtenlen
=
(
writtenlen
+
3
)
&~
3
;
writtenlen
=
PAD
(
writtenlen
)
;
phys_ofs
+=
writtenlen
;
alloclen
-=
writtenlen
;
...
...
@@ -653,7 +653,7 @@ static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, int mode, mk
up
(
&
f
->
sem
);
/* Work out where to put the dirent node now. */
writtenlen
=
(
writtenlen
+
3
)
&~
3
;
writtenlen
=
PAD
(
writtenlen
)
;
phys_ofs
+=
writtenlen
;
alloclen
-=
writtenlen
;
...
...
fs/jffs2/scan.c
View file @
ddd39a53
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: scan.c,v 1.
99 2003/04/28 10:17:17
dwmw2 Exp $
* $Id: scan.c,v 1.
100 2003/06/05 14:42:24
dwmw2 Exp $
*
*/
#include <linux/kernel.h>
...
...
@@ -354,7 +354,7 @@ static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblo
if
(
ofs
&
3
)
{
printk
(
KERN_WARNING
"Eep. ofs 0x%08x not word-aligned!
\n
"
,
ofs
);
ofs
=
(
ofs
+
3
)
&~
3
;
ofs
=
PAD
(
ofs
)
;
continue
;
}
if
(
ofs
==
prevofs
)
{
...
...
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