lkml.org 
[lkml]   [2008]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] Add possibly missing iput() when quotaon and quotaoff races
On Thu, 13 Mar 2008 13:05:52 +0100
Jan Kara <jack@suse.cz> wrote:

> We should always put inode we have reference to, even if quota was reenabled
> in the mean time.
>
> Signed-off-by: Jan Kara <jack@suse.cz>
>
> ---
> dquot.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/dquot.c b/fs/dquot.c
> index f816d06..24eef58 100644
> --- a/fs/dquot.c
> +++ b/fs/dquot.c
> @@ -1522,8 +1522,8 @@ int vfs_quota_off(struct super_block *sb, int type)
> truncate_inode_pages(&toputinode[cnt]->i_data, 0);
> mutex_unlock(&toputinode[cnt]->i_mutex);
> mark_inode_dirty(toputinode[cnt]);
> - iput(toputinode[cnt]);
> }
> + iput(toputinode[cnt]);
> mutex_unlock(&dqopt->dqonoff_mutex);
> }
> if (sb->s_bdev)

This one looks like 2.6.25 material?


\
 
 \ /
  Last update: 2008-03-13 22:45    [W:0.046 / U:9.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site