From: Carlos Maiolino Date: Thu, 20 Sep 2012 13:32:38 +0000 (-0300) Subject: xfs: reduce code duplication handling inode32/64 options X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~35^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d2194f61fddab3a9731b6e7a7ae3a4a19dd810c;p=pandora-kernel.git xfs: reduce code duplication handling inode32/64 options Add xfs_set_inode32() to be used to enable inode32 allocation mode. this will reduce the amount of duplicated code needed to mount/remount a filesystem with inode32 option. This patch also changes xfs_set_inode64() to return the maximum AG number that inodes can be allocated instead of set mp->m_maxagi by itself, so that the behaviour is the same as xfs_set_inode32(). This simplifies code that calls these functions and needs to know the maximum AG that inodes can be allocated in. Signed-off-by: Carlos Maiolino Reviewed-by: Christoph Hellwig Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- Reading git-diff-tree failed