Skip to content

Commit 006351a

Browse files
author
Al Viro
committed
ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path
Cc: [email protected] Signed-off-by: Al Viro <[email protected]>
1 parent 940ef1a commit 006351a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/ufs/inode.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,9 @@ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buff
403403

404404
if (!create) {
405405
phys64 = ufs_frag_map(inode, offsets, depth);
406-
goto out;
406+
if (phys64)
407+
map_bh(bh_result, sb, phys64 + frag);
408+
return 0;
407409
}
408410

409411
/* This code entered only while writing ....? */

0 commit comments

Comments
 (0)