From: Jan Kara Subject: [PATCH 3/3] ocfs2: Add journal parameter to jbd2_journal_begin_ordered_truncate() Date: Thu, 5 Feb 2009 15:53:02 +0100 Message-ID: <1233845582-954-4-git-send-email-jack@suse.cz> References: <1233845582-954-1-git-send-email-jack@suse.cz> <1233845582-954-2-git-send-email-jack@suse.cz> <1233845582-954-3-git-send-email-jack@suse.cz> Cc: Andrew Morton , mfasheh@suse.com, Jan Kara , ocfs2-devel@oss.oracle.com, mfasheh@suse.de To: linux-ext4@vger.kernel.org Return-path: Received: from styx.suse.cz ([82.119.242.94]:35104 "EHLO mail.suse.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755838AbZBEOxE (ORCPT ); Thu, 5 Feb 2009 09:53:04 -0500 In-Reply-To: <1233845582-954-3-git-send-email-jack@suse.cz> Sender: linux-ext4-owner@vger.kernel.org List-ID: Add new parameter of the function. CC: ocfs2-devel@oss.oracle.com CC: mfasheh@suse.de Signed-off-by: Jan Kara --- fs/ocfs2/journal.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h index 3c3532e..172850a 100644 --- a/fs/ocfs2/journal.h +++ b/fs/ocfs2/journal.h @@ -513,8 +513,10 @@ static inline int ocfs2_jbd2_file_inode(handle_t *handle, struct inode *inode) static inline int ocfs2_begin_ordered_truncate(struct inode *inode, loff_t new_size) { - return jbd2_journal_begin_ordered_truncate(&OCFS2_I(inode)->ip_jinode, - new_size); + return jbd2_journal_begin_ordered_truncate( + OCFS2_SB(inode->i_sb)->journal->j_journal, + &OCFS2_I(inode)->ip_jinode, + new_size); } #endif /* OCFS2_JOURNAL_H */ -- 1.6.0.2