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 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
attributes.c hfsplus: prevent btree data loss on ENOSPC 2020-04-07 12:35:49 +02:00
bfind.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bitmap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bnode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
brec.c hfsplus: fix BUG on bnode parent update 2020-04-07 12:35:45 +02:00
btree.c hfsplus: prevent btree data loss on ENOSPC 2020-04-07 12:35:49 +02:00
catalog.c hfsplus: prevent btree data loss on ENOSPC 2020-04-07 12:35:49 +02:00
dir.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extents.c hfsplus: fix return value of hfsplus_get_block() 2020-04-07 12:35:53 +02:00
hfsplus_fs.h hfsplus: prevent btree data loss on ENOSPC 2020-04-07 12:35:49 +02:00
hfsplus_raw.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ioctl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
options.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
part_tbl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
posix_acl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
super.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tables.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unicode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wrapper.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr_security.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr_trusted.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr_user.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30