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
d4b9ba7b
Commit
d4b9ba7b
authored
Nov 17, 2004
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
Signed-off-by:
Anton Altaparmakov
<
aia21@cantab.net
>
parent
db30d160
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
fs/ntfs/ChangeLog
fs/ntfs/ChangeLog
+1
-0
fs/ntfs/file.c
fs/ntfs/file.c
+1
-1
No files found.
fs/ntfs/ChangeLog
View file @
d4b9ba7b
...
...
@@ -33,6 +33,7 @@ ToDo/Notes:
- Use i_size_read() in fs/ntfs/logfile.c::ntfs_{check,empty}_logfile().
- Use i_size_read() once and then use the cached value in
fs/ntfs/lcnalloc.c::ntfs_cluster_alloc().
- Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
2.1.22 - Many bug and race fixes and error handling improvements.
...
...
fs/ntfs/file.c
View file @
d4b9ba7b
...
...
@@ -47,7 +47,7 @@
static
int
ntfs_file_open
(
struct
inode
*
vi
,
struct
file
*
filp
)
{
if
(
sizeof
(
unsigned
long
)
<
8
)
{
if
(
vi
->
i_size
>
MAX_LFS_FILESIZE
)
if
(
i_size_read
(
vi
)
>
MAX_LFS_FILESIZE
)
return
-
EFBIG
;
}
return
generic_file_open
(
vi
,
filp
);
...
...
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