浏览代码

Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-quota-2.6

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-quota-2.6:
  ext2: missing unlock in ext2_quota_write()
  quota: remove obsolete comments in fs/quota/Makefile
Linus Torvalds 16 年之前
父节点
当前提交
dccdee460e
共有 2 个文件被更改,包括 3 次插入10 次删除
  1. 3 1
      fs/ext2/super.c
  2. 0 9
      fs/quota/Makefile

+ 3 - 1
fs/ext2/super.c

@@ -1395,8 +1395,10 @@ static ssize_t ext2_quota_write(struct super_block *sb, int type,
 		blk++;
 		blk++;
 	}
 	}
 out:
 out:
-	if (len == towrite)
+	if (len == towrite) {
+		mutex_unlock(&inode->i_mutex);
 		return err;
 		return err;
+	}
 	if (inode->i_size < off+len-towrite)
 	if (inode->i_size < off+len-towrite)
 		i_size_write(inode, off+len-towrite);
 		i_size_write(inode, off+len-towrite);
 	inode->i_version++;
 	inode->i_version++;

+ 0 - 9
fs/quota/Makefile

@@ -1,12 +1,3 @@
-#
-# Makefile for the Linux filesystems.
-#
-# 14 Sep 2000, Christoph Hellwig <hch@infradead.org>
-# Rewritten to use lists instead of if-statements.
-#
-
-obj-y :=
-
 obj-$(CONFIG_QUOTA)		+= dquot.o
 obj-$(CONFIG_QUOTA)		+= dquot.o
 obj-$(CONFIG_QFMT_V1)		+= quota_v1.o
 obj-$(CONFIG_QFMT_V1)		+= quota_v1.o
 obj-$(CONFIG_QFMT_V2)		+= quota_v2.o
 obj-$(CONFIG_QFMT_V2)		+= quota_v2.o