[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130910141200.750478a4a78799c5c97bc277@canb.auug.org.au>
Date: Tue, 10 Sep 2013 14:12:00 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Dave Chinner <dchinner@...hat.com>
Subject: Re: linux-next: manual merge of the akpm tree with Linus' tree
[ Just adding Dave Chinner to the cc list]
On Tue, 10 Sep 2013 14:09:23 +1000 Stephen Rothwell <sfr@...b.auug.org.au> wrote:
>
> Hi Andrew,
>
> Today's linux-next merge of the akpm tree got a conflict in fs/dcache.c
> between commit 8aab6a27332b ("vfs: reorganize dput() memory accesses")
> from Linus' tree and commit "dentry: move to per-sb LRU locks" from the
> akpm tree.
>
> I fixed it up (I think - see below) and can carry the fix as necessary
> (no action is required).
>
> --
> Cheers,
> Stephen Rothwell sfr@...b.auug.org.au
>
> diff --cc fs/dcache.c
> index 664554e,6e212bd..0000000
> --- a/fs/dcache.c
> +++ b/fs/dcache.c
> @@@ -362,9 -332,8 +361,9 @@@ static void dentry_unlink_inode(struct
> */
> static void dentry_lru_add(struct dentry *dentry)
> {
> - if (list_empty(&dentry->d_lru)) {
> + if (unlikely(!(dentry->d_flags & DCACHE_LRU_LIST))) {
> - spin_lock(&dcache_lru_lock);
> + spin_lock(&dentry->d_sb->s_dentry_lru_lock);
> + dentry->d_flags |= DCACHE_LRU_LIST;
> list_add(&dentry->d_lru, &dentry->d_sb->s_dentry_lru);
> dentry->d_sb->s_nr_dentry_unused++;
> this_cpu_inc(nr_dentry_unused);
> @@@ -394,9 -363,8 +393,9 @@@ static void dentry_lru_del(struct dentr
>
> static void dentry_lru_move_list(struct dentry *dentry, struct list_head *list)
> {
> - spin_lock(&dcache_lru_lock);
> + spin_lock(&dentry->d_sb->s_dentry_lru_lock);
> if (list_empty(&dentry->d_lru)) {
> + dentry->d_flags |= DCACHE_LRU_LIST;
> list_add_tail(&dentry->d_lru, list);
> dentry->d_sb->s_nr_dentry_unused++;
> this_cpu_inc(nr_dentry_unused);
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists