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
b5c7d208
Commit
b5c7d208
authored
Jan 12, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert smbfs
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
43d344d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
13 deletions
+6
-13
drivers/staging/smbfs/dir.c
drivers/staging/smbfs/dir.c
+0
-13
drivers/staging/smbfs/inode.c
drivers/staging/smbfs/inode.c
+4
-0
drivers/staging/smbfs/proto.h
drivers/staging/smbfs/proto.h
+2
-0
No files found.
drivers/staging/smbfs/dir.c
View file @
b5c7d208
...
...
@@ -403,12 +403,6 @@ smb_delete_dentry(const struct dentry *dentry)
void
smb_new_dentry
(
struct
dentry
*
dentry
)
{
struct
smb_sb_info
*
server
=
server_from_dentry
(
dentry
);
if
(
server
->
mnt
->
flags
&
SMB_MOUNT_CASE
)
d_set_d_op
(
dentry
,
&
smbfs_dentry_operations_case
);
else
d_set_d_op
(
dentry
,
&
smbfs_dentry_operations
);
dentry
->
d_time
=
jiffies
;
}
...
...
@@ -440,7 +434,6 @@ smb_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
struct
smb_fattr
finfo
;
struct
inode
*
inode
;
int
error
;
struct
smb_sb_info
*
server
;
error
=
-
ENAMETOOLONG
;
if
(
dentry
->
d_name
.
len
>
SMB_MAXNAMELEN
)
...
...
@@ -468,12 +461,6 @@ smb_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
inode
=
smb_iget
(
dir
->
i_sb
,
&
finfo
);
if
(
inode
)
{
add_entry:
server
=
server_from_dentry
(
dentry
);
if
(
server
->
mnt
->
flags
&
SMB_MOUNT_CASE
)
d_set_d_op
(
dentry
,
&
smbfs_dentry_operations_case
);
else
d_set_d_op
(
dentry
,
&
smbfs_dentry_operations
);
d_add
(
dentry
,
inode
);
smb_renew_times
(
dentry
);
error
=
0
;
...
...
drivers/staging/smbfs/inode.c
View file @
b5c7d208
...
...
@@ -614,6 +614,10 @@ static int smb_fill_super(struct super_block *sb, void *raw_data, int silent)
printk
(
KERN_ERR
"smbfs: failed to start smbiod
\n
"
);
goto
out_no_smbiod
;
}
if
(
server
->
mnt
->
flags
&
SMB_MOUNT_CASE
)
sb
->
s_d_op
=
&
smbfs_dentry_operations_case
;
else
sb
->
s_d_op
=
&
smbfs_dentry_operations
;
/*
* Keep the super block locked while we get the root inode.
...
...
drivers/staging/smbfs/proto.h
View file @
b5c7d208
...
...
@@ -38,6 +38,8 @@ extern void smb_install_null_ops(struct smb_ops *ops);
extern
const
struct
file_operations
smb_dir_operations
;
extern
const
struct
inode_operations
smb_dir_inode_operations
;
extern
const
struct
inode_operations
smb_dir_inode_operations_unix
;
extern
const
struct
dentry_operations
smbfs_dentry_operations_case
;
extern
const
struct
dentry_operations
smbfs_dentry_operations
;
extern
void
smb_new_dentry
(
struct
dentry
*
dentry
);
extern
void
smb_renew_times
(
struct
dentry
*
dentry
);
/* cache.c */
...
...
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