From patchwork Tue Jun 1 10:47:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henry C Chang X-Patchwork-Id: 103464 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o51AlAP6011490 for ; Tue, 1 Jun 2010 10:47:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753128Ab0FAKrJ (ORCPT ); Tue, 1 Jun 2010 06:47:09 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:45409 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752955Ab0FAKrJ (ORCPT ); Tue, 1 Jun 2010 06:47:09 -0400 Received: by vws11 with SMTP id 11so836654vws.19 for ; Tue, 01 Jun 2010 03:47:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.59.132 with SMTP id l4mr2198157qah.241.1275389227964; Tue, 01 Jun 2010 03:47:07 -0700 (PDT) Received: by 10.229.142.140 with HTTP; Tue, 1 Jun 2010 03:47:07 -0700 (PDT) X-Originating-IP: [59.124.35.221] Date: Tue, 1 Jun 2010 18:47:07 +0800 Message-ID: Subject: [PATCH] ceph: fix d_subdirs ordering problem From: Henry C Chang To: ceph-devel@vger.kernel.org Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 01 Jun 2010 10:47:11 +0000 (UTC) diff --git a/inode.c b/inode.c index a81b8b6..72903a1 100644 --- a/inode.c +++ b/inode.c @@ -827,7 +827,7 @@ static void ceph_set_dentry_offset(struct dentry *dn) spin_lock(&dcache_lock); spin_lock(&dn->d_lock); - list_move_tail(&dir->d_subdirs, &dn->d_u.d_child); + list_move(&dn->d_u.d_child, &dir->d_subdirs); dout("set_dentry_offset %p %lld (%p %p)\n", dn, di->offset, dn->d_u.d_child.prev, dn->d_u.d_child.next); spin_unlock(&dn->d_lock);