]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/open.c
[PATCH] VFS: pass file pointer to filesystem from ftruncate()
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 7 Nov 2005 08:59:49 +0000 (00:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:42 +0000 (07:53 -0800)
commitcc4e69dee4a080f6eae3f410daec2593f4fa6f00
treeb9be8984a0be5f7997d836603963dcf8f2e728ff
parent481bed454247538e9f57d4ea37b153ccba24ba7b
[PATCH] VFS: pass file pointer to filesystem from ftruncate()

This patch extends the iattr structure with a file pointer memeber, and adds
an ATTR_FILE validity flag for this member.

This is set if do_truncate() is invoked from ftruncate() or from
do_coredump().

The change is source and binary compatible.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c
fs/namei.c
fs/open.c
include/linux/fs.h