diff options
author | Jan Kara <jack@suse.cz> | 2014-09-10 19:06:39 (GMT) |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2014-09-17 09:59:12 (GMT) |
commit | 52362810bec8a912324169920cced021e3887b3e (patch) | |
tree | ce48cabf8b87f9d1d896fe3d72ed040079b88376 /fs/ocfs2/file.c | |
parent | aca60617738334be3e8e0daa48be06844ce9e9fd (diff) | |
download | linux-52362810bec8a912324169920cced021e3887b3e.tar.xz |
ocfs2: Don't use MAXQUOTAS value
MAXQUOTAS value defines maximum number of quota types VFS supports.
This isn't necessarily the number of types ocfs2 supports and with
addition of project quotas these two numbers stop matching. So make
ocfs2 use its private definition.
CC: Mark Fasheh <mfasheh@suse.com>
CC: Joel Becker <jlbec@evilplan.org>
CC: ocfs2-devel@oss.oracle.com
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 2930e23..0a8619a 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1125,7 +1125,7 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) struct ocfs2_super *osb = OCFS2_SB(sb); struct buffer_head *bh = NULL; handle_t *handle = NULL; - struct dquot *transfer_to[MAXQUOTAS] = { }; + struct dquot *transfer_to[OCFS2_MAXQUOTAS] = { }; int qtype; trace_ocfs2_setattr(inode, dentry, @@ -1253,7 +1253,7 @@ bail: brelse(bh); /* Release quota pointers in case we acquired them */ - for (qtype = 0; qtype < MAXQUOTAS; qtype++) + for (qtype = 0; qtype < OCFS2_MAXQUOTAS; qtype++) dqput(transfer_to[qtype]); if (!status && attr->ia_valid & ATTR_MODE) { |