From: Jeff Layton Date: Thu, 10 Jul 2014 18:07:30 +0000 (-0400) Subject: nfsd: shrink st_access_bmap and st_deny_bmap X-Git-Tag: omap-for-v3.17/fixes-against-rc2~101^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c11c591fe6682e0d642bf9242e53554a50e5fbc0;p=pandora-kernel.git nfsd: shrink st_access_bmap and st_deny_bmap We never use anything above bit #3, so an unsigned long for each is wasteful. Shrink them to a char each, and add some WARN_ON_ONCE calls if we try to set or clear bits that would go outside those sizes. Note too that because atomic bitops work on unsigned longs, we have to abandon their use here. That shouldn't be a problem though since we don't really care about the atomicity in this code anyway. Using them was just a convenient way to flip bits. Signed-off-by: Jeff Layton Reviewed-by: Christoph Hellwig Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed