Skip to content

gfs2_write_calc_reserv rewrite

Andreas Gruenbacher 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: Pass write offset to gfs2_write_calc_reservfs/gfs2/bmap.c fs/gfs2/bmap.h fs/gfs2/file.c +1 more+30 -250 replies
2/2gfs2: Rewrite gfs2_write_calc_reservfs/gfs2/bmap.c fs/gfs2/bmap.h fs/gfs2/file.c+100 -320 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 v2 0/2] gfs2_write_calc_reserv rewrite

Here's an update on the two patches posted last Friday.

Changes since version 1:

* Nate has reported a bug in the new gfs2_write_calc_reserv that causes it to consume a lot of time. It turns out that the function was unnecessarily trying to compute the nuber of indirect blocks for stuffed files, underflowing a counter.

* Abhi has pointed out that the quota changes were not quite right.

Andreas Gruenbacher (2):
gfs2: Pass write offset to gfs2_write_calc_reserv
gfs2: Rewrite gfs2_write_calc_reserv

 fs/gfs2/bmap.c  | 74 +++++++++++++++++++++++++++++++++++++++++++++++--
 fs/gfs2/bmap.h  | 32 ++++-----------------
 fs/gfs2/file.c  | 34 +++++++++++++++++++----
 fs/gfs2/quota.c | 37 +++++++++++++------------
 4 files changed, 125 insertions(+), 52 deletions(-)
Signature · 1 line
2.17.1