From: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/2] libgfs2: Add support for dirent.de_rahead
Date: Wed, 9 Sep 2015 17:55:29 +0200 [thread overview]
Message-ID: <1441814130-14786-1-git-send-email-andreas.gruenbacher@gmail.com> (raw)
This field indicates how many blocks of metadata can be read ahead when reading
in the inode a directory entry points at.
Signed-off-by: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
---
gfs2/libgfs2/meta.c | 1 +
gfs2/libgfs2/ondisk.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/gfs2/libgfs2/meta.c b/gfs2/libgfs2/meta.c
index 79de64d..70daec4 100644
--- a/gfs2/libgfs2/meta.c
+++ b/gfs2/libgfs2/meta.c
@@ -428,6 +428,7 @@ F(de_hash, .flags = LGFS2_MFF_CHECK)
F(de_rec_len, .flags = LGFS2_MFF_BYTES)
F(de_name_len, .flags = LGFS2_MFF_BYTES)
F(de_type)
+F(de_rahead)
RF(__pad)
};
diff --git a/gfs2/libgfs2/ondisk.c b/gfs2/libgfs2/ondisk.c
index 4744337..7f34bd2 100644
--- a/gfs2/libgfs2/ondisk.c
+++ b/gfs2/libgfs2/ondisk.c
@@ -415,6 +415,7 @@ void gfs2_dirent_in(struct gfs2_dirent *de, char *buf)
CPIN_16(de, str, de_rec_len);
CPIN_16(de, str, de_name_len);
CPIN_16(de, str, de_type);
+ CPIN_16(de, str, de_rahead);
}
void gfs2_dirent_out(struct gfs2_dirent *de, char *buf)
@@ -427,6 +428,7 @@ void gfs2_dirent_out(struct gfs2_dirent *de, char *buf)
CPOUT_16(de, str, de_name_len);
CPOUT_16(de, str, de_type);
memset(str->__pad, 0, sizeof(str->__pad));
+ CPOUT_16(de, str, de_rahead);
}
void gfs2_leaf_in(struct gfs2_leaf *lf, struct gfs2_buffer_head *bh)
--
2.4.3
next reply other threads:[~2015-09-09 15:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-09 15:55 Andreas Gruenbacher [this message]
2015-09-09 15:55 ` [Cluster-devel] [PATCH 2/2] gfs2_edit: Include dirent.de_rahead in directory listings Andreas Gruenbacher
2015-09-09 16:27 ` Andrew Price
2015-09-10 11:07 ` Andrew Price
2015-09-10 12:51 ` Andreas Grünbacher
2015-09-10 22:04 ` Andreas Gruenbacher
2015-09-10 22:05 ` [Cluster-devel] [PATCH 1/2] gfs2: Fix printf format errors on x86 Andreas Gruenbacher
2015-09-10 22:05 ` [Cluster-devel] [PATCH 2/2] gfs2_edit: Add attribute printf for print_gfs2 Andreas Gruenbacher
2015-09-11 10:45 ` Andrew Price
2015-09-11 10:45 ` [Cluster-devel] [PATCH 2/2] gfs2_edit: Include dirent.de_rahead in directory listings Andrew Price
2015-09-11 11:02 ` Andreas Gruenbacher
2015-09-11 11:28 ` [Cluster-devel] gfs2 on-disk headers in user space Andrew Price
2015-09-11 11:40 ` Andreas Grünbacher
2015-09-11 11:57 ` Andrew Price
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=1441814130-14786-1-git-send-email-andreas.gruenbacher@gmail.com \
--to=andreas.gruenbacher@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).