diff options
author | Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> | 2006-12-08 05:36:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:41 -0500 |
commit | 0f7fc9e4d03987fe29f6dd4aa67e4c56eb7ecb05 (patch) | |
tree | 51763269e44eb9bf4d0f8c529577489902850cf9 /fs/binfmt_flat.c | |
parent | b65d34fd465f19fbe2f32f2205a9a06ca7c2bdeb (diff) |
[PATCH] VFS: change struct file to use struct path
This patch changes struct file to use struct path instead of having
independent pointers to struct dentry and struct vfsmount, and converts all
users of f_{dentry,vfsmnt} in fs/ to use f_path.{dentry,mnt}.
Additionally, it adds two #define's to make the transition easier for users of
the f_dentry and f_vfsmnt.
Signed-off-by: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/binfmt_flat.c')
-rw-r--r-- | fs/binfmt_flat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index a62fd4018a20..ae8595d49856 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c | |||
@@ -429,7 +429,7 @@ static int load_flat_file(struct linux_binprm * bprm, | |||
429 | int ret; | 429 | int ret; |
430 | 430 | ||
431 | hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */ | 431 | hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */ |
432 | inode = bprm->file->f_dentry->d_inode; | 432 | inode = bprm->file->f_path.dentry->d_inode; |
433 | 433 | ||
434 | text_len = ntohl(hdr->data_start); | 434 | text_len = ntohl(hdr->data_start); |
435 | data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); | 435 | data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); |