[PATCH 15/52] CRED: Make Ext3 use the writeback credentials

From: David Howells
Date: Fri Oct 12 2007 - 12:12:52 EST


Make Ext3 use the writeback credentials when performing writebacks.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

fs/ext3/inode.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index d7e1390..73b64f3 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -1526,7 +1526,7 @@ static int ext3_journalled_writepage(struct page *page,
struct writeback_control *wbc)
{
struct inode *inode = page->mapping->host;
- struct cred *cred = current->cred;
+ struct cred *cred = &writeback_cred;
handle_t *handle = NULL;
int ret = 0;
int err;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/