At 08:00 22/06/2001, Alexander Viro wrote:
[snip]
>diff -urN S6-pre5/include/linux/nfs_fs.h S6-pre5-NFS/include/linux/nfs_fs.h
>--- S6-pre5/include/linux/nfs_fs.h Sat Jun 16 15:53:57 2001
>+++ S6-pre5-NFS/include/linux/nfs_fs.h Fri Jun 22 00:21:50 2001
>@@ -63,39 +63,44 @@
> */
> #define NFS_SUPER_MAGIC 0x6969
>
>-#define NFS_FH(inode) (&(inode)->u.nfs_i.fh)
>+static inline struct nfs_inode_info *NFS_I(struct inode *inode)
>+{
>+ return (struct nfs_inode_info *)inode->u.generic_ip;
>+}
>+
>+#define NFS_FH(inode) (&NFS_I(inode)->fh)
Al,
Just as a matter of interest: why do you define NFS_I as a static inline
function while you leave NFS_FS as a preprocessor macro? I assume there is
some good reason I am missing to do this... (could it be side effects?)
TIA,
Anton
--
"Nothing succeeds like success." - Alexandre Dumas
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS Maintainer / WWW: http://sf.net/projects/linux-ntfs/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]