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
e088a1dc
Commit
e088a1dc
authored
Dec 17, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/for-alan
parents
2780940f
91ec8aa9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
5 deletions
+15
-5
fs/afs/file.c
fs/afs/file.c
+1
-1
fs/befs/linuxvfs.c
fs/befs/linuxvfs.c
+1
-1
fs/jffs/inode-v23.c
fs/jffs/inode-v23.c
+1
-1
fs/jffs2/file.c
fs/jffs2/file.c
+1
-1
fs/read_write.c
fs/read_write.c
+1
-1
include/linux/fs.h
include/linux/fs.h
+1
-0
kernel/ksyms.c
kernel/ksyms.c
+1
-0
mm/filemap.c
mm/filemap.c
+8
-0
No files found.
fs/afs/file.c
View file @
e088a1dc
...
...
@@ -37,7 +37,7 @@ struct inode_operations afs_file_inode_operations = {
struct
file_operations
afs_file_file_operations
=
{
.
read
=
generic_file_read
,
.
write
=
afs_file_write
,
.
mmap
=
generic_file_mmap
,
.
mmap
=
generic_file_
readonly_
mmap
,
#if 0
.open = afs_file_open,
.release = afs_file_release,
...
...
fs/befs/linuxvfs.c
View file @
e088a1dc
...
...
@@ -74,7 +74,7 @@ struct inode_operations befs_dir_inode_operations = {
struct
file_operations
befs_file_operations
=
{
.
llseek
=
default_llseek
,
.
read
=
generic_file_read
,
.
mmap
=
generic_file_mmap
,
.
mmap
=
generic_file_
readonly_
mmap
,
};
struct
address_space_operations
befs_aops
=
{
...
...
fs/jffs/inode-v23.c
View file @
e088a1dc
...
...
@@ -1641,7 +1641,7 @@ static struct file_operations jffs_file_operations =
.
read
=
generic_file_read
,
.
write
=
generic_file_write
,
.
ioctl
=
jffs_ioctl
,
.
mmap
=
generic_file_mmap
,
.
mmap
=
generic_file_
readonly_
mmap
,
.
fsync
=
jffs_fsync
,
.
sendfile
=
generic_file_sendfile
,
};
...
...
fs/jffs2/file.c
View file @
e088a1dc
...
...
@@ -58,7 +58,7 @@ struct file_operations jffs2_file_operations =
.
read
=
generic_file_read
,
.
write
=
generic_file_write
,
.
ioctl
=
jffs2_ioctl
,
.
mmap
=
generic_file_mmap
,
.
mmap
=
generic_file_
readonly_
mmap
,
.
fsync
=
jffs2_fsync
,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,29)
.
sendfile
=
generic_file_sendfile
...
...
fs/read_write.c
View file @
e088a1dc
...
...
@@ -19,7 +19,7 @@
struct
file_operations
generic_ro_fops
=
{
.
llseek
=
generic_file_llseek
,
.
read
=
generic_file_read
,
.
mmap
=
generic_file_mmap
,
.
mmap
=
generic_file_
readonly_
mmap
,
.
sendfile
=
generic_file_sendfile
,
};
...
...
include/linux/fs.h
View file @
e088a1dc
...
...
@@ -1233,6 +1233,7 @@ extern int sb_set_blocksize(struct super_block *, int);
extern
int
sb_min_blocksize
(
struct
super_block
*
,
int
);
extern
int
generic_file_mmap
(
struct
file
*
,
struct
vm_area_struct
*
);
extern
int
generic_file_readonly_mmap
(
struct
file
*
,
struct
vm_area_struct
*
);
extern
int
file_read_actor
(
read_descriptor_t
*
desc
,
struct
page
*
page
,
unsigned
long
offset
,
unsigned
long
size
);
extern
int
file_send_actor
(
read_descriptor_t
*
desc
,
struct
page
*
page
,
unsigned
long
offset
,
unsigned
long
size
);
extern
ssize_t
generic_file_read
(
struct
file
*
,
char
*
,
size_t
,
loff_t
*
);
...
...
kernel/ksyms.c
View file @
e088a1dc
...
...
@@ -228,6 +228,7 @@ EXPORT_SYMBOL(file_ra_state_init);
EXPORT_SYMBOL
(
generic_file_write
);
EXPORT_SYMBOL
(
generic_file_write_nolock
);
EXPORT_SYMBOL
(
generic_file_mmap
);
EXPORT_SYMBOL
(
generic_file_readonly_mmap
);
EXPORT_SYMBOL
(
generic_ro_fops
);
EXPORT_SYMBOL
(
file_lock_list
);
EXPORT_SYMBOL
(
locks_init_lock
);
...
...
mm/filemap.c
View file @
e088a1dc
...
...
@@ -1293,6 +1293,14 @@ int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
vma
->
vm_ops
=
&
generic_file_vm_ops
;
return
0
;
}
int
generic_file_readonly_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
)
{
if
((
vma
->
vm_flags
&
VM_SHARED
)
&&
(
vma
->
vm_flags
&
VM_WRITE
))
return
-
EINVAL
;
vma
->
vm_flags
&=
~
VM_MAYWRITE
;
return
generic_file_mmap
(
file
,
vma
);
}
#else
int
generic_file_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
)
{
...
...
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