summaryrefslogtreecommitdiff
path: root/libdiskfs/file-getfh.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-10-01 16:40:53 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-10-01 16:40:53 +0000
commit4d938ee327be3f4cd049dc431b994e99a90f74e6 (patch)
treecf0c3967ec272f8058cf00a5333645cdeedc9e39 /libdiskfs/file-getfh.c
parent599cda474689188313075e23a5c801d90dc55e8b (diff)
2001-10-01 Marcus Brinkmann <marcus@gnu.org>
* file-getfh.c (diskfs_S_file_getfh): Fix tag of diskfs_fhandle. Submitted by Maurizio Boriani <baux@debian.org>.
Diffstat (limited to 'libdiskfs/file-getfh.c')
-rw-r--r--libdiskfs/file-getfh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-getfh.c b/libdiskfs/file-getfh.c
index a2dbb045..65029c1a 100644
--- a/libdiskfs/file-getfh.c
+++ b/libdiskfs/file-getfh.c
@@ -43,8 +43,8 @@ diskfs_S_file_getfh (struct protid *cred, char **fh, unsigned *fh_len)
mutex_lock (&node->lock);
- if (*fh_len < sizeof (struct diskfs_fhandle))
- *fh = mmap (0, sizeof (struct diskfs_fhandle), PROT_READ|PROT_WRITE,
+ if (*fh_len < sizeof (union diskfs_fhandle))
+ *fh = mmap (0, sizeof (union diskfs_fhandle), PROT_READ|PROT_WRITE,
MAP_ANON, 0, 0);
*fh_len = sizeof *f;