patch-2.4.27 linux-2.4.27/fs/hpfs/hpfs_fn.h

Next file: linux-2.4.27/fs/hpfs/inode.c
Previous file: linux-2.4.27/fs/hpfs/hpfs.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/fs/hpfs/hpfs_fn.h linux-2.4.27/fs/hpfs/hpfs_fn.h
@@ -27,9 +27,6 @@
 
 #include "hpfs.h"
 
-#define memcpy_tofs memcpy
-#define memcpy_fromfs memcpy
-
 #define EIOERROR  EIO
 #define EFSERROR  EPERM
 #define EMEMERROR ENOMEM
@@ -121,12 +118,12 @@
 
 extern inline struct extended_attribute *fnode_ea(struct fnode *fnode)
 {
-	return (struct extended_attribute *)((char *)fnode + fnode->ea_offs);
+	return (struct extended_attribute *)((char *)fnode + fnode->ea_offs + fnode->acl_size_s);
 }
 
 extern inline struct extended_attribute *fnode_end_ea(struct fnode *fnode)
 {
-	return (struct extended_attribute *)((char *)fnode + fnode->ea_offs + fnode->ea_size_s);
+	return (struct extended_attribute *)((char *)fnode + fnode->ea_offs + fnode->acl_size_s + fnode->ea_size_s);
 }
 
 extern inline struct extended_attribute *next_ea(struct extended_attribute *ea)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)