From patchwork Fri Mar 22 16:48:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Disseldorp X-Patchwork-Id: 10866249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B27091515 for ; Fri, 22 Mar 2019 16:48:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98B522A945 for ; Fri, 22 Mar 2019 16:48:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8ADE12A947; Fri, 22 Mar 2019 16:48:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56CC22A945 for ; Fri, 22 Mar 2019 16:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727637AbfCVQso (ORCPT ); Fri, 22 Mar 2019 12:48:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:43036 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726023AbfCVQsn (ORCPT ); Fri, 22 Mar 2019 12:48:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2486EAD0A; Fri, 22 Mar 2019 16:48:42 +0000 (UTC) From: David Disseldorp To: Ilya Dryomov Cc: ceph-devel@vger.kernel.org, Gregory Farnum , Patrick Donnelly , Jeff Layton , Sage Weil , David Disseldorp Subject: [PATCH 1/3] ceph: clean up ceph.dir.pin vxattr name sizeof() Date: Fri, 22 Mar 2019 17:48:26 +0100 Message-Id: <20190322164828.20510-1-ddiss@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190322173004.12f2a3a3@echidna.suse.de> References: <20190322173004.12f2a3a3@echidna.suse.de> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP .name_size should use the same string as .name. Signed-off-by: David Disseldorp --- fs/ceph/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 0cc42c8879e9..2cbb9c239183 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -327,7 +327,7 @@ static struct ceph_vxattr ceph_dir_vxattrs[] = { XATTR_RSTAT_FIELD(dir, rctime), { .name = "ceph.dir.pin", - .name_size = sizeof("ceph.dir_pin"), + .name_size = sizeof("ceph.dir.pin"), .getxattr_cb = ceph_vxattrcb_dir_pin, .exists_cb = ceph_vxattrcb_dir_pin_exists, .flags = VXATTR_FLAG_HIDDEN,