Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
55b0b31c
Commit
55b0b31c
authored
Sep 7, 2015
by
Yan, Zheng
Committed by
Ilya Dryomov
Sep 9, 2015
Browse files
Options
Downloads
Patches
Plain Diff
ceph: get inode size for each append write
Signed-off-by:
Yan, Zheng
<
zyan@redhat.com
>
parent
d15f9d69
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/ceph/file.c
+6
-0
6 additions, 0 deletions
fs/ceph/file.c
with
6 additions
and
0 deletions
fs/ceph/file.c
+
6
−
0
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment