diff options
author | Vivek Goyal | 2018-05-11 17:49:28 +0200 |
---|---|---|
committer | Miklos Szeredi | 2018-07-20 09:56:08 +0200 |
commit | 027065b726434d2a95a5cc516129be765e27ecf8 (patch) | |
tree | 5f8c3aa847bf0eceab9c4cf9e384d46e4909378f /fs/overlayfs/export.c | |
parent | ovl: A new xattr OVL_XATTR_METACOPY for file on upper (diff) | |
download | kernel-qcow2-linux-027065b726434d2a95a5cc516129be765e27ecf8.tar.gz kernel-qcow2-linux-027065b726434d2a95a5cc516129be765e27ecf8.tar.xz kernel-qcow2-linux-027065b726434d2a95a5cc516129be765e27ecf8.zip |
ovl: Use out_err instead of out_nomem
Right now we use goto out_nomem which assumes error code is -ENOMEM. But
there are other errors returned like -ESTALE as well. So instead of
out_nomem, use out_err which will do ERR_PTR(err). That way one can put
error code in err and jump to out_err.
This just code reorganization and no change of functionality.
I am about to add more code and this organization helps laying more code
and error paths on top of it.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/export.c')
0 files changed, 0 insertions, 0 deletions