Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
17b2b36e
Commit
17b2b36e
authored
Mar 04, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Sort out some minor differences between trees.
parent
9004fd8a
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
24 deletions
+20
-24
fs/xfs/Makefile
fs/xfs/Makefile
+3
-7
fs/xfs/linux/xfs_linux.h
fs/xfs/linux/xfs_linux.h
+1
-0
fs/xfs/linux/xfs_lrw.c
fs/xfs/linux/xfs_lrw.c
+5
-5
fs/xfs/linux/xfs_super.h
fs/xfs/linux/xfs_super.h
+2
-0
fs/xfs/linux/xfs_vfs.c
fs/xfs/linux/xfs_vfs.c
+0
-1
fs/xfs/xfs_dmops.c
fs/xfs/xfs_dmops.c
+1
-1
fs/xfs/xfs_mount.h
fs/xfs/xfs_mount.h
+2
-2
fs/xfs/xfs_qmops.c
fs/xfs/xfs_qmops.c
+1
-1
fs/xfs/xfs_quota.h
fs/xfs/xfs_quota.h
+0
-3
fs/xfs/xfs_vfsops.c
fs/xfs/xfs_vfsops.c
+5
-4
No files found.
fs/xfs/Makefile
View file @
17b2b36e
...
@@ -54,10 +54,6 @@ endif
...
@@ -54,10 +54,6 @@ endif
obj-$(CONFIG_XFS_FS)
+=
xfs.o
obj-$(CONFIG_XFS_FS)
+=
xfs.o
ifneq
($(CONFIG_XFS_DMAPI),y)
xfs-y
+=
xfs_dmops.o
endif
xfs-$(CONFIG_XFS_QUOTA)
+=
$(
addprefix
quota/,
\
xfs-$(CONFIG_XFS_QUOTA)
+=
$(
addprefix
quota/,
\
xfs_dquot.o
\
xfs_dquot.o
\
xfs_dquot_item.o
\
xfs_dquot_item.o
\
...
@@ -67,8 +63,6 @@ xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
...
@@ -67,8 +63,6 @@ xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
xfs_qm.o
)
xfs_qm.o
)
ifeq
($(CONFIG_XFS_QUOTA),y)
ifeq
($(CONFIG_XFS_QUOTA),y)
xfs-$(CONFIG_PROC_FS)
+=
quota/xfs_qm_stats.o
xfs-$(CONFIG_PROC_FS)
+=
quota/xfs_qm_stats.o
else
xfs-y
+=
xfs_qmops.o
endif
endif
xfs-$(CONFIG_XFS_RT)
+=
xfs_rtalloc.o
xfs-$(CONFIG_XFS_RT)
+=
xfs_rtalloc.o
...
@@ -124,7 +118,9 @@ xfs-y += xfs_alloc.o \
...
@@ -124,7 +118,9 @@ xfs-y += xfs_alloc.o \
xfs_utils.o
\
xfs_utils.o
\
xfs_vfsops.o
\
xfs_vfsops.o
\
xfs_vnodeops.o
\
xfs_vnodeops.o
\
xfs_rw.o
xfs_rw.o
\
xfs_dmops.o
\
xfs_qmops.o
xfs-$(CONFIG_XFS_TRACE)
+=
xfs_dir2_trace.o
xfs-$(CONFIG_XFS_TRACE)
+=
xfs_dir2_trace.o
...
...
fs/xfs/linux/xfs_linux.h
View file @
17b2b36e
...
@@ -85,6 +85,7 @@
...
@@ -85,6 +85,7 @@
#include <linux/seq_file.h>
#include <linux/seq_file.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
#include <linux/version.h>
#include <asm/page.h>
#include <asm/page.h>
#include <asm/div64.h>
#include <asm/div64.h>
...
...
fs/xfs/linux/xfs_lrw.c
View file @
17b2b36e
...
@@ -333,14 +333,14 @@ xfs_read(
...
@@ -333,14 +333,14 @@ xfs_read(
if
(
DM_EVENT_ENABLED
(
vp
->
v_vfsp
,
ip
,
DM_EVENT_READ
)
&&
if
(
DM_EVENT_ENABLED
(
vp
->
v_vfsp
,
ip
,
DM_EVENT_READ
)
&&
!
(
ioflags
&
IO_INVIS
))
{
!
(
ioflags
&
IO_INVIS
))
{
int
error
;
vrwlock_t
locktype
=
VRWLOCK_READ
;
vrwlock_t
locktype
=
VRWLOCK_READ
;
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_READ
,
BHV_TO_VNODE
(
bdp
),
*
offset
,
size
,
ret
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_READ
,
BHV_TO_VNODE
(
bdp
),
*
offset
,
size
,
FILP_DELAY_FLAG
(
file
),
&
locktype
);
FILP_DELAY_FLAG
(
file
),
&
locktype
);
if
(
error
)
{
if
(
ret
)
{
xfs_iunlock
(
ip
,
XFS_IOLOCK_SHARED
);
xfs_iunlock
(
ip
,
XFS_IOLOCK_SHARED
);
return
-
error
;
return
-
ret
;
}
}
}
}
...
...
fs/xfs/linux/xfs_super.h
View file @
17b2b36e
...
@@ -44,6 +44,8 @@
...
@@ -44,6 +44,8 @@
#ifdef CONFIG_XFS_QUOTA
#ifdef CONFIG_XFS_QUOTA
# define vfs_insertquota(vfs) vfs_insertops(vfsp, &xfs_qmops)
# define vfs_insertquota(vfs) vfs_insertops(vfsp, &xfs_qmops)
extern
void
xfs_qm_init
(
void
);
extern
void
xfs_qm_exit
(
void
);
# define vfs_initquota() xfs_qm_init()
# define vfs_initquota() xfs_qm_init()
# define vfs_exitquota() xfs_qm_exit()
# define vfs_exitquota() xfs_qm_exit()
#else
#else
...
...
fs/xfs/linux/xfs_vfs.c
View file @
17b2b36e
...
@@ -117,7 +117,6 @@ vfs_mntupdate(
...
@@ -117,7 +117,6 @@ vfs_mntupdate(
return
((
*
bhvtovfsops
(
next
)
->
vfs_mntupdate
)(
next
,
fl
,
args
));
return
((
*
bhvtovfsops
(
next
)
->
vfs_mntupdate
)(
next
,
fl
,
args
));
}
}
int
int
vfs_root
(
vfs_root
(
struct
bhv_desc
*
bdp
,
struct
bhv_desc
*
bdp
,
...
...
fs/xfs/xfs_dmops.c
View file @
17b2b36e
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
#include "xfs_dmapi.h"
#include "xfs_dmapi.h"
#include "xfs_mount.h"
#include "xfs_mount.h"
xfs_dmops_t
xfs_dmcore_
xfs
=
{
xfs_dmops_t
xfs_dmcore_
stub
=
{
.
xfs_send_data
=
(
xfs_send_data_t
)
fs_nosys
,
.
xfs_send_data
=
(
xfs_send_data_t
)
fs_nosys
,
.
xfs_send_mmap
=
(
xfs_send_mmap_t
)
fs_noerr
,
.
xfs_send_mmap
=
(
xfs_send_mmap_t
)
fs_noerr
,
.
xfs_send_destroy
=
(
xfs_send_destroy_t
)
fs_nosys
,
.
xfs_send_destroy
=
(
xfs_send_destroy_t
)
fs_nosys
,
...
...
fs/xfs/xfs_mount.h
View file @
17b2b36e
...
@@ -571,8 +571,8 @@ extern void xfs_check_frozen(xfs_mount_t *, bhv_desc_t *, int);
...
@@ -571,8 +571,8 @@ extern void xfs_check_frozen(xfs_mount_t *, bhv_desc_t *, int);
extern
struct
vfsops
xfs_vfsops
;
extern
struct
vfsops
xfs_vfsops
;
extern
struct
vnodeops
xfs_vnodeops
;
extern
struct
vnodeops
xfs_vnodeops
;
extern
struct
xfs_dmops
xfs_dmcore_
xfs
;
extern
struct
xfs_dmops
xfs_dmcore_
stub
;
extern
struct
xfs_qmops
xfs_qmcore_
xfs
;
extern
struct
xfs_qmops
xfs_qmcore_
stub
;
extern
struct
xfs_ioops
xfs_iocore_xfs
;
extern
struct
xfs_ioops
xfs_iocore_xfs
;
extern
int
xfs_init
(
void
);
extern
int
xfs_init
(
void
);
...
...
fs/xfs/xfs_qmops.c
View file @
17b2b36e
...
@@ -54,7 +54,7 @@ xfs_dqvopchown_default(
...
@@ -54,7 +54,7 @@ xfs_dqvopchown_default(
return
NULL
;
return
NULL
;
}
}
xfs_qmops_t
xfs_qmcore_
xfs
=
{
xfs_qmops_t
xfs_qmcore_
stub
=
{
.
xfs_qminit
=
(
xfs_qminit_t
)
fs_noerr
,
.
xfs_qminit
=
(
xfs_qminit_t
)
fs_noerr
,
.
xfs_qmdone
=
(
xfs_qmdone_t
)
fs_noerr
,
.
xfs_qmdone
=
(
xfs_qmdone_t
)
fs_noerr
,
.
xfs_qmmount
=
(
xfs_qmmount_t
)
fs_noerr
,
.
xfs_qmmount
=
(
xfs_qmmount_t
)
fs_noerr
,
...
...
fs/xfs/xfs_quota.h
View file @
17b2b36e
...
@@ -347,9 +347,6 @@ extern int xfs_qm_dqcheck(xfs_disk_dquot_t *, xfs_dqid_t, uint, uint, char *);
...
@@ -347,9 +347,6 @@ extern int xfs_qm_dqcheck(xfs_disk_dquot_t *, xfs_dqid_t, uint, uint, char *);
extern
struct
bhv_vfsops
xfs_qmops
;
extern
struct
bhv_vfsops
xfs_qmops
;
extern
void
xfs_qm_init
(
void
);
extern
void
xfs_qm_exit
(
void
);
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
#endif
/* __XFS_QUOTA_H__ */
#endif
/* __XFS_QUOTA_H__ */
fs/xfs/xfs_vfsops.c
View file @
17b2b36e
...
@@ -451,9 +451,9 @@ xfs_mount(
...
@@ -451,9 +451,9 @@ xfs_mount(
* Setup xfs_mount function vectors from available behaviors
* Setup xfs_mount function vectors from available behaviors
*/
*/
p
=
vfs_bhv_lookup
(
vfsp
,
VFS_POSITION_DM
);
p
=
vfs_bhv_lookup
(
vfsp
,
VFS_POSITION_DM
);
mp
->
m_dm_ops
=
p
?
*
(
xfs_dmops_t
*
)
vfs_bhv_custom
(
p
)
:
xfs_dmcore_
xfs
;
mp
->
m_dm_ops
=
p
?
*
(
xfs_dmops_t
*
)
vfs_bhv_custom
(
p
)
:
xfs_dmcore_
stub
;
p
=
vfs_bhv_lookup
(
vfsp
,
VFS_POSITION_QM
);
p
=
vfs_bhv_lookup
(
vfsp
,
VFS_POSITION_QM
);
mp
->
m_qm_ops
=
p
?
*
(
xfs_qmops_t
*
)
vfs_bhv_custom
(
p
)
:
xfs_qmcore_
xfs
;
mp
->
m_qm_ops
=
p
?
*
(
xfs_qmops_t
*
)
vfs_bhv_custom
(
p
)
:
xfs_qmcore_
stub
;
p
=
vfs_bhv_lookup
(
vfsp
,
VFS_POSITION_IO
);
p
=
vfs_bhv_lookup
(
vfsp
,
VFS_POSITION_IO
);
mp
->
m_io_ops
=
p
?
*
(
xfs_ioops_t
*
)
vfs_bhv_custom
(
p
)
:
xfs_iocore_xfs
;
mp
->
m_io_ops
=
p
?
*
(
xfs_ioops_t
*
)
vfs_bhv_custom
(
p
)
:
xfs_iocore_xfs
;
...
@@ -792,8 +792,9 @@ xfs_statvfs(
...
@@ -792,8 +792,9 @@ xfs_statvfs(
#if XFS_BIG_INUMS
#if XFS_BIG_INUMS
if
(
!
mp
->
m_inoadd
)
if
(
!
mp
->
m_inoadd
)
#endif
#endif
statp
->
f_files
=
statp
->
f_files
=
min_t
(
typeof
(
statp
->
f_files
),
min_t
(
sector_t
,
statp
->
f_files
,
mp
->
m_maxicount
);
statp
->
f_files
,
mp
->
m_maxicount
);
statp
->
f_ffree
=
statp
->
f_files
-
(
sbp
->
sb_icount
-
sbp
->
sb_ifree
);
statp
->
f_ffree
=
statp
->
f_files
-
(
sbp
->
sb_icount
-
sbp
->
sb_ifree
);
XFS_SB_UNLOCK
(
mp
,
s
);
XFS_SB_UNLOCK
(
mp
,
s
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment