Searched hist:"5 b04c6890f0dc7ea6c85b9adebc883c55c667d97" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | shmem.c | diff 5b04c6890f0dc7ea6c85b9adebc883c55c667d97 Tue Feb 05 00:28:47 CST 2008 Pavel Emelyanov <xemul@openvz.org> 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 <xemul@openvz.org> Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|