ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path
commit 006351ac8ead0d4a67dd3845e3ceffe650a23212 upstream. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3d4922b5bb
commit
84bef90a45
+3
-1
@@ -403,7 +403,9 @@ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buff
|
|||||||
|
|
||||||
if (!create) {
|
if (!create) {
|
||||||
phys64 = ufs_frag_map(inode, offsets, depth);
|
phys64 = ufs_frag_map(inode, offsets, depth);
|
||||||
goto out;
|
if (phys64)
|
||||||
|
map_bh(bh_result, sb, phys64 + frag);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This code entered only while writing ....? */
|
/* This code entered only while writing ....? */
|
||||||
|
|||||||
Reference in New Issue
Block a user