hfsplus-fix-concurrent-acess-of-alloc_blocks-fix.patch removed from -mm tree
Subject: [folded-merged] hfsplus-fix-concurrent-acess-of-alloc_blocks-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 03 Apr 2014 14:13:55 -0700
The patch titled
Subject: hfsplus-fix-concurrent-acess-of-alloc_blocks-fix
has been removed from the -mm tree. Its filename was
hfsplus-fix-concurrent-acess-of-alloc_blocks-fix.patch
This patch was dropped because it was folded into hfsplus-fix-concurrent-acess-of-alloc_blocks.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: hfsplus-fix-concurrent-acess-of-alloc_blocks-fix
take extents_lock before taking a copy of ->alloc_blocks
---
fs/hfsplus/extents.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
fs/hfsplus/extents.c renamed from fs/hfsplus/extents.c~hfsplus-fix-concurrent-acess-of-alloc_blocks-fix +5 -2
@@ -556,11 +556,13 @@ void hfsplus_file_truncate(struct inode blk_cnt = (inode->i_size +HFSPLUS_SB (sb)->alloc_blksz -1 ) >>HFSPLUS_SB (sb)->alloc_blksz_shift; + +mutex_lock (&hip->extents_lock); + alloc_cnt = hip->alloc_blocks;if (blk_cnt == alloc_cnt) - goto out; + goto out_unlock; -mutex_lock (&hip->extents_lock); res =hfs_find_init (HFSPLUS_SB (sb)->ext_tree, &fd);if (res) {mutex_unlock (&hip->extents_lock);
@@ -594,6 +596,7 @@ void hfsplus_file_truncate(struct inodehfs_find_exit (&fd); hip->alloc_blocks = blk_cnt; +out_unlock:mutex_unlock (&hip->extents_lock); out: hip->phys_size = inode->i_size;
_
Patches currently in -mm which might be from [email protected] are
origin.patch fanotify-use-fanotify-event-structure-for-permission-response-processing.patch ocfs2-add-dlm_recover_callback_support-in-sysfs.patch ocfs2-flock-drop-cross-node-lock-when-failed-locally.patch ocfs2-rollback-alloc_dinode-counts-when-ocfs2_block_group_set_bits-failed.patch mm-hugetlb-improve-page-fault-scalability.patch mm-vmstat-fix-up-zone-state-accounting.patch mm-keep-page-cache-radix-tree-nodes-in-check.patch mm-process_vm_accessc-mark-function-as-static.patch drop_caches-add-some-documentation-and-info-message.patch sys_sysfs-add-config_sysfs_syscall.patch kernel-groupsc-remove-return-value-of-set_groups.patch xattr-guard-against-simultaneous-glibc-header-inclusion-v2.patch lib-syscallc-unexport-task_current_syscall.patch scripts-checkpatchpl-__gfp_nofail-isnt-going-away.patch rtc-fixed-potential-race-condition.patch befs-logging-clean-up.patch hfsplus-fix-concurrent-acess-of-alloc_blocks.patch hfsplus-fix-concurrent-acess-of-alloc_blocks-fix-fix.patch