From: Dave Chinner Date: Fri, 3 Dec 2010 11:11:29 +0000 (+1100) Subject: xfs: convert l_last_sync_lsn to an atomic variable X-Git-Tag: v2.6.38-rc1~44^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84f3c683c4d3f36d3c3ed320babd960a332ac458;p=pandora-kernel.git xfs: convert l_last_sync_lsn to an atomic variable log->l_last_sync_lsn is updated in only one critical spot - log buffer Io completion - and is protected by the grant lock here. This requires the grant lock to be taken for every log buffer IO completion. Converting the l_last_sync_lsn variable to an atomic64_t means that we do not need to take the grant lock in log buffer IO completion to update it. This also removes the need for explicitly holding a spinlock to read the l_last_sync_lsn on 32 bit platforms. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed