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
nexedi
linux
Commits
b377ff13
Commit
b377ff13
authored
Nov 11, 2009
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: initialize i_size/i_rbytes on snapdir
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
09b8a7d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fs/ceph/inode.c
fs/ceph/inode.c
+3
-1
No files found.
fs/ceph/inode.c
View file @
b377ff13
...
@@ -62,6 +62,7 @@ struct inode *ceph_get_snapdir(struct inode *parent)
...
@@ -62,6 +62,7 @@ struct inode *ceph_get_snapdir(struct inode *parent)
.
snap
=
CEPH_SNAPDIR
,
.
snap
=
CEPH_SNAPDIR
,
};
};
struct
inode
*
inode
=
ceph_get_inode
(
parent
->
i_sb
,
vino
);
struct
inode
*
inode
=
ceph_get_inode
(
parent
->
i_sb
,
vino
);
struct
ceph_inode_info
*
ci
=
ceph_inode
(
inode
);
BUG_ON
(
!
S_ISDIR
(
parent
->
i_mode
));
BUG_ON
(
!
S_ISDIR
(
parent
->
i_mode
));
if
(
IS_ERR
(
inode
))
if
(
IS_ERR
(
inode
))
...
@@ -71,7 +72,8 @@ struct inode *ceph_get_snapdir(struct inode *parent)
...
@@ -71,7 +72,8 @@ struct inode *ceph_get_snapdir(struct inode *parent)
inode
->
i_gid
=
parent
->
i_gid
;
inode
->
i_gid
=
parent
->
i_gid
;
inode
->
i_op
=
&
ceph_dir_iops
;
inode
->
i_op
=
&
ceph_dir_iops
;
inode
->
i_fop
=
&
ceph_dir_fops
;
inode
->
i_fop
=
&
ceph_dir_fops
;
ceph_inode
(
inode
)
->
i_snap_caps
=
CEPH_CAP_PIN
;
/* so we can open */
ci
->
i_snap_caps
=
CEPH_CAP_PIN
;
/* so we can open */
ci
->
i_rbytes
=
0
;
return
inode
;
return
inode
;
}
}
...
...
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