Patchwork ext4: remove a useless #ifdef in super.c

login
register
mail settings
Submitter Amerigo Wang
Date April 6, 2011, 6:02 a.m.
Message ID <1302069721-19718-1-git-send-email-amwang@redhat.com>
Download mbox | patch
Permalink /patch/89985/
State Accepted
Headers show

Comments

Amerigo Wang - April 6, 2011, 6:02 a.m.
There is already an #ifdef CONFIG_QUOTA some lines above,
so this one is totally useless.

Signed-off-by: WANG Cong <amwang@redhat.com>

---
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Theodore Ts'o - May 9, 2011, 2:04 a.m.
On Wed, Apr 06, 2011 at 02:02:01PM +0800, Amerigo Wang wrote:
> There is already an #ifdef CONFIG_QUOTA some lines above,
> so this one is totally useless.
> 
> Signed-off-by: WANG Cong <amwang@redhat.com>

Thanks, added to the ext4 tree.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 22546ad..a5a73ac 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1170,9 +1170,7 @@  static ssize_t ext4_quota_write(struct super_block *sb, int type,
 				const char *data, size_t len, loff_t off);
 
 static const struct dquot_operations ext4_quota_operations = {
-#ifdef CONFIG_QUOTA
 	.get_reserved_space = ext4_get_reserved_space,
-#endif
 	.write_dquot	= ext4_write_dquot,
 	.acquire_dquot	= ext4_acquire_dquot,
 	.release_dquot	= ext4_release_dquot,