Skip to content

positional readdir cookies

Benjamin Marzinski cluster-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gfs2: keep offset when splitting dir leaf blocksfs/gfs2/dir.c+53 -160 replies
2/2gfs2: change gfs2 readdir cookiefs/gfs2/dir.c fs/gfs2/incore.h fs/gfs2/ops_fstype.c +2 more+95 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Cluster-devel] [PATCH 0/2 v2] positional readdir cookies

These two patches implement positional readdir cookies. The first one simply changes how splitting leaf blocks works to allow for this method to work. The second one does the meat of the work.

Like I mention in the second patch, this adds a new parameter to the dirent structure that is never saved to disk. This is simply to make use of the memory to store the computed location based cookie. Avoiding this has a noticeable performance impact. However, I'm open to any ideas on how to make this look less strange (or, any other ways of getting space to store these values that doesn't involve allocating it, which caused the performance hit).

This set is the same as my last set but the ar_loccookie flag in gfs2_args, is now a single bit, instead of a whole unsigned int.

Benjamin Marzinski (2):
gfs2: keep offset when splitting dir leaf blocks
gfs2: change gfs2 readdir cookie

 fs/gfs2/dir.c                    | 160 ++++++++++++++++++++++++++++++---------
 fs/gfs2/incore.h                 |   3 +
 fs/gfs2/ops_fstype.c             |   3 +
 fs/gfs2/super.c                  |  12 +++
 include/uapi/linux/gfs2_ondisk.h |   9 ++-
 5 files changed, 148 insertions(+), 39 deletions(-)
Signature · 1 line
1.8.3.1