From nobody Sun Feb 8 06:10:28 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1EFE1F190E for ; Tue, 7 Jan 2025 14:25:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736259931; cv=none; b=OE/StSPdoFpTmzIn6U8aU3QMpqLWf57AT2Zf5wXoPHHWhN23x60CgywZ0humuMRPL/zgdu+c4h2n4g3fNwCrnWRVFEQ3HpNhQfP2SZBUJjoDaQ2F/XuPoIHEA2C3wwuAIvTc332d2q/nU6ngSigjU77SWa7vAUz4diAb4dlmFNw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736259931; c=relaxed/simple; bh=Q11pG85zrRGgDAFQxBRfmBBWf01etcXbSgKoKnbYPRc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OdoHCm/OyJxZK2ULEqa1gKldwcmxFBT3dtYHVN0ugjlIQo7p7QSx/1LqjQ/RERfx3IZ3bOho+Xlf8RAs0jqiyzdPKkDyowQ3Lnh2oEzXshn3+MJnBOj38fdKalttWYep+6hqBJcMARZSnDMNVD2VgyA53gDRUke6tERSkvJqDTQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=FSiYVFS7; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FSiYVFS7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736259927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Sa/GU7W0ecMxEDBGDWuoSeU5bwFHSdZFnN7p8T+LcWM=; b=FSiYVFS73xvyjjcnzdCh8I6j6u4HSG90EYs9RCXzMhEBNtKNUGUVvAbPXU4Bc9U2qAO/wP mpuwUM2kGspwZyUjNHFZLUPX0PP/TRFBBkdTHNFnBMREsrMa0TgUl3NH00lTKOu2zR+bmB nvDe9PqZ15zAO+HKSLKtB/fiIEQwCG0= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-417-wpEUfdSuP2ydKNF-CerZrw-1; Tue, 07 Jan 2025 09:25:23 -0500 X-MC-Unique: wpEUfdSuP2ydKNF-CerZrw-1 X-Mimecast-MFC-AGG-ID: wpEUfdSuP2ydKNF-CerZrw Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 99AB21955F44; Tue, 7 Jan 2025 14:25:22 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.12]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8DDCD3000707; Tue, 7 Jan 2025 14:25:20 +0000 (UTC) From: David Howells To: Marc Dionne Cc: David Howells , Christian Brauner , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] afs: Make /afs/. as well /afs/ mountpoints Date: Tue, 7 Jan 2025 14:25:08 +0000 Message-ID: <20250107142513.527300-2-dhowells@redhat.com> In-Reply-To: <20250107142513.527300-1-dhowells@redhat.com> References: <20250107142513.527300-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Content-Type: text/plain; charset="utf-8" When a cell is instantiated, automatically create an /afs/. mountpoint to match the /afs/ mountpoint to match other AFS clients. Signed-off-by: David Howells cc: Marc Dionne cc: linux-afs@lists.infradead.org --- fs/afs/cell.c | 13 +++++++----- fs/afs/dynroot.c | 52 ++++++++++++++++++++++++++++++------------------ 2 files changed, 41 insertions(+), 24 deletions(-) diff --git a/fs/afs/cell.c b/fs/afs/cell.c index caa09875f520..1aba6d4d03a9 100644 --- a/fs/afs/cell.c +++ b/fs/afs/cell.c @@ -146,18 +146,20 @@ static struct afs_cell *afs_alloc_cell(struct afs_net= *net, return ERR_PTR(-ENOMEM); } =20 - cell->name =3D kmalloc(namelen + 1, GFP_KERNEL); + cell->name =3D kmalloc(1 + namelen + 1, GFP_KERNEL); if (!cell->name) { kfree(cell); return ERR_PTR(-ENOMEM); } =20 - cell->net =3D net; + cell->name[0] =3D '.'; + cell->name++; cell->name_len =3D namelen; for (i =3D 0; i < namelen; i++) cell->name[i] =3D tolower(name[i]); cell->name[i] =3D 0; =20 + cell->net =3D net; refcount_set(&cell->ref, 1); atomic_set(&cell->active, 0); INIT_WORK(&cell->manager, afs_manage_cell_work); @@ -211,7 +213,7 @@ static struct afs_cell *afs_alloc_cell(struct afs_net *= net, if (ret =3D=3D -EINVAL) printk(KERN_ERR "kAFS: bad VL server IP address\n"); error: - kfree(cell->name); + kfree(cell->name - 1); kfree(cell); _leave(" =3D %d", ret); return ERR_PTR(ret); @@ -502,7 +504,7 @@ static void afs_cell_destroy(struct rcu_head *rcu) afs_put_vlserverlist(net, rcu_access_pointer(cell->vl_servers)); afs_unuse_cell(net, cell->alias_of, afs_cell_trace_unuse_alias); key_put(cell->anonymous_key); - kfree(cell->name); + kfree(cell->name - 1); kfree(cell); =20 afs_dec_cells_outstanding(net); @@ -710,7 +712,8 @@ static void afs_deactivate_cell(struct afs_net *net, st= ruct afs_cell *cell) afs_proc_cell_remove(cell); =20 mutex_lock(&net->proc_cells_lock); - hlist_del_rcu(&cell->proc_link); + if (!hlist_unhashed(&cell->proc_link)) + hlist_del_rcu(&cell->proc_link); afs_dynroot_rmdir(net, cell); mutex_unlock(&net->proc_cells_lock); =20 diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c index c4d2711e20ad..f80a4244b9d2 100644 --- a/fs/afs/dynroot.c +++ b/fs/afs/dynroot.c @@ -271,7 +271,8 @@ const struct dentry_operations afs_dynroot_dentry_opera= tions =3D { int afs_dynroot_mkdir(struct afs_net *net, struct afs_cell *cell) { struct super_block *sb =3D net->dynroot_sb; - struct dentry *root, *subdir; + struct dentry *root, *subdir, *dsubdir; + char *dotname =3D cell->name - 1; int ret; =20 if (!sb || atomic_read(&sb->s_active) =3D=3D 0) @@ -286,34 +287,31 @@ int afs_dynroot_mkdir(struct afs_net *net, struct afs= _cell *cell) goto unlock; } =20 - /* Note that we're retaining an extra ref on the dentry */ + dsubdir =3D lookup_one_len(dotname, root, cell->name_len + 1); + if (IS_ERR(dsubdir)) { + ret =3D PTR_ERR(dsubdir); + dput(subdir); + goto unlock; + } + + /* Note that we're retaining extra refs on the dentries. */ subdir->d_fsdata =3D (void *)1UL; + dsubdir->d_fsdata =3D (void *)1UL; ret =3D 0; unlock: inode_unlock(root->d_inode); return ret; } =20 -/* - * Remove a manually added cell mount directory. - * - The caller must hold net->proc_cells_lock - */ -void afs_dynroot_rmdir(struct afs_net *net, struct afs_cell *cell) +static void afs_dynroot_rm_one_dir(struct dentry *root, const char *name, = size_t name_len) { - struct super_block *sb =3D net->dynroot_sb; - struct dentry *root, *subdir; - - if (!sb || atomic_read(&sb->s_active) =3D=3D 0) - return; - - root =3D sb->s_root; - inode_lock(root->d_inode); + struct dentry *subdir; =20 /* Don't want to trigger a lookup call, which will re-add the cell */ - subdir =3D try_lookup_one_len(cell->name, root, cell->name_len); + subdir =3D try_lookup_one_len(name, root, name_len); if (IS_ERR_OR_NULL(subdir)) { _debug("lookup %ld", PTR_ERR(subdir)); - goto no_dentry; + return; } =20 _debug("rmdir %pd %u", subdir, d_count(subdir)); @@ -324,8 +322,24 @@ void afs_dynroot_rmdir(struct afs_net *net, struct afs= _cell *cell) dput(subdir); } dput(subdir); -no_dentry: - inode_unlock(root->d_inode); +} + +/* + * Remove a manually added cell mount directory. + * - The caller must hold net->proc_cells_lock + */ +void afs_dynroot_rmdir(struct afs_net *net, struct afs_cell *cell) +{ + struct super_block *sb =3D net->dynroot_sb; + char *dotname =3D cell->name - 1; + + if (!sb || atomic_read(&sb->s_active) =3D=3D 0) + return; + + inode_lock(sb->s_root->d_inode); + afs_dynroot_rm_one_dir(sb->s_root, cell->name, cell->name_len); + afs_dynroot_rm_one_dir(sb->s_root, dotname, cell->name_len + 1); + inode_unlock(sb->s_root->d_inode); _leave(""); } From nobody Sun Feb 8 06:10:28 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44C8F1F1906 for ; Tue, 7 Jan 2025 14:25:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736259936; cv=none; b=sU9m8vKfwLDBAQam+hd2HIwF2OhWZ5Zzkb5G8TGJJouje6iDdWDzFJJ1y1/sAQwjqbL8/YSZclKsADvBjx6ueCtmTdOBQJOEO69aeyqKhHLSWBrM0CblrThCM2Dpv1T/TDyCuL3M+0F2Pbj/JFlawnNjlQJxSUhC26+H06AEn1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736259936; c=relaxed/simple; bh=JzWH9G/CYuXVmbP7m814x8qq6q2ma0tJQW1RlG0Uzu0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pONrkjtx3NP13chF8WhgftZAr8PIFKkBwFOvlQtbL21z5l/j82kTGb+Tp+84DdYBONuhWrYtK4aD+cOlIEcnMB3H4lTQ8RvebFuBwIi1zHAtIdq5DPFzhCJhvTCpgMmGFdFxIlQ6iaRaK4dixxscYd1RnSLf0yFky1qMaryO4Dw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=btnWAeGz; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="btnWAeGz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736259932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1cdtBma5hDwVCZWV7QAeFFB8EmGFrVFNy3JmtSkoG34=; b=btnWAeGzJZ0PE/jQc8hFQ6rEapWqiSJsgBcVfUSLtRyX5uDy6gFnGdV785hAgDYBzMZEda 9ZZLNw4ApTskWVjqciFD+Xvjla6w3CRJdww240DEd6zashZNeRSlySnzaroPceoUHblYsd MlEi4La6gukQ50rmT4dIy86pE8L5MEs= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-557-Hid6hv1YNQKDUHzGpT--oQ-1; Tue, 07 Jan 2025 09:25:27 -0500 X-MC-Unique: Hid6hv1YNQKDUHzGpT--oQ-1 X-Mimecast-MFC-AGG-ID: Hid6hv1YNQKDUHzGpT--oQ Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2174419560BC; Tue, 7 Jan 2025 14:25:26 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.12]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 30EFE1956053; Tue, 7 Jan 2025 14:25:23 +0000 (UTC) From: David Howells To: Marc Dionne Cc: David Howells , Christian Brauner , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] afs: Make /afs/@cell and /afs/.@cell symlinks Date: Tue, 7 Jan 2025 14:25:09 +0000 Message-ID: <20250107142513.527300-3-dhowells@redhat.com> In-Reply-To: <20250107142513.527300-1-dhowells@redhat.com> References: <20250107142513.527300-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Content-Type: text/plain; charset="utf-8" Make /afs/@cell a symlink in the /afs dynamic root to match what other AFS clients do rather than doing a substitution in the dentry name. This has the bonus of being tab-expandable also. Further, provide a /afs/.@cell symlink to point to the dotted cell share. Signed-off-by: David Howells cc: Marc Dionne cc: linux-afs@lists.infradead.org --- fs/afs/dynroot.c | 140 +++++++++++++++++++++++++++++-------- include/trace/events/afs.h | 2 + 2 files changed, 112 insertions(+), 30 deletions(-) diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c index f80a4244b9d2..5a53631239f1 100644 --- a/fs/afs/dynroot.c +++ b/fs/afs/dynroot.c @@ -11,6 +11,8 @@ #include "internal.h" =20 static atomic_t afs_autocell_ino; +static const char afs_atcell[] =3D "@cell"; +static const char afs_dotatcell[] =3D ".@cell"; =20 /* * iget5() comparator for inode created by autocell operations @@ -185,48 +187,84 @@ struct inode *afs_try_auto_mntpt(struct dentry *dentr= y, struct inode *dir) return ret =3D=3D -ENOENT ? NULL : ERR_PTR(ret); } =20 +static void afs_atcell_delayed_put_cell(void *arg) +{ + struct afs_cell *cell =3D arg; + + afs_put_cell(cell, afs_cell_trace_put_atcell); +} + /* - * Look up @cell in a dynroot directory. This is a substitution for the - * local cell name for the net namespace. + * Read @cell or .@cell symlinks. */ -static struct dentry *afs_lookup_atcell(struct dentry *dentry) +static const char *afs_atcell_get_link(struct dentry *dentry, struct inode= *inode, + struct delayed_call *done) { + struct afs_vnode *vnode =3D AFS_FS_I(inode); struct afs_cell *cell; - struct afs_net *net =3D afs_d2net(dentry); - struct dentry *ret; - char *name; - int len; + struct afs_net *net =3D afs_i2net(inode); + const char *name; + bool dotted =3D vnode->fid.vnode =3D=3D 3; =20 if (!net->ws_cell) return ERR_PTR(-ENOENT); =20 - ret =3D ERR_PTR(-ENOMEM); - name =3D kmalloc(AFS_MAXCELLNAME + 1, GFP_KERNEL); - if (!name) - goto out_p; - down_read(&net->cells_lock); + cell =3D net->ws_cell; - if (cell) { - len =3D cell->name_len; - memcpy(name, cell->name, len + 1); - } + if (dotted) + name =3D cell->name - 1; + else + name =3D cell->name; + afs_get_cell(cell, afs_cell_trace_get_atcell); + set_delayed_call(done, afs_atcell_delayed_put_cell, cell); + up_read(&net->cells_lock); + return name; +} =20 - ret =3D ERR_PTR(-ENOENT); - if (!cell) - goto out_n; +static const struct inode_operations afs_atcell_inode_operations =3D { + .get_link =3D afs_atcell_get_link, +}; =20 - ret =3D lookup_one_len(name, dentry->d_parent, len); +/* + * Look up @cell or .@cell in a dynroot directory. This is a substitution= for + * the local cell name for the net namespace. + */ +static struct dentry *afs_lookup_atcell(struct dentry *dentry, bool dotted) +{ + struct afs_vnode *vnode; + struct afs_fid fid =3D { .vnode =3D 2, .unique =3D 1, }; + struct inode *inode; =20 - /* We don't want to d_add() the @cell dentry here as we don't want to - * the cached dentry to hide changes to the local cell name. - */ + if (dotted) + fid.vnode =3D 3; =20 -out_n: - kfree(name); -out_p: - return ret; + + inode =3D iget5_locked(dentry->d_sb, fid.vnode, + afs_iget5_pseudo_test, afs_iget5_pseudo_set, &fid); + if (!inode) + return ERR_PTR(-ENOMEM); + + vnode =3D AFS_FS_I(inode); + + /* there shouldn't be an existing inode */ + BUG_ON(!(inode->i_state & I_NEW)); + + netfs_inode_init(&vnode->netfs, NULL, false); + simple_inode_init_ts(inode); + set_nlink(inode, 1); + inode->i_size =3D 0; + inode->i_mode =3D S_IFLNK | S_IRUGO | S_IXUGO; + inode->i_op =3D &afs_atcell_inode_operations; + inode->i_uid =3D GLOBAL_ROOT_UID; + inode->i_gid =3D GLOBAL_ROOT_GID; + inode->i_blocks =3D 0; + inode->i_generation =3D 0; + inode->i_flags |=3D S_NOATIME; + + unlock_new_inode(inode); + return d_splice_alias(inode, dentry); } =20 /* @@ -247,9 +285,13 @@ static struct dentry *afs_dynroot_lookup(struct inode = *dir, struct dentry *dentr return ERR_PTR(-ENAMETOOLONG); } =20 - if (dentry->d_name.len =3D=3D 5 && - memcmp(dentry->d_name.name, "@cell", 5) =3D=3D 0) - return afs_lookup_atcell(dentry); + if (dentry->d_name.len =3D=3D sizeof(afs_atcell) - 1 && + memcmp(dentry->d_name.name, afs_atcell, sizeof(afs_atcell) - 1) =3D= =3D 0) + return afs_lookup_atcell(dentry, false); + + if (dentry->d_name.len =3D=3D sizeof(afs_dotatcell) - 1 && + memcmp(dentry->d_name.name, afs_dotatcell, sizeof(afs_dotatcell) - 1)= =3D=3D 0) + return afs_lookup_atcell(dentry, true); =20 return d_splice_alias(afs_try_auto_mntpt(dentry, dir), dentry); } @@ -343,6 +385,40 @@ void afs_dynroot_rmdir(struct afs_net *net, struct afs= _cell *cell) _leave(""); } =20 +/* + * Create @cell and .@cell symlinks. + */ +static int afs_dynroot_symlink(struct afs_net *net) +{ + struct super_block *sb =3D net->dynroot_sb; + struct dentry *root, *symlink, *dsymlink; + int ret; + + /* Let the ->lookup op do the creation */ + root =3D sb->s_root; + inode_lock(root->d_inode); + symlink =3D lookup_one_len(afs_atcell, root, sizeof(afs_atcell) - 1); + if (IS_ERR(symlink)) { + ret =3D PTR_ERR(symlink); + goto unlock; + } + + dsymlink =3D lookup_one_len(afs_dotatcell, root, sizeof(afs_dotatcell) - = 1); + if (IS_ERR(dsymlink)) { + ret =3D PTR_ERR(dsymlink); + dput(symlink); + goto unlock; + } + + /* Note that we're retaining extra refs on the dentries. */ + symlink->d_fsdata =3D (void *)1UL; + dsymlink->d_fsdata =3D (void *)1UL; + ret =3D 0; +unlock: + inode_unlock(root->d_inode); + return ret; +} + /* * Populate a newly created dynamic root with cell names. */ @@ -355,6 +431,10 @@ int afs_dynroot_populate(struct super_block *sb) mutex_lock(&net->proc_cells_lock); =20 net->dynroot_sb =3D sb; + ret =3D afs_dynroot_symlink(net); + if (ret < 0) + goto error; + hlist_for_each_entry(cell, &net->proc_cells, proc_link) { ret =3D afs_dynroot_mkdir(net, cell); if (ret < 0) diff --git a/include/trace/events/afs.h b/include/trace/events/afs.h index a0aed1a428a1..de0e2301a037 100644 --- a/include/trace/events/afs.h +++ b/include/trace/events/afs.h @@ -168,12 +168,14 @@ enum yfs_cm_operation { #define afs_cell_traces \ EM(afs_cell_trace_alloc, "ALLOC ") \ EM(afs_cell_trace_free, "FREE ") \ + EM(afs_cell_trace_get_atcell, "GET atcell") \ EM(afs_cell_trace_get_queue_dns, "GET q-dns ") \ EM(afs_cell_trace_get_queue_manage, "GET q-mng ") \ EM(afs_cell_trace_get_queue_new, "GET q-new ") \ EM(afs_cell_trace_get_vol, "GET vol ") \ EM(afs_cell_trace_insert, "INSERT ") \ EM(afs_cell_trace_manage, "MANAGE ") \ + EM(afs_cell_trace_put_atcell, "PUT atcell") \ EM(afs_cell_trace_put_candidate, "PUT candid") \ EM(afs_cell_trace_put_destroy, "PUT destry") \ EM(afs_cell_trace_put_queue_work, "PUT q-work") \