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
3f4e11da
Commit
3f4e11da
authored
Jan 09, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Abstract sendfile operation out, supporting multiple kernels more easily.
SGI Modid: 2.5.x-xfs:slinx:162329a
parent
26d0eaef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
fs/xfs/linux/xfs_linux.h
fs/xfs/linux/xfs_linux.h
+6
-0
fs/xfs/xfs_vnodeops.c
fs/xfs/xfs_vnodeops.c
+2
-0
No files found.
fs/xfs/linux/xfs_linux.h
View file @
3f4e11da
...
@@ -69,6 +69,12 @@
...
@@ -69,6 +69,12 @@
#include <pagebuf/page_buf.h>
#include <pagebuf/page_buf.h>
/*
* Feature macros (disable/enable)
*/
#undef HAVE_REFCACHE
/* reference cache not needed for NFS in 2.6 */
#define HAVE_SENDFILE
/* sendfile(2) exists in 2.6, but not in 2.4 */
/*
/*
* State flag for unwritten extent buffers.
* State flag for unwritten extent buffers.
*
*
...
...
fs/xfs/xfs_vnodeops.c
View file @
3f4e11da
...
@@ -4767,7 +4767,9 @@ vnodeops_t xfs_vnodeops = {
...
@@ -4767,7 +4767,9 @@ vnodeops_t xfs_vnodeops = {
BHV_IDENTITY_INIT
(
VN_BHV_XFS
,
VNODE_POSITION_XFS
),
BHV_IDENTITY_INIT
(
VN_BHV_XFS
,
VNODE_POSITION_XFS
),
.
vop_open
=
xfs_open
,
.
vop_open
=
xfs_open
,
.
vop_read
=
xfs_read
,
.
vop_read
=
xfs_read
,
#ifdef HAVE_SENDFILE
.
vop_sendfile
=
xfs_sendfile
,
.
vop_sendfile
=
xfs_sendfile
,
#endif
.
vop_write
=
xfs_write
,
.
vop_write
=
xfs_write
,
.
vop_ioctl
=
xfs_ioctl
,
.
vop_ioctl
=
xfs_ioctl
,
.
vop_getattr
=
xfs_getattr
,
.
vop_getattr
=
xfs_getattr
,
...
...
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