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
d541f7da
Commit
d541f7da
authored
Aug 20, 2002
by
Oleg Drokin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected calculation of amount of blocks that file occupies on reiserfs.
parent
68d9807c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/reiserfs/inode.c
fs/reiserfs/inode.c
+1
-1
No files found.
fs/reiserfs/inode.c
View file @
d541f7da
...
@@ -919,7 +919,7 @@ static void init_inode (struct inode * inode, struct path * path)
...
@@ -919,7 +919,7 @@ static void init_inode (struct inode * inode, struct path * path)
inode
->
i_blocks
=
sd_v1_blocks
(
sd
);
inode
->
i_blocks
=
sd_v1_blocks
(
sd
);
inode
->
i_generation
=
le32_to_cpu
(
INODE_PKEY
(
inode
)
->
k_dir_id
);
inode
->
i_generation
=
le32_to_cpu
(
INODE_PKEY
(
inode
)
->
k_dir_id
);
blocks
=
(
inode
->
i_size
+
511
)
>>
9
;
blocks
=
(
inode
->
i_size
+
511
)
>>
9
;
blocks
=
_ROUND_UP
(
blocks
,
inode
->
i_
bl
ksize
>>
9
);
blocks
=
_ROUND_UP
(
blocks
,
inode
->
i_
sb
->
s_bloc
ksize
>>
9
);
if
(
inode
->
i_blocks
>
blocks
)
{
if
(
inode
->
i_blocks
>
blocks
)
{
// there was a bug in <=3.5.23 when i_blocks could take negative
// there was a bug in <=3.5.23 when i_blocks could take negative
// values. Starting from 3.5.17 this value could even be stored in
// values. Starting from 3.5.17 this value could even be stored in
...
...
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