lkml.org 
[lkml]   [2015]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [RFC v3 4/4] shmem: Add support for generic FS events
>         }
> - 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.


\
 
 \ /
  Last update: 2015-06-17 08:21    [W:0.301 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site