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
4dea9cd5
Commit
4dea9cd5
authored
Nov 24, 2023
by
Konstantin Komarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/ntfs3: Add file_modified
Signed-off-by:
Konstantin Komarov
<
almaz.alexandrovich@paragon-software.com
>
parent
a40b73f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
fs/ntfs3/file.c
fs/ntfs3/file.c
+13
-0
No files found.
fs/ntfs3/file.c
View file @
4dea9cd5
...
...
@@ -632,11 +632,17 @@ static long ntfs_fallocate(struct file *file, int mode, loff_t vbo, loff_t len)
&
ni
->
file
.
run
,
i_size
,
&
ni
->
i_valid
,
true
,
NULL
);
ni_unlock
(
ni
);
if
(
err
)
goto
out
;
}
else
if
(
new_size
>
i_size
)
{
inode
->
i_size
=
new_size
;
}
}
err
=
file_modified
(
file
);
if
(
err
)
goto
out
;
out:
if
(
map_locked
)
filemap_invalidate_unlock
(
mapping
);
...
...
@@ -1040,6 +1046,7 @@ static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
struct
address_space
*
mapping
=
file
->
f_mapping
;
struct
inode
*
inode
=
mapping
->
host
;
ssize_t
ret
;
int
err
;
struct
ntfs_inode
*
ni
=
ntfs_i
(
inode
);
if
(
is_encrypted
(
ni
))
{
...
...
@@ -1067,6 +1074,12 @@ static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
if
(
ret
<=
0
)
goto
out
;
err
=
file_modified
(
iocb
->
ki_filp
);
if
(
err
)
{
ret
=
err
;
goto
out
;
}
if
(
WARN_ON
(
ni
->
ni_flags
&
NI_FLAG_COMPRESSED_MASK
))
{
/* Should never be here, see ntfs_file_open(). */
ret
=
-
EOPNOTSUPP
;
...
...
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