]> err.no Git - linux-2.6/commit
[XFS] Add lock annotations to xfs_trans_update_ail and
authorJosh Triplett <josh@freedesktop.org>
Thu, 28 Sep 2006 01:04:07 +0000 (11:04 +1000)
committerTim Shimmin <tes@sgi.com>
Thu, 28 Sep 2006 01:04:07 +0000 (11:04 +1000)
commit22d91f65d57a7f1a1c5fc81f47b47b0cc54ad6f7
treeb8110f18127ef5882987cd7c7aabbd6801d391cc
parent68c3271515f11f6665dc8732e53aaab3d3fdd7d3
[XFS] Add lock annotations to xfs_trans_update_ail and
xfs_trans_delete_ail

xfs_trans_update_ail and xfs_trans_delete_ail get called with the AIL lock
held, and release it. Add lock annotations to these two functions so that
sparse can check callers for lock pairing, and so that sparse will not
complain about these functions since they intentionally use locks in this
manner.

SGI-PV: 954580
SGI-Modid: xfs-linux-melb:xfs-kern:26807a

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_trans_ail.c
fs/xfs/xfs_trans_priv.h