]> git.baikalelectronics.ru Git - kernel.git/commit
Fix wrong flag ASSERT in xfs_attr_shortform_getvalue
authorEric Sandeen <sandeen@redhat.com>
Fri, 30 Mar 2012 16:24:11 +0000 (11:24 -0500)
committerBen Myers <bpm@sgi.com>
Fri, 30 Aug 2013 20:20:50 +0000 (15:20 -0500)
commit73e80ccb62475f817b78631f4572c603623b4c49
tree292c7c14d4c6952c8e12c09afd51ece7901cf5ed
parentd99fe7afb6ea9aa69eb4f451c6668c49b9f8eea7
Fix wrong flag ASSERT in xfs_attr_shortform_getvalue

This ASSERT is testing an if_flags flag value against
a di_aformat enum value.  di_aformat is never assigned
XFS_IFINLINE.

This happens to work for now, because XFS_IFINLINE has
the same value as XFS_DINODE_FMT_LOCAL, and that's tested
just before we call this function.

However, I think the intention is to assert that we have
read in the data, i.e. XFS_IFINLINE on if_flags, before
we use if_data.  This is done in other places through the
code as well.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_attr_leaf.c