Allow 64 bit machines to avoid the AIL lock during flushes
When copying lsn's from the log item to the inode or dquot
flush lsn, we currently grab the AIL lock. We do this because the
LSN is a 64 bit quantity and it needs to be read atomically.
The lock is used to guarantee atomicity for 32 bit platforms.
Make the LSN copying a small function, and make the function
used conditional on BITS_PER_LONG so that 64 bit machines don't
need to take the AIL lock in these places.
Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Thu Oct 16 15:36:04 EST 2008
Inspected by: hch
The following file(s) were checked into:
fs/xfs/xfs_trans_priv.h - 1.34 - changed
fs/xfs/xfs_inode.c - 1.532 - changed
fs/xfs/quota/xfs_dquot.c - 1.41 - changed
- Allow 64 bit machines to avoid the AIL lock during flushes