From: Dave Hansen Date: Fri, 15 Feb 2008 22:37:31 +0000 (-0800) Subject: [PATCH] r/o bind mounts: create helper to drop file write access X-Git-Tag: v2.6.26-rc1~1134^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aceaf78da92a53f5e1b105649a1b8c0afdb2135c;p=pandora-kernel.git [PATCH] r/o bind mounts: create helper to drop file write access If someone decides to demote a file from r/w to just r/o, they can use this same code as __fput(). NFS does just that, and will use this in the next patch. AV: drop write access in __fput() only after we evict from file list. Signed-off-by: Dave Hansen Cc: Erez Zadok Cc: Trond Myklebust Cc: "J Bruce Fields" Acked-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- Reading git-diff-tree failed