Btrfs: return errno if possible when we fail to allocate memory
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 14 May 2013 02:12:15 +0000 (02:12 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:27 +0000 (21:40 -0400)
commitb9aa55bed1c1a3a329da31884b643c62d57ebb21
tree8a471df81a5c15b4750b64360f26681dfa3d7ec3
parentd88033dbf4c23279b012725876f1e164e09644ff
Btrfs: return errno if possible when we fail to allocate memory

We need to set return value explicitly, otherwise we'll lose the error
value.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c