From: Valerie Aurora <val@versity.com>
To: rpdfs-devel@lists.linux.dev
Cc: Valerie Aurora <val@versity.com>
Subject: [PATCH 1/3] rpdfs: Initialize dirents field in new rpdfs_inode_info
Date: Mon, 9 Mar 2026 22:04:01 +0100 [thread overview]
Message-ID: <20260309210403.105006-2-val@versity.com> (raw)
In-Reply-To: <20260309210403.105006-1-val@versity.com>
A newly allocated rpdfs_inode_info needs its dirents btree_root
initialized to zero.
Signed-off-by: Valerie Aurora <val@versity.com>
---
fs/rpdfs/inode.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/rpdfs/inode.c b/fs/rpdfs/inode.c
index 2d83fa6352be..44f8cd515aa6 100644
--- a/fs/rpdfs/inode.c
+++ b/fs/rpdfs/inode.c
@@ -294,6 +294,9 @@ struct inode *rpdfs_new_inode(struct super_block *sb, struct rpdfs_ino_gen *ig)
ri->refresh_wcount = 0;
ri->xattr_creates = 0;
ri->ig = *ig;
+ ri->dirents.height = 0;
+ ri->dirents.ref.bnr = 0;
+ ri->dirents.ref.alloc_counter = 0;
inode->i_ino = le64_to_cpu(ri->ig.ino);
ret = insert_inode_locked4(inode, ig_hashval(ig), rpdfs_iget_test, ig);
--
2.49.0
next prev parent reply other threads:[~2026-03-09 21:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 21:04 [PATCH 0/3] Add rpdfs_unlink and rpdfs_rmdir Valerie Aurora
2026-03-09 21:04 ` Valerie Aurora [this message]
2026-03-09 21:04 ` [PATCH 2/3] rpdfs: Add directory i_size accounting and helper functions Valerie Aurora
2026-03-09 21:04 ` [PATCH 3/3] rpdfs: Add rpdfs_unlink and rpdfs_rmdir Valerie Aurora
2026-03-10 16:34 ` [PATCH 0/3] " Zach Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260309210403.105006-2-val@versity.com \
--to=val@versity.com \
--cc=rpdfs-devel@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.