Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
e8a74987
Commit
e8a74987
authored
14 years ago
by
Sage Weil
Browse files
Options
Download
Email Patches
Plain Diff
ceph: skip set_dentry_offset work if directory not I_COMPLETE
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
f1f2765f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
fs/ceph/inode.c
fs/ceph/inode.c
+4
-0
No files found.
fs/ceph/inode.c
View file @
e8a74987
...
...
@@ -861,6 +861,10 @@ static void ceph_set_dentry_offset(struct dentry *dn)
di
=
ceph_dentry
(
dn
);
spin_lock
(
&
inode
->
i_lock
);
if
((
ceph_inode
(
inode
)
->
i_ceph_flags
&
CEPH_I_COMPLETE
)
==
0
)
{
spin_unlock
(
&
inode
->
i_lock
);
return
;
}
di
->
offset
=
ceph_inode
(
inode
)
->
i_max_offset
++
;
spin_unlock
(
&
inode
->
i_lock
);
...
...
This diff is collapsed.
Click to expand it.
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