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
a4040581
Commit
a4040581
authored
Feb 06, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Feb 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] (1/6) more ->get_sb()
smbfs switched to ->get_sb()
parent
51847e22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
fs/smbfs/inode.c
fs/smbfs/inode.c
+16
-7
fs/smbfs/proto.h
fs/smbfs/proto.h
+0
-1
No files found.
fs/smbfs/inode.c
View file @
a4040581
...
@@ -460,8 +460,7 @@ smb_put_super(struct super_block *sb)
...
@@ -460,8 +460,7 @@ smb_put_super(struct super_block *sb)
}
}
}
}
struct
super_block
*
int
smb_fill_super
(
struct
super_block
*
sb
,
void
*
raw_data
,
int
silent
)
smb_read_super
(
struct
super_block
*
sb
,
void
*
raw_data
,
int
silent
)
{
{
struct
smb_sb_info
*
server
=
&
sb
->
u
.
smbfs_sb
;
struct
smb_sb_info
*
server
=
&
sb
->
u
.
smbfs_sb
;
struct
smb_mount_data_kernel
*
mnt
;
struct
smb_mount_data_kernel
*
mnt
;
...
@@ -561,7 +560,7 @@ smb_read_super(struct super_block *sb, void *raw_data, int silent)
...
@@ -561,7 +560,7 @@ smb_read_super(struct super_block *sb, void *raw_data, int silent)
goto
out_no_root
;
goto
out_no_root
;
smb_new_dentry
(
sb
->
s_root
);
smb_new_dentry
(
sb
->
s_root
);
return
sb
;
return
0
;
out_no_root:
out_no_root:
iput
(
root_inode
);
iput
(
root_inode
);
...
@@ -573,15 +572,15 @@ smb_read_super(struct super_block *sb, void *raw_data, int silent)
...
@@ -573,15 +572,15 @@ smb_read_super(struct super_block *sb, void *raw_data, int silent)
smb_vfree
(
server
->
packet
);
smb_vfree
(
server
->
packet
);
out_no_mem:
out_no_mem:
if
(
!
server
->
mnt
)
if
(
!
server
->
mnt
)
printk
(
KERN_ERR
"smb_
read
_super: allocation failure
\n
"
);
printk
(
KERN_ERR
"smb_
fill
_super: allocation failure
\n
"
);
goto
out_fail
;
goto
out_fail
;
out_wrong_data:
out_wrong_data:
printk
(
KERN_ERR
"smbfs: mount_data version %d is not supported
\n
"
,
ver
);
printk
(
KERN_ERR
"smbfs: mount_data version %d is not supported
\n
"
,
ver
);
goto
out_fail
;
goto
out_fail
;
out_no_data:
out_no_data:
printk
(
KERN_ERR
"smb_
read
_super: missing data argument
\n
"
);
printk
(
KERN_ERR
"smb_
fill
_super: missing data argument
\n
"
);
out_fail:
out_fail:
return
NUL
L
;
return
-
EINVA
L
;
}
}
static
int
static
int
...
@@ -706,7 +705,17 @@ int smb_current_kmalloced;
...
@@ -706,7 +705,17 @@ int smb_current_kmalloced;
int
smb_current_vmalloced
;
int
smb_current_vmalloced
;
#endif
#endif
static
DECLARE_FSTYPE
(
smb_fs_type
,
"smbfs"
,
smb_read_super
,
0
);
static
struct
super_block
*
smb_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
return
get_sb_nodev
(
fs_type
,
flags
,
data
,
smb_fill_super
);
}
static
struct
file_system_type
smb_fs_type
=
{
owner:
THIS_MODULE
,
name:
"smbfs"
,
get_sb:
smb_get_sb
,
};
static
int
__init
init_smb_fs
(
void
)
static
int
__init
init_smb_fs
(
void
)
{
{
...
...
fs/smbfs/proto.h
View file @
a4040581
...
@@ -53,7 +53,6 @@ extern void smb_get_inode_attr(struct inode *inode, struct smb_fattr *fattr);
...
@@ -53,7 +53,6 @@ extern void smb_get_inode_attr(struct inode *inode, struct smb_fattr *fattr);
extern
void
smb_set_inode_attr
(
struct
inode
*
inode
,
struct
smb_fattr
*
fattr
);
extern
void
smb_set_inode_attr
(
struct
inode
*
inode
,
struct
smb_fattr
*
fattr
);
extern
void
smb_invalidate_inodes
(
struct
smb_sb_info
*
server
);
extern
void
smb_invalidate_inodes
(
struct
smb_sb_info
*
server
);
extern
int
smb_revalidate_inode
(
struct
dentry
*
dentry
);
extern
int
smb_revalidate_inode
(
struct
dentry
*
dentry
);
extern
struct
super_block
*
smb_read_super
(
struct
super_block
*
sb
,
void
*
raw_data
,
int
silent
);
extern
int
smb_notify_change
(
struct
dentry
*
dentry
,
struct
iattr
*
attr
);
extern
int
smb_notify_change
(
struct
dentry
*
dentry
,
struct
iattr
*
attr
);
/* file.c */
/* file.c */
extern
struct
address_space_operations
smb_file_aops
;
extern
struct
address_space_operations
smb_file_aops
;
...
...
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