Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
cbe3802b
Commit
cbe3802b
authored
Apr 15, 2009
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert "use cifs_file_aio_read instead of generic_file_aio_read in all sources"
parent
391aadd2
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
196 deletions
+11
-196
cifsfs.c
sources/2.6.16/cifsfs.c
+1
-18
cifsfs.c
sources/2.6.23/cifsfs.c
+1
-18
cifsfs.c
sources/2.6.24/cifsfs.c
+1
-18
cifsfs.c
sources/2.6.25/cifsfs.c
+1
-18
cifsfs.c
sources/2.6.26/cifsfs.c
+1
-18
cifsfs.c
sources/2.6.27/cifsfs.c
+1
-17
cifsfs.c
sources/2.6.28/cifsfs.c
+1
-18
cifsfs.c
sources/2.6.29/cifsfs.c
+1
-18
cifsfs.c
sources/centos52/cifsfs.c
+1
-18
cifsfs.c
sources/centos53/cifsfs.c
+1
-17
cifsfs.c
sources/legacy/cifsfs.c
+1
-18
No files found.
sources/2.6.16/cifsfs.c
View file @
cbe3802b
...
...
@@ -621,23 +621,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const char __user *buf,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -732,7 +715,7 @@ struct file_operations cifs_file_ops = {
.
readv
=
generic_file_readv
,
.
writev
=
cifs_file_writev
,
#endif
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/2.6.23/cifsfs.c
View file @
cbe3802b
...
...
@@ -536,23 +536,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -633,7 +616,7 @@ const struct inode_operations cifs_symlink_inode_ops = {
const
struct
file_operations
cifs_file_ops
=
{
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/2.6.24/cifsfs.c
View file @
cbe3802b
...
...
@@ -535,23 +535,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -632,7 +615,7 @@ const struct inode_operations cifs_symlink_inode_ops = {
const
struct
file_operations
cifs_file_ops
=
{
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/2.6.25/cifsfs.c
View file @
cbe3802b
...
...
@@ -573,23 +573,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -670,7 +653,7 @@ const struct inode_operations cifs_symlink_inode_ops = {
const
struct
file_operations
cifs_file_ops
=
{
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/2.6.26/cifsfs.c
View file @
cbe3802b
...
...
@@ -600,23 +600,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -697,7 +680,7 @@ const struct inode_operations cifs_symlink_inode_ops = {
const
struct
file_operations
cifs_file_ops
=
{
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/2.6.27/cifsfs.c
View file @
cbe3802b
...
...
@@ -601,22 +601,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -697,7 +681,7 @@ const struct inode_operations cifs_symlink_inode_ops = {
const
struct
file_operations
cifs_file_ops
=
{
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/2.6.28/cifsfs.c
View file @
cbe3802b
...
...
@@ -605,23 +605,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -733,7 +716,7 @@ const struct inode_operations cifs_symlink_inode_ops = {
const
struct
file_operations
cifs_file_ops
=
{
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/2.6.29/cifsfs.c
View file @
cbe3802b
...
...
@@ -622,23 +622,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -750,7 +733,7 @@ const struct inode_operations cifs_symlink_inode_ops = {
const
struct
file_operations
cifs_file_ops
=
{
.
read
=
do_sync_read
,
.
write
=
do_sync_write
,
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/centos52/cifsfs.c
View file @
cbe3802b
...
...
@@ -629,23 +629,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const char __user *buf,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
char
__user
*
buf
,
size_t
count
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
buf
,
count
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
buf
,
count
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -740,7 +723,7 @@ const struct file_operations cifs_file_ops = {
.
readv
=
generic_file_readv
,
.
writev
=
cifs_file_writev
,
#endif
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/centos53/cifsfs.c
View file @
cbe3802b
...
...
@@ -705,22 +705,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const char __user *buf,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
char
__user
*
buf
,
size_t
count
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
buf
,
count
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
buf
,
count
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -828,7 +812,7 @@ struct file_operations cifs_file_ops = {
.
readv
=
generic_file_readv
,
.
writev
=
cifs_file_writev
,
#endif
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
sources/legacy/cifsfs.c
View file @
cbe3802b
...
...
@@ -629,23 +629,6 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const char __user *buf,
return
written
;
}
static
ssize_t
cifs_file_aio_read
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
)
{
struct
inode
*
inode
=
iocb
->
ki_filp
->
f_path
.
dentry
->
d_inode
;
ssize_t
read
;
if
(
CIFS_I
(
inode
)
->
clientCanCacheRead
)
read
=
generic_file_aio_read
(
iocb
,
iov
,
nr_segs
,
pos
);
else
{
read
=
cifs_user_read
(
iocb
->
ki_filp
,
iov
->
iov_base
,
iov
->
iov_len
,
&
pos
);
iocb
->
ki_pos
=
pos
;
}
return
read
;
}
static
loff_t
cifs_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
/* origin == SEEK_END => we must revalidate the cached file length */
...
...
@@ -740,7 +723,7 @@ const struct file_operations cifs_file_ops = {
.
readv
=
generic_file_readv
,
.
writev
=
cifs_file_writev
,
#endif
.
aio_read
=
cifs
_file_aio_read
,
.
aio_read
=
generic
_file_aio_read
,
.
aio_write
=
cifs_file_aio_write
,
.
open
=
cifs_open
,
.
release
=
cifs_close
,
...
...
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