diff options
author | Gui Hecheng <guihc.fnst@cn.fujitsu.com> | 2014-08-21 10:56:53 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-28 02:03:18 +0200 |
commit | 5f1313a45d5ed89e7bb7efab3bb7b62a42b7b30f (patch) | |
tree | 46cc570fa5f64bbb6217c728330f8146d2f5a96b /cmds-restore.c | |
parent | 15cda713b2351aa8dafb94ff1ab94559bf1254fd (diff) | |
download | btrfs-progs-5f1313a45d5ed89e7bb7efab3bb7b62a42b7b30f.tar.gz |
btrfs-progs: remove unused flags for btrfs_path
The three flags of @btrfs_path:
btrfs_path {
unsigned int keep_locks:1;
unsigned int skip_locking:1;
unsigned int leave_spinning:1;
}
have little meaning, because the userspace @btrfs_search_slot()
is free of locking and no other routines will decide their behavior
on these. So just remove them.
Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-restore.c')
-rw-r--r-- | cmds-restore.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmds-restore.c b/cmds-restore.c index e09acc4..ff2b3fb 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -566,7 +566,6 @@ static int copy_file(struct btrfs_root *root, int fd, struct btrfs_key *key, fprintf(stderr, "Ran out of memory\n"); return -ENOMEM; } - path->skip_locking = 1; ret = btrfs_lookup_inode(NULL, root, path, key, 0); if (ret == 0) { @@ -704,7 +703,6 @@ static int search_dir(struct btrfs_root *root, struct btrfs_key *key, fprintf(stderr, "Ran out of memory\n"); return -ENOMEM; } - path->skip_locking = 1; key->offset = 0; key->type = BTRFS_DIR_INDEX_KEY; |