]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:30:24 +0000 (00:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:30:24 +0000 (00:30 +0900)
added patches:
ext4-don-t-set-i_flags-in-ext4_ioc_setflags.patch

queue-3.0/ext4-don-t-set-i_flags-in-ext4_ioc_setflags.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/ext4-don-t-set-i_flags-in-ext4_ioc_setflags.patch b/queue-3.0/ext4-don-t-set-i_flags-in-ext4_ioc_setflags.patch
new file mode 100644 (file)
index 0000000..21d9de4
--- /dev/null
@@ -0,0 +1,32 @@
+From b22b1f178f6799278d3178d894f37facb2085765 Mon Sep 17 00:00:00 2001
+From: Tao Ma <boyu.mt@taobao.com>
+Date: Thu, 7 Jun 2012 19:04:19 -0400
+Subject: ext4: don't set i_flags in EXT4_IOC_SETFLAGS
+
+From: Tao Ma <boyu.mt@taobao.com>
+
+commit b22b1f178f6799278d3178d894f37facb2085765 upstream.
+
+Commit 7990696 uses the ext4_{set,clear}_inode_flags() functions to
+change the i_flags automatically but fails to remove the error setting
+of i_flags.  So we still have the problem of trashing state flags.
+Fix this by removing the assignment.
+
+Signed-off-by: Tao Ma <boyu.mt@taobao.com>
+Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/ext4/ioctl.c |    1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/fs/ext4/ioctl.c
++++ b/fs/ext4/ioctl.c
+@@ -120,7 +120,6 @@ long ext4_ioctl(struct file *filp, unsig
+                       else
+                               ext4_clear_inode_flag(inode, i);
+               }
+-              ei->i_flags = flags;
+               ext4_set_inode_flags(inode);
+               inode->i_ctime = ext4_current_time(inode);
index 6057249a5521453f0ee3090c296ccb371982cef6..d232a9137e740e4b33a8ceb4b6a01fb9f3e89e74 100644 (file)
@@ -45,3 +45,4 @@ ext4-remove-mb_groups-before-tearing-down-the-buddy_cache.patch
 drm-radeon-kms-add-new-btc-pci-ids.patch
 acpi-battery-only-refresh-the-sysfs-files-when-pertinent-information-changes.patch
 wl1251-fix-oops-on-early-interrupt.patch
+ext4-don-t-set-i_flags-in-ext4_ioc_setflags.patch