From: Al Viro Date: Fri, 9 Jun 2017 03:28:53 +0000 (-0400) Subject: ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path X-Git-Tag: microblaze-4.14-rc3~709^2~13 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=006351ac8ead0d4a67dd3845e3ceffe650a23212;p=linux-2.6-microblaze.git ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path Cc: stable@vger.kernel.org Signed-off-by: Al Viro --- diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 966cced0f88e..9bf10285c628 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -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 ....? */