Messages in this thread Patch in this message | | | Date | Thu, 10 Mar 2005 19:10:06 -0500 | From | Jody McIntyre <> | Subject | Re: [PATCH, RFC 3/3] Use sem_getcount in xfs |
| |
Convert XFS to use sem_getcount instead of nasty hack. Should fix warning with XFS debugging on PARISC. Untested since there is no obvious way to turn on XFS debugging.
Signed-off-by: Jody McIntyre <scjody@modernduck.com>
Index: 1394-dev/fs/xfs/linux-2.6/xfs_buf.c =================================================================== --- 1394-dev.orig/fs/xfs/linux-2.6/xfs_buf.c 2005-03-10 18:20:13.000000000 -0500 +++ 1394-dev/fs/xfs/linux-2.6/xfs_buf.c 2005-03-10 18:20:55.000000000 -0500 @@ -976,7 +976,7 @@ int pagebuf_lock_value( xfs_buf_t *pb) { - return(atomic_read(&pb->pb_sema.count)); + return(sem_getcount(&pb->pb_sema)); } #endif - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |