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
e8aea2e4
Commit
e8aea2e4
authored
Aug 05, 2003
by
Steve French
Committed by
Steve French
Aug 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix blocksize and allocation size mismatch
parent
dc70efa7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
fs/cifs/AUTHORS
fs/cifs/AUTHORS
+2
-1
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+3
-0
fs/cifs/inode.c
fs/cifs/inode.c
+3
-6
fs/cifs/misc.c
fs/cifs/misc.c
+2
-0
No files found.
fs/cifs/AUTHORS
View file @
e8aea2e4
...
...
@@ -19,10 +19,11 @@ Patch Contributors
------------------
Zwane Mwaikambo
Andi Kleen
Amrut Joshi
Test case and Bug Report contributors
-------------------------------------
Thanks to those in the community who have submitted detailed bug reports
and debug of problems they have found: Jochen Dolze, David Blaine,
Rene Scharfe, Martin Josefsson and others.
Rene Scharfe, Martin Josefsson
, Alexander Wild
and others.
fs/cifs/cifsfs.c
View file @
e8aea2e4
...
...
@@ -206,6 +206,9 @@ cifs_alloc_inode(struct super_block *sb)
file data or metadata */
cifs_inode
->
clientCanCacheRead
=
FALSE
;
cifs_inode
->
clientCanCacheAll
=
FALSE
;
cifs_inode
->
vfs_inode
.
i_blksize
=
CIFS_MAX_MSGSIZE
;
cifs_inode
->
vfs_inode
.
i_blkbits
=
14
;
/* 2**14 = CIFS_MAX_MSGSIZE */
INIT_LIST_HEAD
(
&
cifs_inode
->
openFileList
);
return
&
cifs_inode
->
vfs_inode
;
}
...
...
fs/cifs/inode.c
View file @
e8aea2e4
...
...
@@ -277,9 +277,6 @@ cifs_get_inode_info(struct inode **pinode, const unsigned char *search_path,
inode
->
i_blocks
=
(
inode
->
i_blksize
-
1
+
pfindData
->
AllocationSize
)
>>
inode
->
i_blkbits
;
cFYI
(
1
,
(
" Size %ld and blocks %ld "
,
(
unsigned
long
)
inode
->
i_size
,
inode
->
i_blocks
));
inode
->
i_nlink
=
le32_to_cpu
(
pfindData
->
NumberOfLinks
);
/* BB fill in uid and gid here? with help from winbind?
...
...
@@ -543,13 +540,13 @@ cifs_revalidate(struct dentry *direntry)
direntry
->
d_inode
->
i_count
.
counter
,
direntry
,
direntry
->
d_time
,
jiffies
));
cifsInode
=
CIFS_I
(
direntry
->
d_inode
);
/* BB add check - do not need to revalidate oplocked files */
if
(
time_before
(
jiffies
,
cifsInode
->
time
+
HZ
))
{
if
(
time_before
(
jiffies
,
cifsInode
->
time
+
HZ
)
&&
lookupCacheEnabled
)
{
if
((
S_ISREG
(
direntry
->
d_inode
->
i_mode
)
==
0
)
||
(
direntry
->
d_inode
->
i_nlink
==
1
)
||
(
lookupCacheEnabled
==
0
))
{
(
direntry
->
d_inode
->
i_nlink
==
1
))
{
if
(
full_path
)
kfree
(
full_path
);
FreeXid
(
xid
);
...
...
fs/cifs/misc.c
View file @
e8aea2e4
...
...
@@ -55,6 +55,8 @@ void
_FreeXid
(
unsigned
int
xid
)
{
write_lock
(
&
GlobalMid_Lock
);
/* if(GlobalTotalActiveXid == 0)
BUG(); */
GlobalTotalActiveXid
--
;
write_unlock
(
&
GlobalMid_Lock
);
}
...
...
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