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
af53d29a
Commit
af53d29a
authored
Dec 20, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch btrfs, close races
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ba87167c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
fs/btrfs/export.c
fs/btrfs/export.c
+2
-10
fs/btrfs/inode.c
fs/btrfs/inode.c
+0
-2
fs/btrfs/super.c
fs/btrfs/super.c
+1
-0
No files found.
fs/btrfs/export.c
View file @
af53d29a
...
...
@@ -65,7 +65,6 @@ static struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
{
struct
btrfs_fs_info
*
fs_info
=
btrfs_sb
(
sb
)
->
fs_info
;
struct
btrfs_root
*
root
;
struct
dentry
*
dentry
;
struct
inode
*
inode
;
struct
btrfs_key
key
;
int
index
;
...
...
@@ -108,10 +107,7 @@ static struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
return
ERR_PTR
(
-
ESTALE
);
}
dentry
=
d_obtain_alias
(
inode
);
if
(
!
IS_ERR
(
dentry
))
d_set_d_op
(
dentry
,
&
btrfs_dentry_operations
);
return
dentry
;
return
d_obtain_alias
(
inode
);
fail:
srcu_read_unlock
(
&
fs_info
->
subvol_srcu
,
index
);
return
ERR_PTR
(
err
);
...
...
@@ -166,7 +162,6 @@ static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
static
struct
dentry
*
btrfs_get_parent
(
struct
dentry
*
child
)
{
struct
inode
*
dir
=
child
->
d_inode
;
struct
dentry
*
dentry
;
struct
btrfs_root
*
root
=
BTRFS_I
(
dir
)
->
root
;
struct
btrfs_path
*
path
;
struct
extent_buffer
*
leaf
;
...
...
@@ -223,10 +218,7 @@ static struct dentry *btrfs_get_parent(struct dentry *child)
key
.
type
=
BTRFS_INODE_ITEM_KEY
;
key
.
offset
=
0
;
dentry
=
d_obtain_alias
(
btrfs_iget
(
root
->
fs_info
->
sb
,
&
key
,
root
,
NULL
));
if
(
!
IS_ERR
(
dentry
))
d_set_d_op
(
dentry
,
&
btrfs_dentry_operations
);
return
dentry
;
return
d_obtain_alias
(
btrfs_iget
(
root
->
fs_info
->
sb
,
&
key
,
root
,
NULL
));
fail:
btrfs_free_path
(
path
);
return
ERR_PTR
(
ret
);
...
...
fs/btrfs/inode.c
View file @
af53d29a
...
...
@@ -4084,8 +4084,6 @@ struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry)
int
index
;
int
ret
;
d_set_d_op
(
dentry
,
&
btrfs_dentry_operations
);
if
(
dentry
->
d_name
.
len
>
BTRFS_NAME_LEN
)
return
ERR_PTR
(
-
ENAMETOOLONG
);
...
...
fs/btrfs/super.c
View file @
af53d29a
...
...
@@ -460,6 +460,7 @@ static int btrfs_fill_super(struct super_block *sb,
sb
->
s_maxbytes
=
MAX_LFS_FILESIZE
;
sb
->
s_magic
=
BTRFS_SUPER_MAGIC
;
sb
->
s_op
=
&
btrfs_super_ops
;
sb
->
s_d_op
=
&
btrfs_dentry_operations
;
sb
->
s_export_op
=
&
btrfs_export_ops
;
sb
->
s_xattr
=
btrfs_xattr_handlers
;
sb
->
s_time_gran
=
1
;
...
...
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