Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
6099afe8
Commit
6099afe8
authored
Jul 24, 2008
by
Josef Bacik
Committed by
Chris Mason
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Remove unused xattr code
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
aec7477b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
53 deletions
+1
-53
fs/btrfs/ctree.h
fs/btrfs/ctree.h
+1
-2
fs/btrfs/xattr.c
fs/btrfs/xattr.c
+0
-51
No files found.
fs/btrfs/ctree.h
View file @
6099afe8
...
...
@@ -1689,8 +1689,7 @@ void btrfs_sysfs_del_super(struct btrfs_fs_info *root);
/* xattr.c */
ssize_t
btrfs_listxattr
(
struct
dentry
*
dentry
,
char
*
buffer
,
size_t
size
);
int
btrfs_delete_xattrs
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_root
*
root
,
struct
inode
*
inode
);
/* super.c */
u64
btrfs_parse_size
(
char
*
str
);
int
btrfs_parse_options
(
struct
btrfs_root
*
root
,
char
*
options
);
...
...
fs/btrfs/xattr.c
View file @
6099afe8
...
...
@@ -378,57 +378,6 @@ err:
return
ret
;
}
/*
* delete all the xattrs associated with the inode.
*/
int
btrfs_delete_xattrs
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_root
*
root
,
struct
inode
*
inode
)
{
struct
btrfs_path
*
path
;
struct
btrfs_key
key
,
found_key
;
struct
btrfs_item
*
item
;
struct
extent_buffer
*
leaf
;
int
ret
;
path
=
btrfs_alloc_path
();
if
(
!
path
)
return
-
ENOMEM
;
path
->
reada
=
-
1
;
key
.
objectid
=
inode
->
i_ino
;
btrfs_set_key_type
(
&
key
,
BTRFS_XATTR_ITEM_KEY
);
key
.
offset
=
(
u64
)
-
1
;
while
(
1
)
{
/* look for our next xattr */
ret
=
btrfs_search_slot
(
trans
,
root
,
&
key
,
path
,
-
1
,
1
);
if
(
ret
<
0
)
goto
out
;
BUG_ON
(
ret
==
0
);
if
(
path
->
slots
[
0
]
==
0
)
break
;
path
->
slots
[
0
]
--
;
leaf
=
path
->
nodes
[
0
];
item
=
btrfs_item_nr
(
leaf
,
path
->
slots
[
0
]);
btrfs_item_key_to_cpu
(
leaf
,
&
found_key
,
path
->
slots
[
0
]);
if
(
found_key
.
objectid
!=
key
.
objectid
)
break
;
if
(
btrfs_key_type
(
&
found_key
)
!=
BTRFS_XATTR_ITEM_KEY
)
break
;
ret
=
btrfs_del_item
(
trans
,
root
,
path
);
BUG_ON
(
ret
);
btrfs_release_path
(
root
,
path
);
}
ret
=
0
;
out:
btrfs_free_path
(
path
);
return
ret
;
}
/*
* Handler functions
*/
...
...
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