From: Pavel Emelyanov Date: Tue, 5 Feb 2008 06:28:47 +0000 (-0800) Subject: shmem: factor out sbi->free_inodes manipulations X-Git-Tag: v2.6.25-rc1~970 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b04c6890f0dc7ea6c85b9adebc883c55c667d97;p=pandora-kernel.git shmem: factor out sbi->free_inodes manipulations The shmem_sb_info structure has a number of free_inodes. This value is altered in appropriate places under spinlock and with the sbi->max_inodes != 0 check. Consolidate these manipulations into two helpers. This is minus 42 bytes of shmem.o and minus 4 :) lines of code. [akpm@linux-foundation.org: fix error return values] Signed-off-by: Pavel Emelyanov Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed