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
bc846ba4
Commit
bc846ba4
authored
Mar 12, 2002
by
Brian Gerst
Committed by
Linus Torvalds
Mar 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] struct super_block cleanup - ncpfs
Seperates ncp_sb_info from struct super_block.
parent
dbd6e343
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
fs/ncpfs/inode.c
fs/ncpfs/inode.c
+8
-1
include/linux/fs.h
include/linux/fs.h
+0
-2
include/linux/ncp_fs.h
include/linux/ncp_fs.h
+5
-1
include/linux/ncp_fs_sb.h
include/linux/ncp_fs_sb.h
+0
-2
No files found.
fs/ncpfs/inode.c
View file @
bc846ba4
...
...
@@ -315,6 +315,10 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
#endif
struct
ncp_entry_info
finfo
;
server
=
kmalloc
(
sizeof
(
struct
ncp_server
),
GFP_KERNEL
);
if
(
!
server
)
return
-
ENOMEM
;
sb
->
u
.
generic_sbp
=
server
;
error
=
-
EFAULT
;
if
(
raw_data
==
NULL
)
goto
out
;
...
...
@@ -520,6 +524,8 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
*/
fput
(
ncp_filp
);
out:
sb
->
u
.
generic_sbp
=
NULL
;
kfree
(
server
);
return
error
;
}
...
...
@@ -553,7 +559,8 @@ static void ncp_put_super(struct super_block *sb)
if
(
server
->
auth
.
object_name
)
ncp_kfree_s
(
server
->
auth
.
object_name
,
server
->
auth
.
object_name_len
);
vfree
(
server
->
packet
);
sb
->
u
.
generic_sbp
=
NULL
;
kfree
(
server
);
}
static
int
ncp_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
)
...
...
include/linux/fs.h
View file @
bc846ba4
...
...
@@ -667,7 +667,6 @@ struct quota_mount_options
#include <linux/reiserfs_fs_sb.h>
#include <linux/bfs_fs_sb.h>
#include <linux/udf_fs_sb.h>
#include <linux/ncp_fs_sb.h>
#include <linux/jffs2_fs_sb.h>
extern
struct
list_head
super_blocks
;
...
...
@@ -724,7 +723,6 @@ struct super_block {
struct
reiserfs_sb_info
reiserfs_sb
;
struct
bfs_sb_info
bfs_sb
;
struct
udf_sb_info
udf_sb
;
struct
ncp_sb_info
ncpfs_sb
;
struct
jffs2_sb_info
jffs2_sb
;
void
*
generic_sbp
;
}
u
;
...
...
include/linux/ncp_fs.h
View file @
bc846ba4
...
...
@@ -13,6 +13,7 @@
#include <linux/types.h>
#include <linux/ncp_fs_i.h>
#include <linux/ncp_fs_sb.h>
#include <linux/ipx.h>
#include <linux/ncp_no.h>
...
...
@@ -190,7 +191,10 @@ struct ncp_entry_info {
#define NCP_SUPER_MAGIC 0x564c
#define NCP_SBP(sb) (&((sb)->u.ncpfs_sb))
static
inline
struct
ncp_server
*
NCP_SBP
(
struct
super_block
*
sb
)
{
return
sb
->
u
.
generic_sbp
;
}
#define NCP_SERVER(inode) NCP_SBP((inode)->i_sb)
static
inline
struct
ncp_inode_info
*
NCP_FINFO
(
struct
inode
*
inode
)
...
...
include/linux/ncp_fs_sb.h
View file @
bc846ba4
...
...
@@ -81,8 +81,6 @@ struct ncp_server {
unsigned
int
flags
;
};
#define ncp_sb_info ncp_server
#define NCP_FLAG_UTF8 1
#define NCP_CLR_FLAG(server, flag) ((server)->flags &= ~(flag))
...
...
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