Skip to content

fallocate quota fixes

Abhi Das cluster-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gfs2: perform quota checks against allocation parametersfs/gfs2/aops.c fs/gfs2/bmap.c fs/gfs2/file.c +5 more+29 -241 reply
1/3gfs2: perform quota checks against allocation parameters+0 -00 replies
2/3gfs2: allow quota_check and inplace_reserve to return available blocksfs/gfs2/incore.h fs/gfs2/quota.c fs/gfs2/rgrp.c +1 more+24 -20 replies
3/3gfs2: allow fallocate to max out quotas/fs efficientlyfs/gfs2/file.c+11 -71 reply
3/3gfs2: allow fallocate to max out quotas/fs efficiently+0 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Cluster-devel] [GFS2 PATCH 0/3] fallocate quota fixes

This is a revised set of patches for bz1174295 to address fallocate/quota issues. These patches are only compile tested so far.

patch 1 - This is the patch that actually addresses the quota
exceed issue. Quota checks were not being performed against the blocks about to be allocated.

patch 2 - Modify gfs2_inplace_reserve() and gfs2_quota_check()
to return available number of blocks in case of failure.

patch 3 - Allows fallocate to take advantage of patch 2 to
efficiently max out quotas or fill up the fs instead of returning -EDQUOT/-ENOSPC and leaving some available blocks unallocated.

Abhi Das (3):
gfs2: perform quota checks against allocation parameters
gfs2: allow quota_check and inplace_reserve to return available blocks
gfs2: allow fallocate to max out quotas/fs efficiently

 fs/gfs2/aops.c   |  6 +++---
 fs/gfs2/bmap.c   |  2 +-
 fs/gfs2/file.c   | 27 ++++++++++++++++-----------
 fs/gfs2/incore.h |  3 ++-
 fs/gfs2/inode.c  | 18 ++++++++++--------
 fs/gfs2/quota.c  | 21 ++++++++++++++++++---
 fs/gfs2/quota.h  |  8 +++++---
 fs/gfs2/rgrp.c   |  8 +++++++-
 fs/gfs2/rgrp.h   |  2 +-
 fs/gfs2/xattr.c  |  2 +-
 10 files changed, 64 insertions(+), 33 deletions(-)
Signature · 1 line
1.8.1.4