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
35d30e0d
Commit
35d30e0d
authored
Sep 25, 2003
by
Dean Roehrich
Committed by
Stephen Lord
Sep 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Make dm_send_data_event use vp rather than bhv
SGI Modid: 2.5.x-xfs:slinx:158840a
parent
9aca0442
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
fs/xfs/linux/xfs_lrw.c
fs/xfs/linux/xfs_lrw.c
+2
-2
fs/xfs/xfs_bmap.c
fs/xfs/xfs_bmap.c
+1
-1
fs/xfs/xfs_mount.h
fs/xfs/xfs_mount.h
+3
-3
fs/xfs/xfs_vnodeops.c
fs/xfs/xfs_vnodeops.c
+3
-3
No files found.
fs/xfs/linux/xfs_lrw.c
View file @
35d30e0d
...
...
@@ -218,7 +218,7 @@ xfs_read(
int
error
;
vrwlock_t
locktype
=
VRWLOCK_READ
;
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_READ
,
bdp
,
*
offset
,
size
,
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_READ
,
BHV_TO_VNODE
(
bdp
)
,
*
offset
,
size
,
FILP_DELAY_FLAG
(
file
),
&
locktype
);
if
(
error
)
{
xfs_iunlock
(
ip
,
XFS_IOLOCK_SHARED
);
...
...
@@ -612,7 +612,7 @@ xfs_write(
loff_t
savedsize
=
*
offset
;
xfs_iunlock
(
xip
,
XFS_ILOCK_EXCL
);
error
=
XFS_SEND_DATA
(
xip
->
i_mount
,
DM_EVENT_WRITE
,
bd
p
,
error
=
XFS_SEND_DATA
(
xip
->
i_mount
,
DM_EVENT_WRITE
,
v
p
,
*
offset
,
size
,
FILP_DELAY_FLAG
(
file
),
&
locktype
);
if
(
error
)
{
...
...
fs/xfs/xfs_bmap.c
View file @
35d30e0d
...
...
@@ -5553,7 +5553,7 @@ xfs_getbmap(
&&
DM_EVENT_ENABLED
(
vp
->
v_vfsp
,
ip
,
DM_EVENT_READ
)
&&
whichfork
==
XFS_DATA_FORK
)
{
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_READ
,
bd
p
,
0
,
0
,
0
,
NULL
);
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_READ
,
v
p
,
0
,
0
,
0
,
NULL
);
if
(
error
)
return
XFS_ERROR
(
error
);
}
...
...
fs/xfs/xfs_mount.h
View file @
35d30e0d
...
...
@@ -91,7 +91,7 @@ struct xfs_bmap_free;
* Prototypes and functions for the Data Migration subsystem.
*/
typedef
int
(
*
xfs_send_data_t
)(
int
,
struct
bhv_desc
*
,
typedef
int
(
*
xfs_send_data_t
)(
int
,
struct
vnode
*
,
xfs_off_t
,
size_t
,
int
,
vrwlock_t
*
);
typedef
int
(
*
xfs_send_mmap_t
)(
struct
vm_area_struct
*
,
uint
);
typedef
int
(
*
xfs_send_destroy_t
)(
struct
vnode
*
,
dm_right_t
);
...
...
@@ -109,8 +109,8 @@ typedef struct xfs_dmops {
xfs_send_unmount_t
xfs_send_unmount
;
}
xfs_dmops_t
;
#define XFS_SEND_DATA(mp, ev,
bd
p,off,len,fl,lock) \
(*(mp)->m_dm_ops.xfs_send_data)(ev,
bd
p,off,len,fl,lock)
#define XFS_SEND_DATA(mp, ev,
v
p,off,len,fl,lock) \
(*(mp)->m_dm_ops.xfs_send_data)(ev,
v
p,off,len,fl,lock)
#define XFS_SEND_MMAP(mp, vma,fl) \
(*(mp)->m_dm_ops.xfs_send_mmap)(vma,fl)
#define XFS_SEND_DESTROY(mp, vp,right) \
...
...
fs/xfs/xfs_vnodeops.c
View file @
35d30e0d
...
...
@@ -414,7 +414,7 @@ xfs_setattr(
}
else
{
if
(
DM_EVENT_ENABLED
(
vp
->
v_vfsp
,
ip
,
DM_EVENT_TRUNCATE
)
&&
!
(
flags
&
ATTR_DMI
))
{
code
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_TRUNCATE
,
bd
p
,
code
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_TRUNCATE
,
v
p
,
vap
->
va_size
,
0
,
AT_DELAY_FLAG
(
flags
),
NULL
);
if
(
code
)
{
lock_flags
=
0
;
...
...
@@ -4162,7 +4162,7 @@ xfs_alloc_file_space(
end_dmi_offset
=
offset
+
len
;
if
(
end_dmi_offset
>
ip
->
i_d
.
di_size
)
end_dmi_offset
=
ip
->
i_d
.
di_size
;
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_WRITE
,
XFS_ITO
BH
V
(
ip
),
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_WRITE
,
XFS_ITOV
(
ip
),
offset
,
end_dmi_offset
-
offset
,
0
,
NULL
);
if
(
error
)
...
...
@@ -4409,7 +4409,7 @@ xfs_free_file_space(
DM_EVENT_ENABLED
(
XFS_MTOVFS
(
mp
),
ip
,
DM_EVENT_WRITE
))
{
if
(
end_dmi_offset
>
ip
->
i_d
.
di_size
)
end_dmi_offset
=
ip
->
i_d
.
di_size
;
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_WRITE
,
XFS_ITO
BH
V
(
ip
),
error
=
XFS_SEND_DATA
(
mp
,
DM_EVENT_WRITE
,
XFS_ITOV
(
ip
),
offset
,
end_dmi_offset
-
offset
,
AT_DELAY_FLAG
(
attr_flags
),
NULL
);
if
(
error
)
...
...
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