]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ext4: Convert truncate_mutex to read write semaphore.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 29 Jan 2008 04:58:26 +0000 (23:58 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jan 2008 04:58:26 +0000 (23:58 -0500)
commit0e855ac8b103ef579052936b59fe7c599ac422a4
treeec29f82e1d7bb1987dcadc00497daf69d6955483
parentc278bfecebfb1ed67c326ef472660878baa745cd
ext4: Convert truncate_mutex to read write semaphore.

We are currently taking the truncate_mutex for every read. This would have
performance impact on large CPU configuration. Convert the lock to read write
semaphore and take read lock when we are trying to read the file.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
fs/ext4/balloc.c
fs/ext4/extents.c
fs/ext4/file.c
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/ext4/super.c
include/linux/ext4_fs.h
include/linux/ext4_fs_i.h