summaryrefslogtreecommitdiffstats
path: root/fs/quota/quota.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 08:27:59 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 08:27:59 -0800
commitfa4c95bfdb85d568ae327d57aa33a4f55bab79c4 (patch)
tree2f827ba303bbb5be30442388f298e1fe532da4d0 /fs/quota/quota.c
parent60da5bf47dd3d301a1d3bd4f0a4b9e29a184515c (diff)
parent56df127855b593cc4b2e94ce8df5c609b0109b42 (diff)
downloadlinux-fa4c95bfdb85d568ae327d57aa33a4f55bab79c4.tar.bz2
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull ext3, udf, quota fixes from Jan Kara: "Some ext3 & quota cleanups and couple of udf fixes" * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: quota: Use the pre-processor to compile out quotactl_cmd_write when !CONFIG_BLOCK ext3: drop if around WARN_ON ext3: get rid of the duplicate code on ext3_fill_super udf: remove un-needed variable from inode_getblk udf: don't increment lenExtents while writing to a hole udf: fix memory leak while allocating blocks during write
Diffstat (limited to 'fs/quota/quota.c')
-rw-r--r--fs/quota/quota.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index af1661f7a54f..c7314f1771f5 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -307,6 +307,8 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id,
}
}
+#ifdef CONFIG_BLOCK
+
/* Return 1 if 'cmd' will block on frozen filesystem */
static int quotactl_cmd_write(int cmd)
{
@@ -322,6 +324,8 @@ static int quotactl_cmd_write(int cmd)
return 1;
}
+#endif /* CONFIG_BLOCK */
+
/*
* look up a superblock on which quota ops will be performed
* - use the name of a block device to find the superblock thereon