aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-07-13 19:27:05 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-13 19:27:05 -0700
commit6dd25783fc99ae77841f146eff2cb3835f723e90 (patch)
treedc14f6043ef21892992d3429a88b1a8693696fcb /fs
parent3d42bd9dedf5d7d9663b3716b92320601da777b0 (diff)
downloadhistory-6dd25783fc99ae77841f146eff2cb3835f723e90.tar.gz
[PATCH] remove struct_cpy()
Only two architectures implement it, so afs broke the build. Remove struct_cpy() altogether, and use structure assignments. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/afs/mntpt.c2
-rw-r--r--fs/afs/vlocation.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c
index bdc179d3761bb5..8b5c1e2e50b024 100644
--- a/fs/afs/mntpt.c
+++ b/fs/afs/mntpt.c
@@ -250,7 +250,7 @@ static int afs_mntpt_follow_link(struct dentry *dentry, struct nameidata *nd)
if (IS_ERR(newmnt))
return PTR_ERR(newmnt);
- struct_cpy(&newnd, nd);
+ newnd = *nd;
newnd.dentry = dentry;
err = do_add_mount(newmnt, &newnd, 0, &afs_vfsmounts);
diff --git a/fs/afs/vlocation.c b/fs/afs/vlocation.c
index 9cff6b68707048..c7396ca082ecaa 100644
--- a/fs/afs/vlocation.c
+++ b/fs/afs/vlocation.c
@@ -906,7 +906,7 @@ static cachefs_match_val_t afs_vlocation_cache_match(void *target,
if (!vlocation->valid ||
vlocation->vldb.rtime == vldb->rtime
) {
- struct_cpy(&vlocation->vldb, vldb);
+ vlocation->vldb = *vldb;
vlocation->valid = 1;
_leave(" = SUCCESS [c->m]");
return CACHEFS_MATCH_SUCCESS;
@@ -947,7 +947,7 @@ static void afs_vlocation_cache_update(void *source, void *entry)
_enter("");
- struct_cpy(vldb,&vlocation->vldb);
+ *vldb = vlocation->vldb;
} /* end afs_vlocation_cache_update() */
#endif