[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200212073717.GB25555@lst.de>
Date: Wed, 12 Feb 2020 08:37:17 +0100
From: Christoph Hellwig <hch@....de>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Christoph Hellwig <hch@....de>, linux-xfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, Waiman Long <longman@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Will Deacon <will@...nel.org>,
linux-ext4@...r.kernel.org, cluster-devel@...hat.com,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Naohiro Aota <naohiro.aota@....com>
Subject: Re: [PATCH 01/12] mm: fix a comment in sys_swapon
On Mon, Feb 10, 2020 at 03:29:42PM -0800, Andrew Morton wrote:
> On Tue, 14 Jan 2020 17:12:14 +0100 Christoph Hellwig <hch@....de> wrote:
>
> > claim_swapfile now always takes i_rwsem.
> >
> > ...
> >
> > --- a/mm/swapfile.c
> > +++ b/mm/swapfile.c
> > @@ -3157,7 +3157,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
> > mapping = swap_file->f_mapping;
> > inode = mapping->host;
> >
> > - /* If S_ISREG(inode->i_mode) will do inode_lock(inode); */
> > + /* will take i_rwsem; */
> > error = claim_swapfile(p, inode);
> > if (unlikely(error))
> > goto bad_swap;
>
> http://lkml.kernel.org/r/20200206090132.154869-1-naohiro.aota@wdc.com
> removes this comment altogether. Please check that this is OK?
Killing it is fine with me. Just the fact that the comment was wrong
while I did an audit of the area really thew me off.
Powered by blists - more mailing lists