]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remote attribute lookups require the value length
authorDave Chinner <dchinner@redhat.com>
Sun, 19 May 2013 23:51:16 +0000 (09:51 +1000)
committerBen Myers <bpm@sgi.com>
Fri, 24 May 2013 21:31:20 +0000 (16:31 -0500)
commitca3e9e56e31a53e5f7e5a037eac41bba8188c862
tree3406c0f6b04d741ad218190240c7ee04e0501fe7
parentdf4d475f00fead942c8ffd6682b9c0defc633c3d
xfs: remote attribute lookups require the value length

When reading a remote attribute, to correctly calculate the length
of the data buffer for CRC enable filesystems, we need to know the
length of the attribute data. We get this information when we look
up the attribute, but we don't store it in the args structure along
with the other remote attr information we get from the lookup. Add
this information to the args structure so we can use it
appropriately.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
(cherry picked from commit e461fcb194172b3f709e0b478d2ac1bdac7ab9a3)
fs/xfs/xfs_attr_leaf.c