OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64913aa
)
ANDROID: sdcardfs: fix lock issue on 32 bit/SMP architectures
author
Daniel Rosenberg
<drosen@google.com>
Fri, 16 Mar 2018 02:37:16 +0000
(19:37 -0700)
committer
Daniel Rosenberg
<drosen@google.com>
Fri, 16 Mar 2018 02:48:16 +0000
(19:48 -0700)
Fixes:
2240ca0fc8b7
("ANDROID: sdcardfs: Hold i_mutex for i_size_write")
Change-Id: If7f2ed90f59c552b9ef9262b0f6aaed394f68784
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug:
73287721
fs/sdcardfs/file.c
patch
|
blob
|
history
diff --git
a/fs/sdcardfs/file.c
b/fs/sdcardfs/file.c
index
2879d12
..
1461254
100644
(file)
--- a/
fs/sdcardfs/file.c
+++ b/
fs/sdcardfs/file.c
@@
-414,7
+414,7
@@
ssize_t sdcardfs_write_iter(struct kiocb *iocb, struct iov_iter *iter)
fsstack_copy_inode_size(inode, file_inode(lower_file));
fsstack_copy_attr_times(inode, file_inode(lower_file));
if (sizeof(loff_t) > sizeof(long))
- inode_lock(inode);
+ inode_
un
lock(inode);
}
out:
return err;