android_kernel_samsung_a7y1.../fs/hfsplus
Ernesto A. Fernández 7fd1f7db43 hfsplus: fix return value of hfsplus_get_block()
[ Upstream commit 839c3a6a5e1fbc8542d581911b35b2cb5cd29304 ]

Direct writes to empty inodes fail with EIO.  The generic direct-io code
is in part to blame (a patch has been submitted as "direct-io: allow
direct writes to empty inodes"), but hfsplus is worse affected than the
other filesystems because the fallback to buffered I/O doesn't happen.

The problem is the return value of hfsplus_get_block() when called with
!create.  Change it to be more consistent with the other modules.

Link: http://lkml.kernel.org/r/2cd1301404ec7cf1e39c8f11a01a4302f1460ad6.1539195310.git.ernesto.mnd.fernandez@gmail.com
Signed-off-by: Ernesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
Reviewed-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:35:53 +02:00
..
acl.h
attributes.c
bfind.c
bitmap.c
bnode.c
brec.c
btree.c
catalog.c
dir.c
extents.c hfsplus: fix return value of hfsplus_get_block() 2020-04-07 12:35:53 +02:00
hfsplus_fs.h
hfsplus_raw.h
inode.c
ioctl.c
Kconfig
Makefile
options.c
part_tbl.c
posix_acl.c
super.c
tables.c
unicode.c
wrapper.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h