[XFS] Current usage of buftarg flags is incorrect.
authorDavid Chinner <dgc@sgi.com>
Sat, 10 Feb 2007 07:34:49 +0000 (18:34 +1100)
committerTim Shimmin <tes@sgi.com>
Sat, 10 Feb 2007 07:34:49 +0000 (18:34 +1100)
commit5e6a07dfe404cd4d8494d842b54706cb007fa04b
tree46cb354cfaedf75afb956036b5238a12f6c75f1d
parentdc74eaad8cda9f12a885639b4f2513c99e9b483a
[XFS] Current usage of buftarg flags is incorrect.

The {test,set,clear}_bit() operations take a bit index for the bit to
operate on. The XBT_* flags are defined as bit fields which is incorrect,
not to mention the way the bit fields are enumerated is broken too. This
was only working by chance.

Fix the definitions of the flags and make the code using them use the
{test,set,clear}_bit() operations correctly.

SGI-PV: 958639
SGI-Modid: xfs-linux-melb:xfs-kern:27565a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_buf.h