hpfs: handle allocation failures in hpfs_add_pos()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 May 2016 23:35:57 +0000 (19:35 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 May 2016 23:35:57 +0000 (19:35 -0400)
commite82c3147554785414a10a2d424590758646972b2
tree54dcbe319a89601b153cfb8556faee1e6a6dda19
parent1d1bb236bc2ffb3586d6cc73e58c0d8351758123
hpfs: handle allocation failures in hpfs_add_pos()

pr_err() is nice, but we'd better propagate the error
to caller and not proceed to violate the invariants
(namely, "every file with f_pos tied to directory block
should have its address visible in per-inode array").

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hpfs/dir.c
fs/hpfs/dnode.c
fs/hpfs/hpfs_fn.h