OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] :EXT[3, 4] jbd layer function called instead of fs specific one
[PATCH] :EXT[3, 4] jbd layer function called instead of fs specific one [message #9895] Sun, 28 January 2007 13:18
Dmitriy Monakhov is currently offline  Dmitriy Monakhov
Messages: 52
Registered: October 2006
Member
jbd function called instead of fs specific one.

Signed-off-by: Dmitriy Monakhov <dmonakhov@openvz.org>
------

diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index beaf25f..8a824f4 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -947,7 +947,7 @@ out:
static int ext3_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create)
{
- handle_t *handle = journal_current_handle();
+ handle_t *handle = ext3_journal_current_handle();
int ret = 0;
unsigned max_blocks = bh_result->b_size >> inode->i_blkbits;

@@ -1717,7 +1717,7 @@ static ssize_t ext3_direct_IO(int rw, st
/*
* Reacquire the handle: ext3_get_block() can restart the transaction
*/
- handle = journal_current_handle();
+ handle = ext3_journal_current_handle();

out_stop:
if (handle) {
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index a127cc0..fbff4b9 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -946,7 +946,7 @@ out:
static int ext4_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create)
{
- handle_t *handle = journal_current_handle();
+ handle_t *handle = ext4_journal_current_handle();
int ret = 0;
unsigned max_blocks = bh_result->b_size >> inode->i_blkbits;

@@ -1716,7 +1716,7 @@ static ssize_t ext4_direct_IO(int rw, st
/*
* Reacquire the handle: ext4_get_block() can restart the transaction
*/
- handle = journal_current_handle();
+ handle = ext4_journal_current_handle();

out_stop:
if (handle) {
Previous Topic: [PATCH 0/59] Cleanup sysctl
Next Topic: [PATCH 1/3] lutimesat: simplify utime(2)
Goto Forum:
  


Current Time: Sat Jul 27 08:33:41 GMT 2024

Total time taken to generate the page: 0.02916 seconds