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
808aa6c5
Commit
808aa6c5
authored
Aug 05, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'work.hpfs' into work.lookup
parents
1401a0fc
e876c445
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
fs/hpfs/dir.c
fs/hpfs/dir.c
+7
-16
No files found.
fs/hpfs/dir.c
View file @
808aa6c5
...
@@ -244,6 +244,7 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned in
...
@@ -244,6 +244,7 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned in
result
=
iget_locked
(
dir
->
i_sb
,
ino
);
result
=
iget_locked
(
dir
->
i_sb
,
ino
);
if
(
!
result
)
{
if
(
!
result
)
{
hpfs_error
(
dir
->
i_sb
,
"hpfs_lookup: can't get inode"
);
hpfs_error
(
dir
->
i_sb
,
"hpfs_lookup: can't get inode"
);
result
=
ERR_PTR
(
-
ENOMEM
);
goto
bail1
;
goto
bail1
;
}
}
if
(
result
->
i_state
&
I_NEW
)
{
if
(
result
->
i_state
&
I_NEW
)
{
...
@@ -266,6 +267,8 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned in
...
@@ -266,6 +267,8 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned in
if
(
de
->
has_acl
||
de
->
has_xtd_perm
)
if
(
!
sb_rdonly
(
dir
->
i_sb
))
{
if
(
de
->
has_acl
||
de
->
has_xtd_perm
)
if
(
!
sb_rdonly
(
dir
->
i_sb
))
{
hpfs_error
(
result
->
i_sb
,
"ACLs or XPERM found. This is probably HPFS386. This driver doesn't support it now. Send me some info on these structures"
);
hpfs_error
(
result
->
i_sb
,
"ACLs or XPERM found. This is probably HPFS386. This driver doesn't support it now. Send me some info on these structures"
);
iput
(
result
);
result
=
ERR_PTR
(
-
EINVAL
);
goto
bail1
;
goto
bail1
;
}
}
...
@@ -301,29 +304,17 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned in
...
@@ -301,29 +304,17 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned in
}
}
}
}
bail1:
hpfs_brelse4
(
&
qbh
);
hpfs_brelse4
(
&
qbh
);
/*
/*
* Made it.
* Made it.
*/
*/
end:
end:
end_add:
end_add:
hpfs_unlock
(
dir
->
i_sb
);
hpfs_unlock
(
dir
->
i_sb
);
d_add
(
dentry
,
result
);
return
d_splice_alias
(
result
,
dentry
);
return
NULL
;
/*
* Didn't.
*/
bail1:
hpfs_brelse4
(
&
qbh
);
/*bail:*/
hpfs_unlock
(
dir
->
i_sb
);
return
ERR_PTR
(
-
ENOENT
);
}
}
const
struct
file_operations
hpfs_dir_ops
=
const
struct
file_operations
hpfs_dir_ops
=
...
...
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