Re: [PATCH 03/32] VFS: Introduce the basic header for the new mount API's filesystem context [ver #8]

2018-05-31 Thread Al Viro
On Fri, May 25, 2018 at 01:05:43AM +0100, David Howells wrote: > + void*fs_private;/* The filesystem's context */ ... > + void*s_fs_info; /* Proposed s_fs_info */ While we are at it, do we really need both in generic interface?

Re: [PATCH 03/32] VFS: Introduce the basic header for the new mount API's filesystem context [ver #8]

2018-05-31 Thread Al Viro
On Fri, May 25, 2018 at 01:05:43AM +0100, David Howells wrote: > + booldrop_sb:1; /* T if need to drop an SB > reference */ IMO that should be simply fc->root != NULL - if you keep a dentry, you'd better make sure that its superblock has an active reference, so deacti

[PATCH 03/32] VFS: Introduce the basic header for the new mount API's filesystem context [ver #8]

2018-05-24 Thread David Howells
Introduce a filesystem context concept to be used during superblock creation for mount and superblock reconfiguration for remount. This is allocated at the beginning of the mount procedure and into it is placed: (1) Filesystem type. (2) Namespaces. (3) Source/Device names (there may be multi