diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_export.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_export.c | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/fs/xfs/linux-2.6/xfs_export.c b/fs/xfs/linux-2.6/xfs_export.c index f372a1a5e168..3e97076437be 100644 --- a/fs/xfs/linux-2.6/xfs_export.c +++ b/fs/xfs/linux-2.6/xfs_export.c | |||
@@ -1,35 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2004-2005 Silicon Graphics, Inc. All Rights Reserved. | 2 | * Copyright (c) 2004-2005 Silicon Graphics, Inc. |
3 | * All Rights Reserved. | ||
3 | * | 4 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 5 | * This program is free software; you can redistribute it and/or |
5 | * under the terms of version 2 of the GNU General Public License as | 6 | * modify it under the terms of the GNU General Public License as |
6 | * published by the Free Software Foundation. | 7 | * published by the Free Software Foundation. |
7 | * | 8 | * |
8 | * This program is distributed in the hope that it would be useful, but | 9 | * This program is distributed in the hope that it would be useful, |
9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | ||
11 | * | 13 | * |
12 | * Further, this software is distributed without any warranty that it is | 14 | * You should have received a copy of the GNU General Public License |
13 | * free of the rightful claim of any third person regarding infringement | 15 | * along with this program; if not, write the Free Software Foundation, |
14 | * or the like. Any license provided herein, whether implied or | 16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
15 | * otherwise, applies only to this software file. Patent licenses, if | ||
16 | * any, provided herein do not apply to combinations of this program with | ||
17 | * other software, or any other product whatsoever. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License along | ||
20 | * with this program; if not, write the Free Software Foundation, Inc., 59 | ||
21 | * Temple Place - Suite 330, Boston MA 02111-1307, USA. | ||
22 | * | ||
23 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, | ||
24 | * Mountain View, CA 94043, or: | ||
25 | * | ||
26 | * http://www.sgi.com | ||
27 | * | ||
28 | * For further information regarding this notice, see: | ||
29 | * | ||
30 | * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ | ||
31 | */ | 17 | */ |
32 | |||
33 | #include "xfs.h" | 18 | #include "xfs.h" |
34 | #include "xfs_types.h" | 19 | #include "xfs_types.h" |
35 | #include "xfs_dmapi.h" | 20 | #include "xfs_dmapi.h" |
@@ -41,7 +26,7 @@ | |||
41 | #include "xfs_export.h" | 26 | #include "xfs_export.h" |
42 | 27 | ||
43 | /* | 28 | /* |
44 | * XFS encode and decodes the fileid portion of NFS filehandles | 29 | * XFS encodes and decodes the fileid portion of NFS filehandles |
45 | * itself instead of letting the generic NFS code do it. This | 30 | * itself instead of letting the generic NFS code do it. This |
46 | * allows filesystems with 64 bit inode numbers to be exported. | 31 | * allows filesystems with 64 bit inode numbers to be exported. |
47 | * | 32 | * |
@@ -51,7 +36,6 @@ | |||
51 | * remains in that code. | 36 | * remains in that code. |
52 | */ | 37 | */ |
53 | 38 | ||
54 | |||
55 | STATIC struct dentry * | 39 | STATIC struct dentry * |
56 | linvfs_decode_fh( | 40 | linvfs_decode_fh( |
57 | struct super_block *sb, | 41 | struct super_block *sb, |
@@ -92,7 +76,7 @@ linvfs_decode_fh( | |||
92 | p = xfs_fileid_decode_fid2(p, &pfid, is64); | 76 | p = xfs_fileid_decode_fid2(p, &pfid, is64); |
93 | parent = &pfid; | 77 | parent = &pfid; |
94 | } | 78 | } |
95 | 79 | ||
96 | fh = (__u32 *)&ifid; | 80 | fh = (__u32 *)&ifid; |
97 | return find_exported_dentry(sb, fh, parent, acceptable, context); | 81 | return find_exported_dentry(sb, fh, parent, acceptable, context); |
98 | } | 82 | } |
@@ -113,7 +97,7 @@ linvfs_encode_fh( | |||
113 | #if XFS_BIG_INUMS | 97 | #if XFS_BIG_INUMS |
114 | vfs_t *vfs = LINVFS_GET_VFS(inode->i_sb); | 98 | vfs_t *vfs = LINVFS_GET_VFS(inode->i_sb); |
115 | xfs_mount_t *mp = XFS_VFSTOM(vfs); | 99 | xfs_mount_t *mp = XFS_VFSTOM(vfs); |
116 | 100 | ||
117 | if (!(mp->m_flags & XFS_MOUNT_32BITINOOPT)) { | 101 | if (!(mp->m_flags & XFS_MOUNT_32BITINOOPT)) { |
118 | /* filesystem may contain 64bit inode numbers */ | 102 | /* filesystem may contain 64bit inode numbers */ |
119 | is64 = XFS_FILEID_TYPE_64FLAG; | 103 | is64 = XFS_FILEID_TYPE_64FLAG; |