[JFFS2] Use .unlocked_ioctl
This changes the .ioctl to the .unlocked_ioctl version. Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
36560d255b
commit
0533400b78
|
@ -38,7 +38,7 @@ const struct file_operations jffs2_dir_operations =
|
||||||
{
|
{
|
||||||
.read = generic_read_dir,
|
.read = generic_read_dir,
|
||||||
.readdir = jffs2_readdir,
|
.readdir = jffs2_readdir,
|
||||||
.ioctl = jffs2_ioctl,
|
.unlocked_ioctl=jffs2_ioctl,
|
||||||
.fsync = jffs2_fsync
|
.fsync = jffs2_fsync
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ const struct file_operations jffs2_file_operations =
|
||||||
.aio_read = generic_file_aio_read,
|
.aio_read = generic_file_aio_read,
|
||||||
.write = do_sync_write,
|
.write = do_sync_write,
|
||||||
.aio_write = generic_file_aio_write,
|
.aio_write = generic_file_aio_write,
|
||||||
.ioctl = jffs2_ioctl,
|
.unlocked_ioctl=jffs2_ioctl,
|
||||||
.mmap = generic_file_readonly_mmap,
|
.mmap = generic_file_readonly_mmap,
|
||||||
.fsync = jffs2_fsync,
|
.fsync = jffs2_fsync,
|
||||||
.splice_read = generic_file_splice_read,
|
.splice_read = generic_file_splice_read,
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include "nodelist.h"
|
#include "nodelist.h"
|
||||||
|
|
||||||
int jffs2_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
|
long jffs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||||
unsigned long arg)
|
|
||||||
{
|
{
|
||||||
/* Later, this will provide for lsattr.jffs2 and chattr.jffs2, which
|
/* Later, this will provide for lsattr.jffs2 and chattr.jffs2, which
|
||||||
will include compression support etc. */
|
will include compression support etc. */
|
||||||
|
|
|
@ -167,7 +167,7 @@ int jffs2_fsync(struct file *, struct dentry *, int);
|
||||||
int jffs2_do_readpage_unlock (struct inode *inode, struct page *pg);
|
int jffs2_do_readpage_unlock (struct inode *inode, struct page *pg);
|
||||||
|
|
||||||
/* ioctl.c */
|
/* ioctl.c */
|
||||||
int jffs2_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
|
long jffs2_ioctl(struct file *, unsigned int, unsigned long);
|
||||||
|
|
||||||
/* symlink.c */
|
/* symlink.c */
|
||||||
extern const struct inode_operations jffs2_symlink_inode_operations;
|
extern const struct inode_operations jffs2_symlink_inode_operations;
|
||||||
|
|
Loading…
Reference in New Issue