ext4: Take read lock during overwrite case.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 29 Jan 2008 04:58:29 +0000 (23:58 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jan 2008 04:58:29 +0000 (23:58 -0500)
commit4df3d265bf8f3762e1d77f554ee279c39dedb020
tree35d455ac6592750450d9173125b1e5b9b5efe819
parent0e855ac8b103ef579052936b59fe7c599ac422a4
ext4: Take read lock during overwrite case.

When we are overwriting a file and not actually allocating new file system
blocks we need to take only the read lock on i_data_sem.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
fs/ext4/inode.c