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
dc8b0932
Commit
dc8b0932
authored
May 01, 2004
by
Hirofumi Ogawa
Committed by
Linus Torvalds
May 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] FAT: small cleanup
parent
647ebfd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/fat/file.c
fs/fat/file.c
+1
-1
fs/fat/misc.c
fs/fat/misc.c
+1
-1
No files found.
fs/fat/file.c
View file @
dc8b0932
...
@@ -50,7 +50,7 @@ int fat_get_block(struct inode *inode, sector_t iblock,
...
@@ -50,7 +50,7 @@ int fat_get_block(struct inode *inode, sector_t iblock,
BUG
();
BUG
();
return
-
EIO
;
return
-
EIO
;
}
}
if
(
!
((
unsigned
long
)
iblock
%
MSDOS_SB
(
sb
)
->
sec_per_clus
))
{
if
(
!
((
unsigned
long
)
iblock
&
(
MSDOS_SB
(
sb
)
->
sec_per_clus
-
1
)
))
{
int
error
;
int
error
;
error
=
fat_add_cluster
(
inode
);
error
=
fat_add_cluster
(
inode
);
...
...
fs/fat/misc.c
View file @
dc8b0932
...
@@ -205,7 +205,7 @@ struct buffer_head *fat_extend_dir(struct inode *inode)
...
@@ -205,7 +205,7 @@ struct buffer_head *fat_extend_dir(struct inode *inode)
if
(
inode
->
i_size
&
(
sb
->
s_blocksize
-
1
))
{
if
(
inode
->
i_size
&
(
sb
->
s_blocksize
-
1
))
{
fat_fs_panic
(
sb
,
"Odd directory size"
);
fat_fs_panic
(
sb
,
"Odd directory size"
);
inode
->
i_size
=
(
inode
->
i_size
+
sb
->
s_blocksize
)
inode
->
i_size
=
(
inode
->
i_size
+
sb
->
s_blocksize
)
&
~
(
sb
->
s_blocksize
-
1
);
&
~
(
(
loff_t
)
sb
->
s_blocksize
-
1
);
}
}
inode
->
i_size
+=
MSDOS_SB
(
sb
)
->
cluster_size
;
inode
->
i_size
+=
MSDOS_SB
(
sb
)
->
cluster_size
;
MSDOS_I
(
inode
)
->
mmu_private
+=
MSDOS_SB
(
sb
)
->
cluster_size
;
MSDOS_I
(
inode
)
->
mmu_private
+=
MSDOS_SB
(
sb
)
->
cluster_size
;
...
...
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