[packages/kernel] - updated aufs patch

baggins baggins at pld-linux.org
Sun Sep 3 16:06:24 CEST 2023


commit 0a7871abd5d40a8dccd31d854fc357b32e8a85c6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Sep 4 01:12:52 2023 +0200

    - updated aufs patch

 kernel-aufs.patch | 46 +++++++++++-----------------------------------
 1 file changed, 11 insertions(+), 35 deletions(-)
---
diff --git a/kernel-aufs.patch b/kernel-aufs.patch
index 9c8f2eb3..bc0b338c 100644
--- a/kernel-aufs.patch
+++ b/kernel-aufs.patch
@@ -46,9 +46,9 @@ index e0ad886d3163..a27659e1886b 100644
 +F:	fs/aufs/
 +F:	include/uapi/linux/aufs_type.h
 +
- AUXILIARY DISPLAY DRIVERS
- M:	Miguel Ojeda <ojeda at kernel.org>
- S:	Maintained
+ AUXILIARY BUS DRIVER
+ M:	Greg Kroah-Hartman <gregkh at linuxfoundation.org>
+ R:	Dave Ertman <david.m.ertman at intel.com>
 diff --git a/drivers/block/loop.c b/drivers/block/loop.c
 index bc31bb7072a2..131294601819 100644
 --- a/drivers/block/loop.c
@@ -145,19 +145,6 @@ index 3e06611d19ae..97a66df75d4c 100644
  {
  	if (unlikely(!out->f_op->splice_write))
  		return warn_unsupported(out, "write");
-@@ -876,9 +876,9 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
- /*
-  * Attempt to initiate a splice from a file to a pipe.
-  */
--static long do_splice_to(struct file *in, loff_t *ppos,
--			 struct pipe_inode_info *pipe, size_t len,
--			 unsigned int flags)
-+long do_splice_to(struct file *in, loff_t *ppos,
-+		  struct pipe_inode_info *pipe, size_t len,
-+		  unsigned int flags)
- {
- 	unsigned int p_space;
- 	int ret;
 diff --git a/include/linux/fs.h b/include/linux/fs.h
 index 21a981680856..1e3054e5367d 100644
 --- a/include/linux/fs.h
@@ -171,7 +158,7 @@ index 21a981680856..1e3054e5367d 100644
  extern int f_setown(struct file *filp, unsigned long arg, int force);
  extern void f_delown(struct file *filp);
 @@ -1793,6 +1794,7 @@ struct file_operations {
- 	ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
+ 	int (*lock) (struct file *, int, struct file_lock *);
  	unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
  	int (*check_flags)(int);
 +	int (*setfl)(struct file *, unsigned long);
@@ -215,16 +202,13 @@ diff --git a/include/linux/splice.h b/include/linux/splice.h
 index a55179fd60fc..8e21c53cf883 100644
 --- a/include/linux/splice.h
 +++ b/include/linux/splice.h
-@@ -93,4 +93,10 @@ extern void splice_shrink_spd(struct splice_pipe_desc *);
+@@ -93,4 +93,7 @@ extern void splice_shrink_spd(struct splice_pipe_desc *);
  
  extern const struct pipe_buf_operations page_cache_pipe_buf_ops;
  extern const struct pipe_buf_operations default_pipe_buf_ops;
 +
 +extern long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
 +			   loff_t *ppos, size_t len, unsigned int flags);
-+extern long do_splice_to(struct file *in, loff_t *ppos,
-+			 struct pipe_inode_info *pipe, size_t len,
-+			 unsigned int flags);
  #endif
 diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
 index dcd1d5bfc1e0..85d1f7e0bc07 100644
@@ -365,9 +349,9 @@ index 27ce77080c79..5f07b972242d 100644
 +
 +#endif /* CONFIG_AUFS_FS */
 +
- extern int access_process_vm(struct task_struct *tsk, unsigned long addr,
- 		void *buf, int len, unsigned int gup_flags);
- extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
+ static inline struct vm_area_struct *vma_lookup(struct mm_struct *mm,
+ 						unsigned long addr);
+ 
 diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
 index 306a3d1a0fa6..56374f0eb825 100644
 --- a/include/linux/mm_types.h
@@ -817,15 +801,7 @@ index 97a66df75d4c..19c8d35f5ebd 100644
 +EXPORT_SYMBOL_GPL(do_splice_from);
  
  /*
-  * Attempt to initiate a splice from a file to a pipe.
-@@ -901,6 +902,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
- 		return warn_unsupported(in, "read");
- 	return in->f_op->splice_read(in, ppos, pipe, len, flags);
- }
-+EXPORT_SYMBOL_GPL(do_splice_to);
- 
- /**
-  * splice_direct_to_actor - splices data directly between two non-pipes
+  * Indicate to the caller that there was a premature EOF when reading from the
 diff --git a/fs/xattr.c b/fs/xattr.c
 index fcf67d80d7f9..174dfb9285fb 100644
 --- a/fs/xattr.c
@@ -33595,7 +33571,7 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.c linux/fs/aufs/vfsub.c
 +	long err;
 +
 +	lockdep_off();
-+	err = do_splice_to(in, ppos, pipe, len, flags);
++	err = vfs_splice_read(in, ppos, pipe, len, flags);
 +	lockdep_on();
 +	file_accessed(in);
 +	if (err >= 0)
@@ -39737,9 +39713,9 @@ index 1e3054e5367d..2a780fcbdc75 100644
 --- a/include/linux/fs.h
 +++ b/include/linux/fs.h
 @@ -1934,6 +1934,10 @@ struct super_operations {
- 				  struct shrink_control *);
  	long (*free_cached_objects)(struct super_block *,
  				    struct shrink_control *);
+ 	void (*shutdown)(struct super_block *sb);
 +#if IS_ENABLED(CONFIG_BLK_DEV_LOOP) || IS_ENABLED(CONFIG_BLK_DEV_LOOP_MODULE)
 +	/* and aufs */
 +	struct file *(*real_loop)(struct file *);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/0a7871abd5d40a8dccd31d854fc357b32e8a85c6



More information about the pld-cvs-commit mailing list