From: Miklos Szeredi Date: Thu, 18 Oct 2007 10:07:00 +0000 (-0700) Subject: VFS: allow filesystems to implement atomic open+truncate X-Git-Tag: v2.6.24-rc1~317 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d139d7ffd0c1e81e2a809909b4f8b121a0dc119a;p=pandora-kernel.git VFS: allow filesystems to implement atomic open+truncate Add a new attribute flag ATTR_OPEN, with the meaning: "truncation was initiated by open() due to the O_TRUNC flag". This way filesystems wanting to implement truncation within their ->open() method can ignore such truncate requests. This is a quick & dirty hack, but it comes for free. Signed-off-by: Miklos Szeredi Cc: Christoph Hellwig Cc: Al Viro Cc: Andreas Dilger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed