]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: Refactor xfs_attr_set_shortform
authorAllison Henderson <allison.henderson@oracle.com>
Fri, 15 Oct 2021 20:28:24 +0000 (16:28 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 15 Oct 2021 20:28:24 +0000 (16:28 -0400)
commit0469587ee7c6af05870a39e1a6bce5193dff0e4d
tree5485d9f01d0f2bda5bc9c1daa5d3a63d26841c95
parent48a540b641ed3500659cbe9d8db2cd6552fcdb7f
xfs: Refactor xfs_attr_set_shortform

Source kernel commit: 6286514b63e12d7bedc67e46aa1aeff9ed8378ce

This patch is actually the combination of patches from the previous
version (v18).  Initially patch 3 hoisted xfs_attr_set_shortform, and
the next added the helper xfs_attr_set_fmt. xfs_attr_set_fmt is similar
the old xfs_attr_set_shortform. It returns 0 when the attr has been set
and no further action is needed. It returns -EAGAIN when shortform has
been transformed to leaf, and the calling function should proceed the
set the attr in leaf form.

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr.c