diff options
Diffstat (limited to 'Documentation/filesystems')
| -rw-r--r-- | Documentation/filesystems/ceph.rst | 1 | ||||
| -rw-r--r-- | Documentation/filesystems/locking.rst | 3 | ||||
| -rw-r--r-- | Documentation/filesystems/porting.rst | 10 | ||||
| -rw-r--r-- | Documentation/filesystems/proc.rst | 4 | ||||
| -rw-r--r-- | Documentation/filesystems/sysfs.rst | 2 | ||||
| -rw-r--r-- | Documentation/filesystems/ubifs.rst | 2 | ||||
| -rw-r--r-- | Documentation/filesystems/vfs.rst | 6 | 
7 files changed, 22 insertions, 6 deletions
diff --git a/Documentation/filesystems/ceph.rst b/Documentation/filesystems/ceph.rst index 4942e018db85..76ce938e7024 100644 --- a/Documentation/filesystems/ceph.rst +++ b/Documentation/filesystems/ceph.rst @@ -203,7 +203,6 @@ For more information on Ceph, see the home page at  The Linux kernel client source tree is available at  	- https://github.com/ceph/ceph-client.git -	- git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git  and the source for the full system is at  	https://github.com/ceph/ceph.git diff --git a/Documentation/filesystems/locking.rst b/Documentation/filesystems/locking.rst index 4bb2627026ec..8f737e76935c 100644 --- a/Documentation/filesystems/locking.rst +++ b/Documentation/filesystems/locking.rst @@ -79,7 +79,8 @@ prototypes::  	int (*atomic_open)(struct inode *, struct dentry *,  				struct file *, unsigned open_flag,  				umode_t create_mode); -	int (*tmpfile) (struct inode *, struct dentry *, umode_t); +	int (*tmpfile) (struct user_namespace *, struct inode *, +			struct file *, umode_t);  	int (*fileattr_set)(struct user_namespace *mnt_userns,  			    struct dentry *dentry, struct fileattr *fa);  	int (*fileattr_get)(struct dentry *dentry, struct fileattr *fa); diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst index e8f370d9ce9c..df0dc37e6f58 100644 --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@ -933,3 +933,13 @@ to) and true - "keep going" (as 0 in old calling conventions).  Rationale:  callers never looked at specific -E... values anyway.  ->iterate() and  ->iterate_shared() instance require no changes at all, all filldir_t ones in  the tree converted. + +--- + +**mandatory** + +Calling conventions for ->tmpfile() have changed.  It now takes a struct +file pointer instead of struct dentry pointer.  d_tmpfile() is similarly +changed to simplify callers.  The passed file is in a non-open state and on +success must be opened before returning (e.g. by calling +finish_open_simple()). diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index e7aafc82be99..898c99eae8e4 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -982,6 +982,7 @@ Example output. You may not have all of these fields.      SUnreclaim:       142336 kB      KernelStack:       11168 kB      PageTables:        20540 kB +    SecPageTables:         0 kB      NFS_Unstable:          0 kB      Bounce:                0 kB      WritebackTmp:          0 kB @@ -1090,6 +1091,9 @@ KernelStack                Memory consumed by the kernel stacks of all tasks  PageTables                Memory consumed by userspace page tables +SecPageTables +              Memory consumed by secondary page tables, this currently +              currently includes KVM mmu allocations on x86 and arm64.  NFS_Unstable                Always zero. Previous counted pages which had been written to                the server, but has not been committed to stable storage. diff --git a/Documentation/filesystems/sysfs.rst b/Documentation/filesystems/sysfs.rst index 004d490179f3..8bba676b1365 100644 --- a/Documentation/filesystems/sysfs.rst +++ b/Documentation/filesystems/sysfs.rst @@ -263,7 +263,7 @@ A very simple (and naive) implementation of a device attribute is::      static ssize_t show_name(struct device *dev, struct device_attribute *attr,  			    char *buf)      { -	    return scnprintf(buf, PAGE_SIZE, "%s\n", dev->name); +	    return sysfs_emit(buf, "%s\n", dev->name);      }      static ssize_t store_name(struct device *dev, struct device_attribute *attr, diff --git a/Documentation/filesystems/ubifs.rst b/Documentation/filesystems/ubifs.rst index e6ee99762534..ced2f7679ddb 100644 --- a/Documentation/filesystems/ubifs.rst +++ b/Documentation/filesystems/ubifs.rst @@ -59,7 +59,7 @@ differences.  * JFFS2 is a write-through file-system, while UBIFS supports write-back,    which makes UBIFS much faster on writes. -Similarly to JFFS2, UBIFS supports on-the-flight compression which makes +Similarly to JFFS2, UBIFS supports on-the-fly compression which makes  it possible to fit quite a lot of data to the flash.  Similarly to JFFS2, UBIFS is tolerant of unclean reboots and power-cuts. diff --git a/Documentation/filesystems/vfs.rst b/Documentation/filesystems/vfs.rst index b2ef2449aed9..2b55f71e2ae1 100644 --- a/Documentation/filesystems/vfs.rst +++ b/Documentation/filesystems/vfs.rst @@ -442,7 +442,7 @@ As of kernel 2.6.22, the following members are defined:  		void (*update_time)(struct inode *, struct timespec *, int);  		int (*atomic_open)(struct inode *, struct dentry *, struct file *,  				   unsigned open_flag, umode_t create_mode); -		int (*tmpfile) (struct user_namespace *, struct inode *, struct dentry *, umode_t); +		int (*tmpfile) (struct user_namespace *, struct inode *, struct file *, umode_t);  	        int (*set_acl)(struct user_namespace *, struct inode *, struct posix_acl *, int);  		int (*fileattr_set)(struct user_namespace *mnt_userns,  				    struct dentry *dentry, struct fileattr *fa); @@ -592,7 +592,9 @@ otherwise noted.  ``tmpfile``  	called in the end of O_TMPFILE open().  Optional, equivalent to  	atomically creating, opening and unlinking a file in given -	directory. +	directory.  On success needs to return with the file already +	open; this can be done by calling finish_open_simple() right at +	the end.  ``fileattr_get``  	called on ioctl(FS_IOC_GETFLAGS) and ioctl(FS_IOC_FSGETXATTR) to  |