From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Mason Subject: [PATCH 6 of 8] Make reiserfs safe for new DIO locking rules Date: Thu, 21 Dec 2006 21:02:38 -0500 Message-ID: <20061222020238.GR11354@think.oraclecorp.com> References: <20061222014552.GA26388@think.oraclecorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from rgminet01.oracle.com ([148.87.113.118]:45459 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945903AbWLVCCJ (ORCPT ); Thu, 21 Dec 2006 21:02:09 -0500 To: linux-fsdevel@vger.kernel.org, akpm@osdl.org, zach.brown@oracle.com Content-Disposition: inline In-Reply-To: <20061222014552.GA26388@think.oraclecorp.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org reiserfs is changed to use a version of reiserfs_get_block that is safe for filling holes without i_mutex held. Signed-off-by: Chris Mason diff -r bebaf8972a31 -r 5a06df98f46d fs/reiserfs/inode.c --- a/fs/reiserfs/inode.c Thu Dec 21 15:31:30 2006 -0500 +++ b/fs/reiserfs/inode.c Thu Dec 21 15:31:31 2006 -0500 @@ -469,7 +469,8 @@ static int reiserfs_get_blocks_direct_io bh_result->b_size = (1 << inode->i_blkbits); ret = reiserfs_get_block(inode, iblock, bh_result, - create | GET_BLOCK_NO_DANGLE); + create | GET_BLOCK_NO_DANGLE | + GET_BLOCK_NO_IMUX); if (ret) goto out;