Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422933Ab3DFN0N (ORCPT ); Sat, 6 Apr 2013 09:26:13 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:56619 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422883Ab3DFN0L (ORCPT ); Sat, 6 Apr 2013 09:26:11 -0400 Date: Sat, 6 Apr 2013 07:20:29 -0600 From: Matthew Wilcox To: Marco Stornelli Cc: linux-fsdevel@vger.kernel.org, Chris Mason , Alexander Viro , "Theodore Ts'o" , Andreas Dilger , Jaegeuk Kim , Steven Whitehouse , KONISHI Ryusuke , Mark Fasheh , Joel Becker , Mike Snitzer , Alasdair G Kergon , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nilfs@vger.kernel.org, ocfs2-devel@oss.oracle.com, linux-mm@kvack.org, Jan Kara Subject: Re: [PATCH 3/4] fsfreeze: manage kill signal when sb_start_pagefault is called Message-ID: <20130406132028.GD28744@parisc-linux.org> References: <515FF380.5020406@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <515FF380.5020406@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 32 On Sat, Apr 06, 2013 at 12:05:52PM +0200, Marco Stornelli wrote: > In every place where sb_start_pagefault was called now we must manage > the error code and return VM_FAULT_RETRY. Erm ... in patch 1/4: static inline void sb_start_pagefault(struct super_block *sb) { - __sb_start_write(sb, SB_FREEZE_PAGEFAULT, true); + __sb_start_write_wait(sb, SB_FREEZE_PAGEFAULT, false); } > > - sb_start_pagefault(inode->i_sb); > + ret = sb_start_pagefault(inode->i_sb); > + if (ret) > + return VM_FAULT_RETRY; > ret = btrfs_delalloc_reserve_space(inode, PAGE_CACHE_SIZE); Does the compiler not warn that you're assigning void to 'ret'? Or was there some other SNAFU sending these patches? -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/