lkml.org 
[lkml]   [2004]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] 2.6.8-rc1 fix AFS struct_cpy use which break !X86

Yep, that fixed it, we'll wait for the original patch to be merged.

see
http://lkml.org/lkml/2004/7/12/176
for the original thread and patch.

Thanks
Darren

> Ok, what about the following patch ?
>
> Index: fs/afs/mntpt.c
> ===================================================================
> --- fs/afs/mntpt.c (revision 1)
> +++ fs/afs/mntpt.c (working copy)
> @@ -257,7 +257,7 @@
> 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);
>
> Index: fs/afs/vlocation.c
> ===================================================================
> --- fs/afs/vlocation.c (revision 1)
> +++ fs/afs/vlocation.c (working copy)
> @@ -906,7 +906,7 @@
> 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 @@
>
> _enter("");
>
> - struct_cpy(vldb,&vlocation->vldb);
> + *vldb = vlocation->vldb;
>
> } /* end afs_vlocation_cache_update() */
> #endif


--------------------------------------------------
Darren Williams <dsw AT gelato.unsw.edu.au>
Gelato@UNSW <www.gelato.unsw.edu.au>
--------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.133 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site