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
55b0b31c
Commit
55b0b31c
authored
Sep 07, 2015
by
Yan, Zheng
Committed by
Ilya Dryomov
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: get inode size for each append write
Signed-off-by:
Yan, Zheng
<
zyan@redhat.com
>
parent
d15f9d69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
fs/ceph/file.c
fs/ceph/file.c
+6
-0
No files found.
fs/ceph/file.c
View file @
55b0b31c
...
@@ -952,6 +952,12 @@ static ssize_t ceph_write_iter(struct kiocb *iocb, struct iov_iter *from)
...
@@ -952,6 +952,12 @@ static ssize_t ceph_write_iter(struct kiocb *iocb, struct iov_iter *from)
/* We can write back this queue in page reclaim */
/* We can write back this queue in page reclaim */
current
->
backing_dev_info
=
inode_to_bdi
(
inode
);
current
->
backing_dev_info
=
inode_to_bdi
(
inode
);
if
(
iocb
->
ki_flags
&
IOCB_APPEND
)
{
err
=
ceph_do_getattr
(
inode
,
CEPH_STAT_CAP_SIZE
,
false
);
if
(
err
<
0
)
goto
out
;
}
err
=
generic_write_checks
(
iocb
,
from
);
err
=
generic_write_checks
(
iocb
,
from
);
if
(
err
<=
0
)
if
(
err
<=
0
)
goto
out
;
goto
out
;
...
...
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