From: Laurent Riffard <laurent.riffard@free.fr>
To: "reiserfs-list@namesys.com" <reiserfs-list@namesys.com>
Subject: [PATCH 10/10] reiser4-generic_file_read-fix
Date: Sun, 03 Dec 2006 14:51:40 +0100 [thread overview]
Message-ID: <4572D66C.5000403a@free.fr> (raw)
In-Reply-To: <4571D852.3080401@free.fr>
(From Edward Shishkin <edward.shishkin@gmail.com>)
Use do_sync_read() instead of generic_file_read()
---
fs/reiser4/plugin/file/cryptcompress.c | 2 +-
fs/reiser4/plugin/object.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fs/reiser4/plugin/file/cryptcompress.c b/fs/reiser4/plugin/file/cryptcompress.c
index b587933..64137dc 100644
--- a/fs/reiser4/plugin/file/cryptcompress.c
+++ b/fs/reiser4/plugin/file/cryptcompress.c
@@ -2883,7 +2883,7 @@ ssize_t read_cryptcompress(struct file * file, char __user *buf, size_t size,
down_read(&info->lock);
LOCK_CNT_INC(inode_sem_r);
- result = generic_file_read(file, buf, size, off);
+ result = do_sync_read(file, buf, size, off);
up_read(&info->lock);
LOCK_CNT_DEC(inode_sem_r);
diff --git a/fs/reiser4/plugin/object.c b/fs/reiser4/plugin/object.c
index a57ce06..9f11dd6 100644
--- a/fs/reiser4/plugin/object.c
+++ b/fs/reiser4/plugin/object.c
@@ -305,6 +305,7 @@ file_plugin file_plugins[LAST_FILE_PLUGIN_ID] = {
.llseek = generic_file_llseek,
.read = read_cryptcompress,
.write = write_cryptcompress,
+ .aio_read = generic_file_aio_read,
.mmap = mmap_cryptcompress,
.release = release_cryptcompress,
.fsync = sync_common,
-- 1.4.4.1.gaed4
next prev parent reply other threads:[~2006-12-03 13:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-03 13:49 Reiser4 for 2.6.19 Laurent Riffard
2006-12-03 13:49 ` [PATCH 1/10] Reiser4 for 2.6.18 version 3 Laurent Riffard
2006-12-03 13:50 ` [PATCH 2/10] Reiser4: cometics changes in mm/filemap.c Laurent Riffard
2006-12-03 13:50 ` [PATCH 3/10] Reiser4: fix use after free in jrelse_tail Laurent Riffard
2006-12-03 13:50 ` [PATCH 4/10] Reiser4: release d_ref Laurent Riffard
2006-12-03 13:50 ` [PATCH 5/10] Reiser4: release d_ref (fix) Laurent Riffard
2006-12-03 13:50 ` [PATCH 6/10] Reiser4: fix calls to kmem_cache_destroy Laurent Riffard
2006-12-03 13:51 ` [PATCH 7/10] Reiser4: Replace inode.u.generic_ip with inode.i_private Laurent Riffard
2006-12-03 13:51 ` [PATCH 8/10] Reiser4: inode.i_blksize suppression Laurent Riffard
2006-12-03 13:51 ` [PATCH 9/10] Reiser4: remove unnecessary config.h includes Laurent Riffard
2006-12-03 13:51 ` Laurent Riffard [this message]
2006-12-04 10:53 ` Reiser4 for 2.6.19 Guilherme Covolo
-- strict thread matches above, loose matches on Subject: below --
2006-12-02 13:16 Laurent Riffard
[not found] ` <1165065391122-git-send-email-laurent.riffard@free.fr>
2006-12-02 13:16 ` [PATCH 2/10] Reiser4: cometics changes in mm/filemap.c Laurent Riffard
[not found] ` <11650653912299-git-send-email-laurent.riffard@free.fr>
[not found] ` <11650653921903-git-send-email-laurent.riffard@free.fr>
[not found] ` <11650653921405-git-send-email-laurent.riffard@free.fr>
2006-12-02 13:16 ` [PATCH 6/10] Reiser4: fix calls to kmem_cache_destroy Laurent Riffard
2006-12-02 13:16 ` [PATCH 7/10] Reiser4: Replace inode.u.generic_ip with inode.i_private Laurent Riffard
2006-12-02 13:16 ` [PATCH 8/10] Reiser4: inode.i_blksize suppression Laurent Riffard
2006-12-02 13:16 ` [PATCH 9/10] Reiser4: remove unnecessary config.h includes Laurent Riffard
2006-12-02 13:16 ` [PATCH 10/10] reiser4-generic_file_read-fix Laurent Riffard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4572D66C.5000403a@free.fr \
--to=laurent.riffard@free.fr \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.