Whamcloud - gitweb
LU-12561 ldiskfs: Remove unused 2.6.x patches
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.6 / ext4-remove-truncate-warning.patch
diff --git a/ldiskfs/kernel_patches/patches/rhel6.6/ext4-remove-truncate-warning.patch b/ldiskfs/kernel_patches/patches/rhel6.6/ext4-remove-truncate-warning.patch
deleted file mode 100644 (file)
index a77d5b9..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Invoking ext4_truncate with i_mutex locked will cause a deadlock
-in lustre. Since lustre has own lock to provide protection we don't
-need this check at all.
-
-Index: linux-2.6.32-504.el6.x86_64/fs/ext4/inode.c
-===================================================================
---- linux-2.6.32-504.el6.x86_64.orig/fs/ext4/inode.c
-+++ linux-3.10.0-504.el6.x86_64/fs/ext4/inode.c
-@@ -3934,8 +3934,6 @@ void ext4_end_io_work(struct work_struct
- int ext4_flush_unwritten_io(struct inode *inode)
- {
-       int ret;
--      WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex) &&
--                   !(inode->i_state & I_FREEING));
-       ret = ext4_do_flush_completed_IO(inode, NULL);
-       ext4_unwritten_wait(inode);
-       return ret;