aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-09-30 12:07:08 -0400
committerJan Kara <jack@suse.cz>2014-09-30 12:09:59 -0400
commitc53f755d339b5546600c316333140d5fe958941d (patch)
treeff1a75a5543583cf1b84da898ccb920f7f51f2fe
parent37993271cfa22b5620304f1fa3bf72eabb5b557b (diff)
ocfs2: Back out change to use OCFS2_MAXQUOTAS in ocfs2_setattr()
ocfs2_setattr() actually needs to really use MAXQUOTAS and not OCFS2_MAXQUOTAS since it will pass the array over to VFS. Currently this isn't a problem since MAXQUOTAS == OCFS2_MAXQUOTAS but it would be once we introduce project quotas. 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>
-rw-r--r--fs/ocfs2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 0a8619a772ef..f39482ee22f0 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -1125,7 +1125,7 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
1125 struct ocfs2_super *osb = OCFS2_SB(sb); 1125 struct ocfs2_super *osb = OCFS2_SB(sb);
1126 struct buffer_head *bh = NULL; 1126 struct buffer_head *bh = NULL;
1127 handle_t *handle = NULL; 1127 handle_t *handle = NULL;
1128 struct dquot *transfer_to[OCFS2_MAXQUOTAS] = { }; 1128 struct dquot *transfer_to[MAXQUOTAS] = { };
1129 int qtype; 1129 int qtype;
1130 1130
1131 trace_ocfs2_setattr(inode, dentry, 1131 trace_ocfs2_setattr(inode, dentry,