projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34aa71c
)
ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 9 Jun 2017 03:28:53 +0000
(23:28 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 11:16:24 +0000
(13:16 +0200)
commit
006351ac8ead0d4a67dd3845e3ceffe650a23212
upstream.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ufs/inode.c
patch
|
blob
|
history
diff --git
a/fs/ufs/inode.c
b/fs/ufs/inode.c
index 2ceccec0b6090fd8df67fc6b98af8b13f2af9cc4..1f69bb9b1e9d223794152e27e7c52b95e87fb880 100644
(file)
--- 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 ....? */