projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940ef1a
)
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
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 9 Jun 2017 20:28:01 +0000
(16:28 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/inode.c
patch
|
blob
|
history
diff --git
a/fs/ufs/inode.c
b/fs/ufs/inode.c
index
966cced
..
9bf1028
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 ....? */