From: Abhi Das <adas@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH 0/4] fallocate quota fixes
Date: Thu, 12 Feb 2015 10:54:10 -0600 [thread overview]
Message-ID: <1423760054-63438-1-git-send-email-adas@redhat.com> (raw)
These patches are related to bz1174295 where fallocate could
exceed quota. I'm posting these for early feedback as 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 - Adds new variants of quota check functions that
return the number of allowed blocks if quotas are
violated by the number of requested blocks
patch 3 - Adds a new variant of gfs2_inplace_reserve that
returns the max number of available blocks if the
function returns -ENOSPC due to unavailability of
the requested number of blocks.
patch 4 - Allows fallocate to take advantage of patches 2 and
3 to efficiently max out quotas or fill up the fs
instead of returning -EDQUOT/-ENOSPC and leaving some
available blocks unallocated.
Abhi Das (4):
gfs2: check quota for blocks we're about to allocate
gfs2: add new quota check functions
gfs2: add new function gfs2_inpl_rsrv_ret_max_avl
gfs2: allow fallocate to max out quotas/fs efficiently
fs/gfs2/aops.c | 6 +++---
fs/gfs2/bmap.c | 2 +-
fs/gfs2/file.c | 30 ++++++++++++++++++------------
fs/gfs2/inode.c | 14 ++++++++------
fs/gfs2/quota.c | 26 +++++++++++++++++++++-----
fs/gfs2/quota.h | 20 +++++++++++++++++---
fs/gfs2/rgrp.c | 13 +++++++++++--
fs/gfs2/rgrp.h | 10 +++++++++-
fs/gfs2/xattr.c | 2 +-
9 files changed, 89 insertions(+), 34 deletions(-)
--
1.8.1.4
next reply other threads:[~2015-02-12 16:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 16:54 Abhi Das [this message]
2015-02-12 16:54 ` [Cluster-devel] [GFS2 PATCH 1/4] gfs2: check quota for blocks we're about to allocate Abhi Das
2015-02-12 18:12 ` Andrew Price
2015-02-12 18:23 ` Abhijith Das
2015-02-12 16:54 ` [Cluster-devel] [GFS2 PATCH 2/4] gfs2: add new quota check functions Abhi Das
2015-02-13 13:34 ` Steven Whitehouse
2015-02-12 16:54 ` [Cluster-devel] [GFS2 PATCH 3/4] gfs2: add new function gfs2_inpl_rsrv_ret_max_avl Abhi Das
2015-02-13 13:36 ` Steven Whitehouse
2015-02-12 16:54 ` [Cluster-devel] [GFS2 PATCH 4/4] gfs2: allow fallocate to max out quotas/fs efficiently Abhi Das
2015-02-12 17:47 ` [Cluster-devel] [GFS2 PATCH 0/4] fallocate quota fixes Bob Peterson
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=1423760054-63438-1-git-send-email-adas@redhat.com \
--to=adas@redhat.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).