diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-09 05:28:53 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-09 22:28:01 +0200 |
commit | 006351ac8ead0d4a67dd3845e3ceffe650a23212 (patch) | |
tree | c795c3a3fff0043f9a4df82a2253f38fb301dd4c /fs/ufs/inode.c | |
parent | ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments() (diff) | |
download | linux-006351ac8ead0d4a67dd3845e3ceffe650a23212.tar.xz linux-006351ac8ead0d4a67dd3845e3ceffe650a23212.zip |
ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/ufs/inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 ....? */ |