Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198162
b: refs/heads/master
c: ce8273a
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Frederic Weisbecker committed May 17, 2010
1 parent 5070bb1 commit 286af77
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 977183902a52d1e0adc986f9462424db5a545044
refs/heads/master: ce8273a573918612cbd320597db3d5dd89578454
2 changes: 1 addition & 1 deletion trunk/fs/smbfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const struct file_operations smb_dir_operations =
{
.read = generic_read_dir,
.readdir = smb_readdir,
.ioctl = smb_ioctl,
.unlocked_ioctl = smb_ioctl,
.open = smb_dir_open,
};

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/smbfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ const struct file_operations smb_file_operations =
.aio_read = smb_file_aio_read,
.write = do_sync_write,
.aio_write = smb_file_aio_write,
.ioctl = smb_ioctl,
.unlocked_ioctl = smb_ioctl,
.mmap = smb_file_mmap,
.open = smb_file_open,
.release = smb_file_release,
Expand Down
10 changes: 6 additions & 4 deletions trunk/fs/smbfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/highuid.h>
#include <linux/smp_lock.h>
#include <linux/net.h>

#include <linux/smb_fs.h>
Expand All @@ -22,14 +23,14 @@

#include "proto.h"

int
smb_ioctl(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg)
long
smb_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
struct smb_sb_info *server = server_from_inode(inode);
struct smb_sb_info *server = server_from_inode(filp->f_path.dentry->d_inode);
struct smb_conn_opt opt;
int result = -EINVAL;

lock_kernel();
switch (cmd) {
uid16_t uid16;
uid_t uid32;
Expand Down Expand Up @@ -62,6 +63,7 @@ smb_ioctl(struct inode *inode, struct file *filp,
default:
break;
}
unlock_kernel();

return result;
}
2 changes: 1 addition & 1 deletion trunk/fs/smbfs/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extern const struct address_space_operations smb_file_aops;
extern const struct file_operations smb_file_operations;
extern const struct inode_operations smb_file_inode_operations;
/* ioctl.c */
extern int smb_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg);
extern long smb_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
/* smbiod.c */
extern void smbiod_wake_up(void);
extern int smbiod_register_server(struct smb_sb_info *server);
Expand Down

0 comments on commit 286af77

Please sign in to comment.