From c53f755d339b5546600c316333140d5fe958941d Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Tue, 30 Sep 2014 18:07:08 +0200 Subject: 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 CC: Joel Becker CC: ocfs2-devel@oss.oracle.com Signed-off-by: Jan Kara --- fs/ocfs2/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/ocfs2') diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 0a8619a..f39482e 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[OCFS2_MAXQUOTAS] = { }; + struct dquot *transfer_to[MAXQUOTAS] = { }; int qtype; trace_ocfs2_setattr(inode, dentry, -- cgit v1.1