From: Linus Torvalds Date: Fri, 13 May 2011 18:51:01 +0000 (-0700) Subject: vfs: micro-optimize acl_permission_check() X-Git-Tag: v2.6.39~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26cf46be954a2dd391d32eeaf7d07c3a953dcc5a;p=pandora-kernel.git vfs: micro-optimize acl_permission_check() It's a hot function, and we're better off not mixing types in the mask calculations. The compiler just ends up mixing 16-bit and 32-bit operations, for no good reason. So do everything in 'unsigned int' rather than mixing 'unsigned int' masking with a 'umode_t' (16-bit) mode variable. This, together with the parent commit (47a150edc2ae: "Cache user_ns in struct cred") makes acl_permission_check() much nicer. Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed