Commit f581e4e5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] resierfs: AIO support

From: Chris Mason <mason@suse.com>

reiserfs can safely use the generic fs aio functions.
parent 3cde9135
......@@ -1195,6 +1195,14 @@ ssize_t reiserfs_file_write( struct file *file, /* the file we are going to writ
return res;
}
static ssize_t reiserfs_aio_write(struct kiocb *iocb, const char __user *buf,
size_t count, loff_t pos)
{
return generic_file_aio_write(iocb, buf, count, pos);
}
struct file_operations reiserfs_file_operations = {
.read = generic_file_read,
.write = reiserfs_file_write,
......@@ -1203,6 +1211,8 @@ struct file_operations reiserfs_file_operations = {
.release = reiserfs_file_release,
.fsync = reiserfs_sync_file,
.sendfile = generic_file_sendfile,
.aio_read = generic_file_aio_read,
.aio_write = reiserfs_aio_write,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment