Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757592AbbFQGJG (ORCPT ); Wed, 17 Jun 2015 02:09:06 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:35749 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755224AbbFQGJD (ORCPT ); Wed, 17 Jun 2015 02:09:03 -0400 MIME-Version: 1.0 X-Originating-IP: [213.57.247.249] In-Reply-To: <1434460173-18427-5-git-send-email-b.michalska@samsung.com> References: <1434460173-18427-1-git-send-email-b.michalska@samsung.com> <1434460173-18427-5-git-send-email-b.michalska@samsung.com> From: Leon Romanovsky Date: Wed, 17 Jun 2015 09:08:41 +0300 Message-ID: Subject: Re: [RFC v3 4/4] shmem: Add support for generic FS events To: Beata Michalska Cc: "linux-kernel@vger.kernel.org" , Linux-FSDevel , linux-api@vger.kernel.org, Greg Kroah , jack@suse.cz, tytso@mit.edu, adilger.kernel@dilger.ca, Hugh Dickins , lczerner@redhat.com, hch@infradead.org, linux-ext4@vger.kernel.org, Linux-MM , kyungmin.park@samsung.com, kmpark@infradead.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 747 Lines: 20 > } > - if (error == -ENOSPC && !once++) { > + if (error == -ENOSPC) { > + if (!once++) { > info = SHMEM_I(inode); > spin_lock(&info->lock); > shmem_recalc_inode(inode); > spin_unlock(&info->lock); > goto repeat; > + } else { > + fs_event_notify(inode->i_sb, FS_WARN_ENOSPC); > + } > } Very minor remark, please fix indentation. -- 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/