From: OGAWA Hirofumi Date: Mon, 28 Apr 2008 09:16:26 +0000 (-0700) Subject: fat: fat_setattr() fix X-Git-Tag: v2.6.26-rc1~729 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e97e8de388723f9491514fa0434ddf1fd713a188;p=pandora-kernel.git fat: fat_setattr() fix Fix fat_setattr() on the case of showexec option. If user specified showexec option, inode->i_mode may not have S_IXUGO. This just use inode->i_mode to fix it. And with this patch, we don't allow chmod() on memory inode, it's just bad behaviour. IOW, we allow changing S_IWUGO only which can be stored to disk. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed