[Devel] [PATCH rh7 1/2] ms/dm: remove dummy definition of 'struct dm_table'

2016-09-22 Thread Andrey Ryabinin
From: Mike Snitzer Change the map pointer in 'struct mapped_device' from 'struct dm_table __rcu *' to 'void __rcu *' to avoid the need for the dummy definition. Signed-off-by: Mike Snitzer https://jira.sw.ru/browse/PSBM-50727 (cherry picked from commit 1d3aa6f683b1c1a813a63339d7309cff58ba4531

[Devel] [PATCH rh7 2/2] ms/dm: remove dummy definition of 'struct dm_table'

2016-09-22 Thread Andrey Ryabinin
There is no need for it. https://jira.sw.ru/browse/PSBM-50727 Signed-off-by: Andrey Ryabinin --- drivers/md/dm-ioctl.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 720ceeb..0fe4233 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers

Re: [Devel] [vzlin-dev] [PATCH rh7] fs: hold reference on original path

2016-09-22 Thread Kirill Tkhai
On 22.09.2016 03:15, Maxim Patlasov wrote: > struct file holds references on its f_path.mnt and f_path.dentry by calling > path_get(&f->f_path) from do_dentry_open(). Let's use the same technique > for f->f_original_path. Otherwise, f_original_path.dentry can be deleted while > file still reference

[Devel] [PATCH RH7] pfcache: hide trusted.pfcache from listxattr

2016-09-22 Thread Pavel Tikhomirov
In SyS_listxattr -> listxattr -> ext4_listxattr -> ext4_xattr_list_entries we choose list handler for each ext4_xattr_entry based on e_name_index, and as for trusted.pfcache index is EXT4_XATTR_INDEX_TRUSTED, we chouse ext4_xattr_trusted_list which prints xattr to the list. To hide our trusted.pfc

Re: [Devel] [PATCH rh7] fs: hold reference on original path

2016-09-22 Thread Konstantin Khorenko
Kirill, please review. -- Best regards, Konstantin Khorenko, Virtuozzo Linux Kernel Team On 09/22/2016 03:15 AM, Maxim Patlasov wrote: struct file holds references on its f_path.mnt and f_path.dentry by calling path_get(&f->f_path) from do_dentry_open(). Let's use the same technique for f->f_o