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
Kirill Smelkov
linux
Commits
f4d91699
Commit
f4d91699
authored
Sep 28, 2003
by
Andries E. Brouwer
Committed by
Linus Torvalds
Sep 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ext3 sparse fixes
parent
120a9cd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
fs/ext3/file.c
fs/ext3/file.c
+4
-4
fs/ext3/symlink.c
fs/ext3/symlink.c
+2
-1
No files found.
fs/ext3/file.c
View file @
f4d91699
...
@@ -47,7 +47,7 @@ static int ext3_release_file (struct inode * inode, struct file * filp)
...
@@ -47,7 +47,7 @@ static int ext3_release_file (struct inode * inode, struct file * filp)
* the caller didn't specify O_LARGEFILE. On 64bit systems we force
* the caller didn't specify O_LARGEFILE. On 64bit systems we force
* on this flag in sys_open.
* on this flag in sys_open.
*/
*/
static
int
ext3_open_file
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
ext3_open_file
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
{
if
(
!
(
filp
->
f_flags
&
O_LARGEFILE
)
&&
if
(
!
(
filp
->
f_flags
&
O_LARGEFILE
)
&&
inode
->
i_size
>
0x7FFFFFFFLL
)
inode
->
i_size
>
0x7FFFFFFFLL
)
...
@@ -56,7 +56,7 @@ static int ext3_open_file (struct inode * inode, struct file * filp)
...
@@ -56,7 +56,7 @@ static int ext3_open_file (struct inode * inode, struct file * filp)
}
}
static
ssize_t
static
ssize_t
ext3_file_write
(
struct
kiocb
*
iocb
,
const
char
*
buf
,
size_t
count
,
loff_t
pos
)
ext3_file_write
(
struct
kiocb
*
iocb
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
pos
)
{
{
struct
file
*
file
=
iocb
->
ki_filp
;
struct
file
*
file
=
iocb
->
ki_filp
;
struct
inode
*
inode
=
file
->
f_dentry
->
d_inode
;
struct
inode
*
inode
=
file
->
f_dentry
->
d_inode
;
...
@@ -117,8 +117,8 @@ struct file_operations ext3_file_operations = {
...
@@ -117,8 +117,8 @@ struct file_operations ext3_file_operations = {
.
llseek
=
generic_file_llseek
,
.
llseek
=
generic_file_llseek
,
.
read
=
do_sync_read
,
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
write
=
do_sync_write
,
.
aio_read
=
generic_file_aio_read
,
.
aio_read
=
generic_file_aio_read
,
.
aio_write
=
ext3_file_write
,
.
aio_write
=
ext3_file_write
,
.
readv
=
generic_file_readv
,
.
readv
=
generic_file_readv
,
.
writev
=
generic_file_writev
,
.
writev
=
generic_file_writev
,
.
ioctl
=
ext3_ioctl
,
.
ioctl
=
ext3_ioctl
,
...
...
fs/ext3/symlink.c
View file @
f4d91699
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
#include <linux/ext3_fs.h>
#include <linux/ext3_fs.h>
#include "xattr.h"
#include "xattr.h"
static
int
ext3_readlink
(
struct
dentry
*
dentry
,
char
*
buffer
,
int
buflen
)
static
int
ext3_readlink
(
struct
dentry
*
dentry
,
char
__user
*
buffer
,
int
buflen
)
{
{
struct
ext3_inode_info
*
ei
=
EXT3_I
(
dentry
->
d_inode
);
struct
ext3_inode_info
*
ei
=
EXT3_I
(
dentry
->
d_inode
);
return
vfs_readlink
(
dentry
,
buffer
,
buflen
,
(
char
*
)
ei
->
i_data
);
return
vfs_readlink
(
dentry
,
buffer
,
buflen
,
(
char
*
)
ei
->
i_data
);
...
...
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