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
486198fb
Commit
486198fb
authored
Jul 12, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: more fs/* NULL noise removal
(partially based on patch from Mika Kukkonen)
parent
8a4ba9cf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
27 deletions
+28
-27
fs/ext2/xattr.c
fs/ext2/xattr.c
+2
-1
fs/jffs/jffs_fm.c
fs/jffs/jffs_fm.c
+2
-3
fs/lockd/xdr4.c
fs/lockd/xdr4.c
+2
-2
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+1
-1
fs/reiserfs/super.c
fs/reiserfs/super.c
+21
-20
No files found.
fs/ext2/xattr.c
View file @
486198fb
...
...
@@ -772,7 +772,8 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh,
s_first_data_block
)
+
EXT2_I
(
inode
)
->
i_block_group
*
EXT2_BLOCKS_PER_GROUP
(
sb
);
int
block
=
ext2_new_block
(
inode
,
goal
,
0
,
0
,
&
error
);
int
block
=
ext2_new_block
(
inode
,
goal
,
NULL
,
NULL
,
&
error
);
if
(
error
)
goto
cleanup
;
ea_idebug
(
inode
,
"creating block %d"
,
block
);
...
...
fs/jffs/jffs_fm.c
View file @
486198fb
...
...
@@ -114,10 +114,9 @@ void
jffs_cleanup_fmcontrol
(
struct
jffs_fmcontrol
*
fmc
)
{
if
(
fmc
)
{
struct
jffs_fm
*
cur
;
struct
jffs_fm
*
next
=
fmc
->
head
;
while
((
cur
=
next
))
{
while
(
next
)
{
struct
jffs_fm
*
cur
=
next
;
next
=
next
->
next
;
jffs_free_fm
(
cur
);
}
...
...
fs/lockd/xdr4.c
View file @
486198fb
...
...
@@ -191,7 +191,7 @@ nlm4_encode_testres(u32 *p, struct nlm_res *resp)
dprintk
(
"xdr: before encode_testres (p %p resp %p)
\n
"
,
p
,
resp
);
if
(
!
(
p
=
nlm4_encode_cookie
(
p
,
&
resp
->
cookie
)))
return
0
;
return
NULL
;
*
p
++
=
resp
->
status
;
if
(
resp
->
status
==
nlm_lck_denied
)
{
...
...
@@ -202,7 +202,7 @@ nlm4_encode_testres(u32 *p, struct nlm_res *resp)
/* Encode owner handle. */
if
(
!
(
p
=
xdr_encode_netobj
(
p
,
&
resp
->
lock
.
oh
)))
return
0
;
return
NULL
;
start
=
loff_t_to_s64
(
fl
->
fl_start
);
if
(
fl
->
fl_end
==
OFFSET_MAX
)
...
...
fs/nfs/nfs4proc.c
View file @
486198fb
...
...
@@ -387,7 +387,7 @@ nfs4_do_setattr(struct nfs_server *server, struct nfs_fattr *fattr,
fattr
->
valid
=
0
;
if
(
sattr
->
ia_valid
&
ATTR_SIZE
)
nfs4_copy_stateid
(
&
arg
.
stateid
,
state
,
0
);
nfs4_copy_stateid
(
&
arg
.
stateid
,
state
,
NULL
);
else
memcpy
(
&
arg
.
stateid
,
&
zero_stateid
,
sizeof
(
arg
.
stateid
));
...
...
fs/reiserfs/super.c
View file @
486198fb
...
...
@@ -695,28 +695,29 @@ static int reiserfs_parse_options (struct super_block * s, char * options, /* st
char
*
arg
=
NULL
;
char
*
pos
;
opt_desc_t
opts
[]
=
{
{
"tails"
,
't'
,
tails
,
0
,
0
},
/* Compatibility stuff, so that -o notail for old setups still work */
{
"notail"
,
0
,
0
,
0
,
(
1
<<
REISERFS_LARGETAIL
)
|
(
1
<<
REISERFS_SMALLTAIL
)},
{
"conv"
,
0
,
0
,
1
<<
REISERFS_CONVERT
,
0
},
{
"attrs"
,
0
,
0
,
1
<<
REISERFS_ATTRS
,
0
},
{
"noattrs"
,
0
,
0
,
0
,
1
<<
REISERFS_ATTRS
},
{
"user_xattr"
,
0
,
0
,
1
<<
REISERFS_XATTRS_USER
,
0
},
{
"nouser_xattr"
,
0
,
0
,
0
,
1
<<
REISERFS_XATTRS_USER
},
/* Compatibility stuff, so that -o notail for old setups still work */
{
"tails"
,
.
arg_required
=
't'
,
.
values
=
tails
},
{
"notail"
,
.
clrmask
=
(
1
<<
REISERFS_LARGETAIL
)
|
(
1
<<
REISERFS_SMALLTAIL
)},
{
"conv"
,
.
setmask
=
1
<<
REISERFS_CONVERT
},
{
"attrs"
,
.
setmask
=
1
<<
REISERFS_ATTRS
},
{
"noattrs"
,
.
clrmask
=
1
<<
REISERFS_ATTRS
},
{
"user_xattr"
,
.
setmask
=
1
<<
REISERFS_XATTRS_USER
},
{
"nouser_xattr"
,.
clrmask
=
1
<<
REISERFS_XATTRS_USER
},
#ifdef CONFIG_REISERFS_FS_POSIX_ACL
{
"acl"
,
0
,
0
,
1
<<
REISERFS_POSIXACL
,
0
},
{
"noacl"
,
0
,
0
,
0
,
1
<<
REISERFS_POSIXACL
},
{
"acl"
,
.
setmask
=
1
<<
REISERFS_POSIXACL
},
{
"noacl"
,
.
clrmask
=
1
<<
REISERFS_POSIXACL
},
#endif
{
"nolog"
,
0
,
0
,
0
,
0
},
/* This is unsupported */
{
"replayonly"
,
0
,
0
,
1
<<
REPLAYONLY
,
0
},
{
"block-allocator"
,
'a'
,
balloc
,
0
,
0
},
{
"data"
,
'd'
,
logging_mode
,
0
,
0
},
{
"resize"
,
'r'
,
0
,
0
,
0
},
{
"jdev"
,
'j'
,
0
,
0
,
0
},
{
"nolargeio"
,
'w'
,
0
,
0
,
0
},
{
"commit"
,
'c'
,
0
,
0
,
0
},
{
"usrquota"
,
0
,
0
,
0
,
0
},
{
"grpquota"
,
0
,
0
,
0
,
0
},
{
NULL
,
0
,
0
,
0
,
0
}
{
"nolog"
,
},
/* This is unsupported */
{
"replayonly"
,
.
setmask
=
1
<<
REPLAYONLY
},
{
"block-allocator"
,
.
arg_required
=
'a'
,
.
values
=
balloc
},
{
"data"
,
.
arg_required
=
'd'
,
.
values
=
logging_mode
},
{
"resize"
,
.
arg_required
=
'r'
,
.
values
=
NULL
},
{
"jdev"
,
.
arg_required
=
'j'
,
.
values
=
NULL
},
{
"nolargeio"
,
.
arg_required
=
'w'
,
.
values
=
NULL
},
{
"commit"
,
.
arg_required
=
'c'
,
.
values
=
NULL
},
{
"usrquota"
,},
{
"grpquota"
,},
{
NULL
,}
};
*
blocks
=
0
;
...
...
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