Skip to content

Commit

Permalink
ufs_getfrag_block(): we only grab ->truncate_mutex on block creation …
Browse files Browse the repository at this point in the history
…path

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 9, 2017
1 parent 940ef1a commit 006351a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/ufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,9 @@ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buff

if (!create) {
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 ....? */
Expand Down

0 comments on commit 006351a

Please sign in to comment.