Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173183
b: refs/heads/master
c: 205cb37
h: refs/heads/master
i:
  173181: e8bfd2a
  173179: 0b788f4
  173175: 9bafd82
  173167: 9377baa
  173151: f83c724
  173119: ec6fb4d
  173055: eb9301b
v: v3
  • Loading branch information
Frederic Weisbecker committed Oct 14, 2009
1 parent 9e9312f commit 5466003
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 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: ac78a07893d24d95ff5f39d0433c25210f224f07
refs/heads/master: 205cb37b89ab37db553907e5ac17962eec561804
2 changes: 1 addition & 1 deletion trunk/fs/reiserfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const struct file_operations reiserfs_dir_operations = {
.read = generic_read_dir,
.readdir = reiserfs_readdir,
.fsync = reiserfs_dir_fsync,
.ioctl = reiserfs_ioctl,
.unlocked_ioctl = reiserfs_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = reiserfs_compat_ioctl,
#endif
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/reiserfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static ssize_t reiserfs_file_write(struct file *file, /* the file we are going t
const struct file_operations reiserfs_file_operations = {
.read = do_sync_read,
.write = reiserfs_file_write,
.ioctl = reiserfs_ioctl,
.unlocked_ioctl = reiserfs_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = reiserfs_compat_ioctl,
#endif
Expand Down
11 changes: 3 additions & 8 deletions trunk/fs/reiserfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* 2) REISERFS_IOC_[GS]ETFLAGS, REISERFS_IOC_[GS]ETVERSION
* 3) That's all for a while ...
*/
int reiserfs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
unsigned long arg)
long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
struct inode *inode = filp->f_path.dentry->d_inode;
unsigned int flags;
int err = 0;

Expand Down Expand Up @@ -132,9 +132,6 @@ int reiserfs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
long reiserfs_compat_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
{
struct inode *inode = file->f_path.dentry->d_inode;
int ret;

/* These are just misnamed, they actually get/put from/to user an int */
switch (cmd) {
case REISERFS_IOC32_UNPACK:
Expand All @@ -156,9 +153,7 @@ long reiserfs_compat_ioctl(struct file *file, unsigned int cmd,
return -ENOIOCTLCMD;
}

ret = reiserfs_ioctl(inode, file, cmd, (unsigned long) compat_ptr(arg));

return ret;
return reiserfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg));
}
#endif

Expand Down
3 changes: 1 addition & 2 deletions trunk/include/linux/reiserfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2314,8 +2314,7 @@ __u32 r5_hash(const signed char *msg, int len);
#define SPARE_SPACE 500

/* prototypes from ioctl.c */
int reiserfs_ioctl(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg);
long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
long reiserfs_compat_ioctl(struct file *filp,
unsigned int cmd, unsigned long arg);
int reiserfs_unpack(struct inode *inode, struct file *filp);
Expand Down

0 comments on commit 5466003

Please sign in to comment.