Su Yue
26a836cec2
btrfs: Check name_len on add_inode_ref call path
...
replay_one_buffer first reads buffers and dispatches items accroding to
the item type.
In this patch, add_inode_ref handles inode_ref and inode_extref.
Then add_inode_ref calls ref_get_fields and extref_get_fields to read
ref/extref name for the first time.
So checking name_len before reading those two is fine.
add_inode_ref also calls inode_in_dir to match ref/extref in parent_dir.
The call graph includes btrfs_match_dir_item_name to read dir_item name
in the parent dir.
Checking first dir_item is not enough. Change it to verify every
dir_item while doing matches.
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2017-06-21 19:16:04 +02:00
..
2017-06-19 18:25:58 +02:00
2016-09-22 10:55:32 +02:00
2017-01-09 11:24:50 +01:00
2016-12-13 11:01:30 -08:00
2017-06-19 18:26:02 +02:00
2015-01-14 19:23:47 +01:00
2017-04-26 16:27:26 +01:00
2017-06-19 18:26:04 +02:00
2016-12-06 16:06:59 +01:00
2017-06-19 18:26:03 +02:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:26:02 +02:00
2017-06-21 19:16:04 +02:00
2016-07-26 13:52:25 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:26 +02:00
2017-02-28 14:26:07 +01:00
2017-06-21 19:16:04 +02:00
2017-06-21 19:03:39 +02:00
2017-06-19 18:26:01 +02:00
2017-02-14 15:50:51 +01:00
2017-06-19 18:26:04 +02:00
2017-06-19 18:26:04 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-06-19 18:26:04 +02:00
2017-06-19 18:25:59 +02:00
2017-06-21 16:52:45 +02:00
2017-04-18 14:07:26 +02:00
2017-02-17 12:03:56 +01:00
2017-06-19 18:26:01 +02:00
2015-12-17 12:16:47 -08:00
2017-06-08 17:36:03 +08:00
2016-06-06 14:08:28 +02:00
2016-12-06 16:06:59 +01:00
2017-02-28 11:30:07 +01:00
2016-01-15 19:25:02 +01:00
2017-06-21 19:16:04 +02:00
2017-06-19 18:26:02 +02:00
2015-01-06 11:04:29 -08:00
2016-01-07 14:30:52 +01:00
2014-11-19 10:34:35 -08:00
2017-06-19 18:26:02 +02:00
2015-12-17 12:16:47 -08:00
2015-03-03 17:23:57 +01:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2014-09-17 13:37:12 -07:00
2017-06-19 18:26:00 +02:00
2016-12-06 16:06:59 +01:00
2017-02-14 15:50:51 +01:00
2017-06-21 15:48:01 +02:00
2017-04-18 14:07:26 +02:00
2017-06-19 18:26:04 +02:00
2016-12-06 16:06:59 +01:00
2017-06-19 18:25:59 +02:00
2017-06-19 18:25:58 +02:00
2017-04-18 14:07:27 +02:00
2017-06-19 18:26:04 +02:00
2017-06-21 16:53:10 +02:00
2016-01-07 14:38:02 +01:00
2016-05-25 22:35:14 +02:00
2017-06-20 14:22:48 +02:00
2017-06-19 18:25:58 +02:00
2016-01-21 18:50:40 +01:00
2017-06-20 14:22:42 +02:00
2017-04-18 14:07:25 +02:00
2015-12-18 02:51:32 +00:00
2017-06-21 19:16:04 +02:00
2017-02-14 15:50:54 +01:00
2017-02-17 12:03:50 +01:00
2017-02-17 12:03:50 +01:00
2016-12-19 18:08:15 +01:00
2017-06-21 19:03:38 +02:00
2017-06-21 19:03:38 +02:00
2017-06-21 19:16:04 +02:00
2016-05-17 19:17:09 -04:00
2017-06-19 18:26:02 +02:00