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
f9f3c6b6
Commit
f9f3c6b6
authored
May 21, 2007
by
Chris Mason
Committed by
David Woodhouse
May 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: 2.6.21-git fixes
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
de428b63
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
25 deletions
+1
-25
fs/btrfs/ctree.h
fs/btrfs/ctree.h
+0
-2
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+0
-3
fs/btrfs/super.c
fs/btrfs/super.c
+1
-20
No files found.
fs/btrfs/ctree.h
View file @
f9f3c6b6
...
...
@@ -1197,6 +1197,4 @@ struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans,
u64
objectid
,
u64
offset
,
int
cow
);
/* super.c */
extern
struct
subsystem
btrfs_subsys
;
#endif
fs/btrfs/disk-io.c
View file @
f9f3c6b6
...
...
@@ -649,9 +649,6 @@ struct btrfs_root *open_ctree(struct super_block *sb)
fs_info
->
generation
=
btrfs_super_generation
(
disk_super
)
+
1
;
memset
(
&
fs_info
->
kobj
,
0
,
sizeof
(
fs_info
->
kobj
));
kobj_set_kset_s
(
fs_info
,
btrfs_subsys
);
kobject_set_name
(
&
fs_info
->
kobj
,
"%s"
,
sb
->
s_id
);
kobject_register
(
&
fs_info
->
kobj
);
mutex_unlock
(
&
fs_info
->
fs_mutex
);
return
tree_root
;
}
...
...
fs/btrfs/super.c
View file @
f9f3c6b6
...
...
@@ -18,24 +18,11 @@
#include "btrfs_inode.h"
#include "ioctl.h"
static
void
btrfs_fsinfo_release
(
struct
kobject
*
obj
)
{
struct
btrfs_fs_info
*
fsinfo
=
container_of
(
obj
,
struct
btrfs_fs_info
,
kobj
);
kfree
(
fsinfo
);
}
static
struct
kobj_type
btrfs_fsinfo_ktype
=
{
.
release
=
btrfs_fsinfo_release
,
};
struct
btrfs_iget_args
{
u64
ino
;
struct
btrfs_root
*
root
;
};
decl_subsys
(
btrfs
,
&
btrfs_fsinfo_ktype
,
NULL
);
#define BTRFS_SUPER_MAGIC 0x9123682E
static
struct
inode_operations
btrfs_dir_inode_operations
;
...
...
@@ -2438,7 +2425,7 @@ static void init_once(void * foo, struct kmem_cache * cachep,
{
struct
btrfs_inode
*
ei
=
(
struct
btrfs_inode
*
)
foo
;
if
((
flags
&
(
SLAB_CTOR_
VERIFY
|
SLAB_CTOR_
CONSTRUCTOR
))
==
if
((
flags
&
(
SLAB_CTOR_CONSTRUCTOR
))
==
SLAB_CTOR_CONSTRUCTOR
)
{
inode_init_once
(
&
ei
->
vfs_inode
);
}
...
...
@@ -2588,12 +2575,7 @@ static int __init init_btrfs_fs(void)
err
=
init_inodecache
();
if
(
err
)
return
err
;
kset_set_kset_s
(
&
btrfs_subsys
,
fs_subsys
);
err
=
subsystem_register
(
&
btrfs_subsys
);
if
(
err
)
goto
out
;
return
register_filesystem
(
&
btrfs_fs_type
);
out:
destroy_inodecache
();
return
err
;
}
...
...
@@ -2602,7 +2584,6 @@ static void __exit exit_btrfs_fs(void)
{
destroy_inodecache
();
unregister_filesystem
(
&
btrfs_fs_type
);
subsystem_unregister
(
&
btrfs_subsys
);
printk
(
"btrfs unloaded
\n
"
);
}
...
...
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