]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.17-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Nov 2014 22:05:57 +0000 (07:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Nov 2014 22:05:57 +0000 (07:05 +0900)
added patches:
mm-remove-false-warn_on-from-pagecache_isize_extended.patch

queue-3.17/mm-remove-false-warn_on-from-pagecache_isize_extended.patch [new file with mode: 0644]
queue-3.17/series

diff --git a/queue-3.17/mm-remove-false-warn_on-from-pagecache_isize_extended.patch b/queue-3.17/mm-remove-false-warn_on-from-pagecache_isize_extended.patch
new file mode 100644 (file)
index 0000000..ca57b94
--- /dev/null
@@ -0,0 +1,33 @@
+From f55fefd1a5a339b1bd08c120b93312d6eb64a9fb Mon Sep 17 00:00:00 2001
+From: Jan Kara <jack@suse.cz>
+Date: Thu, 30 Oct 2014 10:35:00 +1100
+Subject: mm: Remove false WARN_ON from pagecache_isize_extended()
+
+From: Jan Kara <jack@suse.cz>
+
+commit f55fefd1a5a339b1bd08c120b93312d6eb64a9fb upstream.
+
+The WARN_ON checking whether i_mutex is held in
+pagecache_isize_extended() was wrong because some filesystems (e.g.
+XFS) use different locks for serialization of truncates / writes. So
+just remove the check.
+
+Signed-off-by: Jan Kara <jack@suse.cz>
+Reviewed-by: Dave Chinner <dchinner@redhat.com>
+Signed-off-by: Dave Chinner <david@fromorbit.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ mm/truncate.c |    1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/mm/truncate.c
++++ b/mm/truncate.c
+@@ -755,7 +755,6 @@ void pagecache_isize_extended(struct ino
+       struct page *page;
+       pgoff_t index;
+-      WARN_ON(!mutex_is_locked(&inode->i_mutex));
+       WARN_ON(to > inode->i_size);
+       if (from >= to || bsize == PAGE_CACHE_SIZE)
index 293f35a63befeb17c8da328dc495db2b6ad1e00c..cee2c03682d1618968d781d9f54c9aecd322b357 100644 (file)
@@ -273,3 +273,4 @@ mac80211-fix-typo-in-starting-baserate-for-rts_cts_rate_idx.patch
 mtd-cfi_cmdset_0001.c-fix-resume-for-lh28f640bf-chips.patch
 posix-timers-fix-stack-info-leak-in-timer_create.patch
 x86-apic-handle-a-bad-tsc-more-gracefully.patch
+mm-remove-false-warn_on-from-pagecache_isize_extended.patch