staging: erofs: add some comments for xattr subsystem
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 19 Sep 2018 05:49:09 +0000 (13:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 10:25:36 +0000 (12:25 +0200)
commitbdf30cef10558d2158952c27bd18c16fe72b58d5
tree991d427572ffc9cd6085eb87c0a4698d9abc4512
parent5fb76bb04216fdbbee3fec544a0c16e990fefdfb
staging: erofs: add some comments for xattr subsystem

As Dan Carpenter pointed out, it is better to document what
return values of these callbacks in `struct xattr_iter_handlers'
mean and why it->ofs is increased regardless of success or
failure in `xattr_foreach'.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/xattr.c