From: Beata Michalska Subject: Re: [RFC v3 4/4] shmem: Add support for generic FS events Date: Wed, 17 Jun 2015 11:23:40 +0200 Message-ID: <55813C9C.1010608@samsung.com> References: <1434460173-18427-1-git-send-email-b.michalska@samsung.com> <1434460173-18427-5-git-send-email-b.michalska@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 To: Leon Romanovsky Return-path: In-reply-to: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On 06/17/2015 08:08 AM, Leon Romanovsky wrote: >> } >> - 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. > I will, thank You. BR Beata