2021-06-18 00:31:49 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-04-21 04:12:10 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-04 18:04:48 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 17:04:11 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
2017-02-02 19:15:33 +01:00
|
|
|
|
2017-06-20 12:19:09 +02:00
|
|
|
|
2020-05-23 09:30:11 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2010-07-05 18:12:45 +05:30
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2022-08-10 22:00:08 -05:00
|
|
|
|
2024-03-05 23:28:48 -06:00
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
2023-10-06 18:29:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-14 18:45:47 +00:00
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
2023-10-06 18:29:59 +01:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-10-06 18:29:59 +01:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
2010-12-12 13:11:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-23 21:29:04 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-17 15:00:55 +01:00
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
|
|
|
|
|
2011-01-14 18:45:47 +00:00
|
|
|
|
2023-08-17 12:34:04 -03:00
|
|
|
|
2008-03-09 03:44:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-15 20:55:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-01 07:22:02 +00:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2023-10-04 14:52:53 -04:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2025-10-09 09:59:22 +02:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-05 13:01:06 +04:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-02 21:19:41 -08:00
|
|
|
|
2023-10-04 14:52:53 -04:00
|
|
|
|
|
|
|
|
|
2022-02-15 19:22:18 +00:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:45 -04:00
|
|
|
|
2022-02-01 07:22:02 +00:00
|
|
|
|
netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context
While randstruct was satisfied with using an open-coded "void *" offset
cast for the netfs_i_context <-> inode casting, __builtin_object_size() as
used by FORTIFY_SOURCE was not as easily fooled. This was causing the
following complaint[1] from gcc v12:
In file included from include/linux/string.h:253,
from include/linux/ceph/ceph_debug.h:7,
from fs/ceph/inode.c:2:
In function 'fortify_memset_chk',
inlined from 'netfs_i_context_init' at include/linux/netfs.h:326:2,
inlined from 'ceph_alloc_inode' at fs/ceph/inode.c:463:2:
include/linux/fortify-string.h:242:25: warning: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
242 | __write_overflow_field(p_size_field, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fix this by embedding a struct inode into struct netfs_i_context (which
should perhaps be renamed to struct netfs_inode). The struct inode
vfs_inode fields are then removed from the 9p, afs, ceph and cifs inode
structs and vfs_inode is then simply changed to "netfs.inode" in those
filesystems.
Further, rename netfs_i_context to netfs_inode, get rid of the
netfs_inode() function that converted a netfs_i_context pointer to an
inode pointer (that can now be done with &ctx->inode) and rename the
netfs_i_context() function to netfs_inode() (which is now a wrapper
around container_of()).
Most of the changes were done with:
perl -p -i -e 's/vfs_inode/netfs.inode/'g \
`git grep -l 'vfs_inode' -- fs/{9p,afs,ceph,cifs}/*.[ch]`
Kees suggested doing it with a pair structure[2] and a special
declarator to insert that into the network filesystem's inode
wrapper[3], but I think it's cleaner to embed it - and then it doesn't
matter if struct randomisation reorders things.
Dave Chinner suggested using a filesystem-specific VFS_I() function in
each filesystem to convert that filesystem's own inode wrapper struct
into the VFS inode struct[4].
Version #2:
- Fix a couple of missed name changes due to a disabled cifs option.
- Rename nfs_i_context to nfs_inode
- Use "netfs" instead of "nic" as the member name in per-fs inode wrapper
structs.
[ This also undoes commit 507160f46c55 ("netfs: gcc-12: temporarily
disable '-Wattribute-warning' for now") that is no longer needed ]
Fixes: bc899ee1c898 ("netfs: Add a netfs inode context")
Reported-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
cc: Jonathan Corbet <corbet@lwn.net>
cc: Eric Van Hensbergen <ericvh@gmail.com>
cc: Latchesar Ionkov <lucho@ionkov.net>
cc: Dominique Martinet <asmadeus@codewreck.org>
cc: Christian Schoenebeck <linux_oss@crudebyte.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Ilya Dryomov <idryomov@gmail.com>
cc: Steve French <smfrench@gmail.com>
cc: William Kucharski <william.kucharski@oracle.com>
cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
cc: Dave Chinner <david@fromorbit.com>
cc: linux-doc@vger.kernel.org
cc: v9fs-developer@lists.sourceforge.net
cc: linux-afs@lists.infradead.org
cc: ceph-devel@vger.kernel.org
cc: linux-cifs@vger.kernel.org
cc: samba-technical@lists.samba.org
cc: linux-fsdevel@vger.kernel.org
cc: linux-hardening@vger.kernel.org
Link: https://lore.kernel.org/r/d2ad3a3d7bdd794c6efb562d2f2b655fb67756b9.camel@kernel.org/ [1]
Link: https://lore.kernel.org/r/20220517210230.864239-1-keescook@chromium.org/ [2]
Link: https://lore.kernel.org/r/20220518202212.2322058-1-keescook@chromium.org/ [3]
Link: https://lore.kernel.org/r/20220524101205.GI2306852@dread.disaster.area/ [4]
Link: https://lore.kernel.org/r/165296786831.3591209.12111293034669289733.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/165305805651.4094995.7763502506786714216.stgit@warthog.procyon.org.uk # v2
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-06-09 21:46:04 +01:00
|
|
|
|
2022-02-01 07:22:02 +00:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
2013-09-21 10:36:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-09 09:59:22 +02:00
|
|
|
|
2013-09-21 10:36:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2021-02-10 21:23:04 -05:00
|
|
|
|
2024-02-29 23:09:52 +05:30
|
|
|
|
|
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
2025-10-09 09:59:22 +02:00
|
|
|
|
2021-02-10 21:23:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-09 09:59:22 +02:00
|
|
|
|
2024-09-03 15:11:18 +01:00
|
|
|
|
2021-02-10 21:23:04 -05:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
2012-08-03 08:43:01 -05:00
|
|
|
|
2019-12-02 21:19:41 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-22 12:07:06 -05:00
|
|
|
|
2019-11-29 21:30:25 -08:00
|
|
|
|
2023-10-04 14:52:53 -04:00
|
|
|
|
2018-09-22 12:07:06 -05:00
|
|
|
|
2023-10-04 14:52:53 -04:00
|
|
|
|
|
|
|
|
|
2023-07-05 15:01:39 -04:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2013-09-21 10:36:10 -05:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2024-01-06 20:05:17 -03:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:45 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
2022-02-15 19:22:18 +00:00
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
2024-02-29 23:09:52 +05:30
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2026-03-18 21:43:51 -03:00
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2024-01-06 20:05:17 -03:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2011-01-14 18:45:47 +00:00
|
|
|
|
2025-10-09 09:59:22 +02:00
|
|
|
|
2023-10-06 18:29:59 +01:00
|
|
|
|
2013-05-07 11:28:31 -04:00
|
|
|
|
2023-10-06 18:29:59 +01:00
|
|
|
|
2021-02-10 21:23:04 -05:00
|
|
|
|
2008-02-25 20:25:21 +00:00
|
|
|
|
|
|
|
|
|
2010-05-17 07:18:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
2010-05-17 07:18:58 -04:00
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-09-21 21:32:29 -05:00
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2013-02-05 23:55:44 -08:00
|
|
|
|
2013-02-06 01:53:25 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-05 23:55:44 -08:00
|
|
|
|
|
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2013-02-05 23:55:44 -08:00
|
|
|
|
2013-02-06 01:53:25 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-05 23:55:44 -08:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-20 21:52:32 +00:00
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2008-05-20 21:52:32 +00:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2008-05-20 19:50:46 +00:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2008-05-20 19:50:46 +00:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2008-05-20 19:50:46 +00:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
|
|
|
|
|
2019-12-02 21:19:41 -08:00
|
|
|
|
2017-05-08 15:59:16 -07:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-29 23:09:52 +05:30
|
|
|
|
2008-05-20 19:50:46 +00:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2012-09-18 16:20:26 -07:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2010-07-12 13:50:14 -07:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-17 22:45:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:26 -07:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2021-06-19 15:53:18 -05:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2024-02-29 23:09:52 +05:30
|
|
|
|
2021-06-19 15:53:18 -05:00
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2008-03-09 03:44:18 +00:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2015-02-13 15:35:58 +09:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2008-07-12 13:47:59 -07:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
2008-05-20 19:50:46 +00:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-05 21:19:56 +02:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2010-08-05 21:19:56 +02:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-22 15:24:44 +09:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-22 15:24:44 +09:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-11-15 16:43:39 -08:00
|
|
|
|
|
|
|
|
|
2014-09-22 05:13:55 -05:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
|
|
|
|
|
2020-06-04 17:23:55 +02:00
|
|
|
|
2024-09-12 14:05:43 +02:00
|
|
|
|
|
|
|
|
|
2005-11-18 20:25:31 -08:00
|
|
|
|
2005-11-15 16:43:39 -08:00
|
|
|
|
2007-07-10 01:16:18 +00:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
2005-11-15 16:43:39 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-12 14:05:45 +02:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
2005-11-15 16:43:39 -08:00
|
|
|
|
2024-09-12 14:05:46 +02:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
2005-11-15 16:43:39 -08:00
|
|
|
|
|
|
|
|
|
2007-07-13 00:33:32 +00:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-11 12:37:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2014-09-22 05:13:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
2014-09-22 05:13:55 -05:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
2005-11-15 16:43:39 -08:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-22 05:13:55 -05:00
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
2024-09-12 14:05:44 +02:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-03 21:39:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
2024-09-12 14:05:44 +02:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-03 21:39:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
2024-05-29 18:16:56 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-12 14:05:42 +02:00
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-12 14:05:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-27 20:20:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-12 14:05:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-27 20:20:39 +02:00
|
|
|
|
|
|
|
|
|
2024-09-12 14:05:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-19 23:01:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-12 14:05:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-22 05:13:55 -05:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2005-11-15 16:43:39 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-17 16:59:21 -08:00
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-11-17 16:59:21 -08:00
|
|
|
|
2005-11-18 11:31:10 -08:00
|
|
|
|
2005-11-17 16:59:21 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2005-11-17 16:59:21 -08:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-01 23:27:18 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-12 20:59:10 -05:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2007-04-30 20:13:06 +00:00
|
|
|
|
2005-11-17 16:59:21 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2005-11-17 16:59:21 -08:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
2005-11-18 11:31:10 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-17 16:59:21 -08:00
|
|
|
|
|
|
|
|
|
2024-11-15 19:21:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-04 17:46:00 -06:00
|
|
|
|
2024-11-15 19:21:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-04 17:46:00 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-15 19:21:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2023-08-17 12:34:01 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:01 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-28 18:23:33 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-04 17:46:00 -06:00
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2023-11-28 18:23:33 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-15 19:21:04 +01:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2023-11-28 18:23:33 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-19 01:08:27 -03:00
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:01 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-20 21:52:32 +00:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2017-05-08 15:59:16 -07:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2010-09-20 16:01:35 -07:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-20 21:52:32 +00:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
2019-12-02 21:19:41 -08:00
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:01 -03:00
|
|
|
|
2010-09-20 16:01:35 -07:00
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-07 11:30:27 -05:00
|
|
|
|
2013-09-21 10:36:10 -05:00
|
|
|
|
2024-01-28 21:52:03 -03:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2023-11-28 18:23:33 -03:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2023-11-21 20:12:54 -03:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2012-02-17 16:13:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-21 10:36:10 -05:00
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2009-07-09 01:46:44 -04:00
|
|
|
|
2013-09-21 10:36:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-21 05:20:45 -08:00
|
|
|
|
|
|
|
|
|
2013-09-21 10:36:10 -05:00
|
|
|
|
2013-07-04 14:38:48 -05:00
|
|
|
|
2012-02-17 16:13:30 +03:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2024-09-21 23:28:32 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2023-11-28 16:37:19 -03:00
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-20 21:52:32 +00:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:26 -07:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2010-07-12 13:50:14 -07:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2012-09-18 16:20:26 -07:00
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:26 -07:00
|
|
|
|
2024-03-14 08:05:49 -04:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:26 -07:00
|
|
|
|
2024-03-14 08:05:49 -04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2011-10-22 14:37:50 +04:00
|
|
|
|
|
|
|
|
|
2020-10-22 22:03:14 -05:00
|
|
|
|
2023-08-17 12:34:01 -03:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2024-12-26 14:50:38 +01:00
|
|
|
|
2023-11-21 20:12:54 -03:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
|
|
|
|
|
2024-03-14 08:05:49 -04:00
|
|
|
|
|
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
2023-08-17 12:34:01 -03:00
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
|
|
|
|
|
2011-10-22 14:37:50 +04:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2011-10-22 14:37:50 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
2010-03-09 20:30:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
2020-11-20 12:24:14 -06:00
|
|
|
|
2011-10-22 14:37:50 +04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2011-10-22 14:37:50 +04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-10 21:23:04 -05:00
|
|
|
|
2024-02-29 23:09:52 +05:30
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-31 18:13:38 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-04-05 14:57:11 +02:00
|
|
|
|
2018-03-31 18:13:38 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-12 12:08:58 -06:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2020-12-12 12:08:58 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-09-21 14:05:53 -05:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-19 01:08:27 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:07 -03:00
|
|
|
|
|
|
|
|
|
2023-11-21 20:12:54 -03:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:07 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:05 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
|
|
|
|
|
2024-07-31 10:23:39 -03:00
|
|
|
|
|
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
|
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2024-07-31 10:23:39 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
|
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
2024-10-14 15:00:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-18 00:28:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-05 19:51:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
2024-09-23 22:29:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-21 20:12:53 -03:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2024-01-19 01:08:27 -03:00
|
|
|
|
2024-03-14 08:05:49 -04:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2024-01-06 20:05:17 -03:00
|
|
|
|
2023-08-17 12:34:07 -03:00
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-27 17:34:43 +04:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2023-08-17 12:34:01 -03:00
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-22 22:03:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:06 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2024-01-19 01:08:27 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2020-10-22 22:03:14 -05:00
|
|
|
|
2024-04-08 18:32:17 -03:00
|
|
|
|
|
|
|
|
|
2024-03-14 08:05:49 -04:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2025-11-02 15:30:55 +08:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
|
|
|
|
|
2025-11-02 15:30:55 +08:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-12-02 14:46:08 +00:00
|
|
|
|
2008-05-20 21:52:32 +00:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2008-05-20 21:52:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2020-09-03 10:02:39 +10:00
|
|
|
|
|
|
|
|
|
2019-07-19 06:30:07 +00:00
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
2019-07-19 06:30:07 +00:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2020-09-03 10:02:39 +10:00
|
|
|
|
|
|
|
|
|
2019-11-26 15:11:15 +03:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
2010-11-27 11:37:26 -06:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2024-09-21 23:28:32 -05:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2024-09-21 23:28:32 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2010-08-05 21:19:56 +02:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2010-08-05 21:19:56 +02:00
|
|
|
|
|
|
|
|
|
2019-11-18 21:04:08 +01:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-02-16 18:02:47 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-03 18:43:50 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2024-01-19 01:08:28 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-19 01:08:28 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2024-01-19 01:08:28 -03:00
|
|
|
|
2024-01-19 01:08:27 -03:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
|
|
|
|
|
2024-01-19 01:08:27 -03:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2024-01-19 01:08:27 -03:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-12 14:49:47 -05:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-02-16 18:02:47 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-14 08:05:49 -04:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 19:25:47 -05:00
|
|
|
|
2007-09-28 22:28:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-30 17:30:27 +08:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2024-03-27 14:13:24 +00:00
|
|
|
|
|
|
|
|
|
2010-07-19 18:00:17 -04:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-07 11:30:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-07-19 18:00:17 -04:00
|
|
|
|
2021-03-01 20:37:10 -05:00
|
|
|
|
2010-07-19 18:00:17 -04:00
|
|
|
|
|
|
|
|
|
2010-08-02 17:43:54 -04:00
|
|
|
|
2012-06-09 13:51:19 -04:00
|
|
|
|
2010-05-11 14:59:55 -04:00
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-30 17:30:27 +08:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
2011-01-07 11:30:27 -05:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-02 17:43:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-07 17:50:06 +11:00
|
|
|
|
2026-01-24 17:58:48 -05:00
|
|
|
|
2010-08-02 17:43:54 -04:00
|
|
|
|
2011-01-07 17:50:06 +11:00
|
|
|
|
2010-08-02 17:43:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-07 17:50:06 +11:00
|
|
|
|
2010-08-02 17:43:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-11 14:59:55 -04:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-02 17:43:54 -04:00
|
|
|
|
2010-05-11 14:59:55 -04:00
|
|
|
|
|
|
|
|
|
2010-08-02 17:43:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-11 14:59:55 -04:00
|
|
|
|
|
|
|
|
|
2021-02-10 21:23:04 -05:00
|
|
|
|
2024-02-29 23:09:52 +05:30
|
|
|
|
2017-11-27 13:05:09 -08:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2025-10-09 09:59:22 +02:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
cifs: Support fscache indexing rewrite
Change the cifs filesystem to take account of the changes to fscache's
indexing rewrite and reenable caching in cifs.
The following changes have been made:
(1) The fscache_netfs struct is no more, and there's no need to register
the filesystem as a whole.
(2) The session cookie is now an fscache_volume cookie, allocated with
fscache_acquire_volume(). That takes three parameters: a string
representing the "volume" in the index, a string naming the cache to
use (or NULL) and a u64 that conveys coherency metadata for the
volume.
For cifs, I've made it render the volume name string as:
"cifs,<ipaddress>,<sharename>"
where the sharename has '/' characters replaced with ';'.
This probably needs rethinking a bit as the total name could exceed
the maximum filename component length.
Further, the coherency data is currently just set to 0. It needs
something else doing with it - I wonder if it would suffice simply to
sum the resource_id, vol_create_time and vol_serial_number or maybe
hash them.
(3) The fscache_cookie_def is no more and needed information is passed
directly to fscache_acquire_cookie(). The cache no longer calls back
into the filesystem, but rather metadata changes are indicated at
other times.
fscache_acquire_cookie() is passed the same keying and coherency
information as before.
(4) The functions to set/reset cookies are removed and
fscache_use_cookie() and fscache_unuse_cookie() are used instead.
fscache_use_cookie() is passed a flag to indicate if the cookie is
opened for writing. fscache_unuse_cookie() is passed updates for the
metadata if we changed it (ie. if the file was opened for writing).
These are called when the file is opened or closed.
(5) cifs_setattr_*() are made to call fscache_resize() to change the size
of the cache object.
(6) The functions to read and write data are stubbed out pending a
conversion to use netfslib.
Changes
=======
ver #8:
- Abstract cache invalidation into a helper function.
- Fix some checkpatch warnings[3].
ver #7:
- Removed the accidentally added-back call to get the super cookie in
cifs_root_iget().
- Fixed the right call to cifs_fscache_get_super_cookie() to take account
of the "-o fsc" mount flag.
ver #6:
- Moved the change of gfpflags_allow_blocking() to current_is_kswapd() for
cifs here.
- Fixed one of the error paths in cifs_atomic_open() to jump around the
call to use the cookie.
- Fixed an additional successful return in the middle of cifs_open() to
use the cookie on the way out.
- Only get a volume cookie (and thus inode cookies) when "-o fsc" is
supplied to mount.
ver #5:
- Fixed a couple of bits of cookie handling[2]:
- The cookie should be released in cifs_evict_inode(), not
cifsFileInfo_put_final(). The cookie needs to persist beyond file
closure so that writepages will be able to write to it.
- fscache_use_cookie() needs to be called in cifs_atomic_open() as it is
for cifs_open().
ver #4:
- Fixed the use of sizeof with memset.
- tcon->vol_create_time is __le64 so doesn't need cpu_to_le64().
ver #3:
- Canonicalise the cifs coherency data to make the cache portable.
- Set volume coherency data.
ver #2:
- Use gfpflags_allow_blocking() rather than using flag directly.
- Upgraded to -rc4 to allow for upstream changes[1].
- fscache_acquire_volume() now returns errors.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
cc: Steve French <smfrench@gmail.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-cachefs@redhat.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23b55d673d7527b093cd97b7c217c82e70cd1af0 [1]
Link: https://lore.kernel.org/r/3419813.1641592362@warthog.procyon.org.uk/ [2]
Link: https://lore.kernel.org/r/CAH2r5muTanw9pJqzAHd01d9A8keeChkzGsCEH6=0rHutVLAF-A@mail.gmail.com/ [3]
Link: https://lore.kernel.org/r/163819671009.215744.11230627184193298714.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906982979.143852.10672081929614953210.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967187187.1823006.247415138444991444.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021579335.640689.2681324337038770579.stgit@warthog.procyon.org.uk/ # v4
Link: https://lore.kernel.org/r/3462849.1641593783@warthog.procyon.org.uk/ # v5
Link: https://lore.kernel.org/r/1318953.1642024578@warthog.procyon.org.uk/ # v6
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-11-17 15:56:59 +00:00
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-02-21 23:56:59 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-09-20 16:01:35 -07:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
2016-05-25 19:59:09 +02:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2016-05-25 19:59:09 +02:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2016-05-25 19:59:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-07 00:15:33 -08:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2014-10-06 01:01:03 -05:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2014-10-06 01:01:03 -05:00
|
|
|
|
|
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2020-04-14 22:42:53 -07:00
|
|
|
|
2014-10-06 01:01:03 -05:00
|
|
|
|
|
|
|
|
|
2009-07-09 01:46:37 -04:00
|
|
|
|
2016-05-25 19:59:09 +02:00
|
|
|
|
2020-06-11 22:43:01 -05:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2020-06-11 22:43:01 -05:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-06 01:01:03 -05:00
|
|
|
|
2010-11-10 21:06:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-25 00:56:52 -04:00
|
|
|
|
2024-03-14 08:05:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-24 13:46:10 +01:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2012-08-03 08:43:01 -05:00
|
|
|
|
2007-09-28 22:28:55 +00:00
|
|
|
|
2011-10-28 14:13:29 +02:00
|
|
|
|
2007-09-28 22:28:55 +00:00
|
|
|
|
|
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
|
|
|
|
|
2012-08-03 08:43:01 -05:00
|
|
|
|
2008-08-12 14:14:40 +00:00
|
|
|
|
2008-02-07 00:15:33 -08:00
|
|
|
|
2010-11-10 21:06:13 +00:00
|
|
|
|
2007-09-28 22:28:55 +00:00
|
|
|
|
cifs: Support fscache indexing rewrite
Change the cifs filesystem to take account of the changes to fscache's
indexing rewrite and reenable caching in cifs.
The following changes have been made:
(1) The fscache_netfs struct is no more, and there's no need to register
the filesystem as a whole.
(2) The session cookie is now an fscache_volume cookie, allocated with
fscache_acquire_volume(). That takes three parameters: a string
representing the "volume" in the index, a string naming the cache to
use (or NULL) and a u64 that conveys coherency metadata for the
volume.
For cifs, I've made it render the volume name string as:
"cifs,<ipaddress>,<sharename>"
where the sharename has '/' characters replaced with ';'.
This probably needs rethinking a bit as the total name could exceed
the maximum filename component length.
Further, the coherency data is currently just set to 0. It needs
something else doing with it - I wonder if it would suffice simply to
sum the resource_id, vol_create_time and vol_serial_number or maybe
hash them.
(3) The fscache_cookie_def is no more and needed information is passed
directly to fscache_acquire_cookie(). The cache no longer calls back
into the filesystem, but rather metadata changes are indicated at
other times.
fscache_acquire_cookie() is passed the same keying and coherency
information as before.
(4) The functions to set/reset cookies are removed and
fscache_use_cookie() and fscache_unuse_cookie() are used instead.
fscache_use_cookie() is passed a flag to indicate if the cookie is
opened for writing. fscache_unuse_cookie() is passed updates for the
metadata if we changed it (ie. if the file was opened for writing).
These are called when the file is opened or closed.
(5) cifs_setattr_*() are made to call fscache_resize() to change the size
of the cache object.
(6) The functions to read and write data are stubbed out pending a
conversion to use netfslib.
Changes
=======
ver #8:
- Abstract cache invalidation into a helper function.
- Fix some checkpatch warnings[3].
ver #7:
- Removed the accidentally added-back call to get the super cookie in
cifs_root_iget().
- Fixed the right call to cifs_fscache_get_super_cookie() to take account
of the "-o fsc" mount flag.
ver #6:
- Moved the change of gfpflags_allow_blocking() to current_is_kswapd() for
cifs here.
- Fixed one of the error paths in cifs_atomic_open() to jump around the
call to use the cookie.
- Fixed an additional successful return in the middle of cifs_open() to
use the cookie on the way out.
- Only get a volume cookie (and thus inode cookies) when "-o fsc" is
supplied to mount.
ver #5:
- Fixed a couple of bits of cookie handling[2]:
- The cookie should be released in cifs_evict_inode(), not
cifsFileInfo_put_final(). The cookie needs to persist beyond file
closure so that writepages will be able to write to it.
- fscache_use_cookie() needs to be called in cifs_atomic_open() as it is
for cifs_open().
ver #4:
- Fixed the use of sizeof with memset.
- tcon->vol_create_time is __le64 so doesn't need cpu_to_le64().
ver #3:
- Canonicalise the cifs coherency data to make the cache portable.
- Set volume coherency data.
ver #2:
- Use gfpflags_allow_blocking() rather than using flag directly.
- Upgraded to -rc4 to allow for upstream changes[1].
- fscache_acquire_volume() now returns errors.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
cc: Steve French <smfrench@gmail.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-cachefs@redhat.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23b55d673d7527b093cd97b7c217c82e70cd1af0 [1]
Link: https://lore.kernel.org/r/3419813.1641592362@warthog.procyon.org.uk/ [2]
Link: https://lore.kernel.org/r/CAH2r5muTanw9pJqzAHd01d9A8keeChkzGsCEH6=0rHutVLAF-A@mail.gmail.com/ [3]
Link: https://lore.kernel.org/r/163819671009.215744.11230627184193298714.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906982979.143852.10672081929614953210.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967187187.1823006.247415138444991444.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021579335.640689.2681324337038770579.stgit@warthog.procyon.org.uk/ # v4
Link: https://lore.kernel.org/r/3462849.1641593783@warthog.procyon.org.uk/ # v5
Link: https://lore.kernel.org/r/1318953.1642024578@warthog.procyon.org.uk/ # v6
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-11-17 15:56:59 +00:00
|
|
|
|
2010-11-10 21:06:13 +00:00
|
|
|
|
2016-05-25 19:59:09 +02:00
|
|
|
|
2018-03-17 21:06:56 +00:00
|
|
|
|
2023-08-17 12:34:09 -03:00
|
|
|
|
2008-02-07 00:15:33 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2021-03-18 15:44:05 -04:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:32 -07:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
2009-02-25 14:19:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-02 20:28:18 -05:00
|
|
|
|
|
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-19 17:27:58 +02:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-19 17:27:58 +02:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
2018-06-19 17:27:58 +02:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:32 -07:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
|
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-05 19:25:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-11 12:37:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
|
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
2026-02-21 16:37:42 -08:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-05 19:25:55 +00:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
|
|
|
|
|
2008-10-16 19:27:12 -04:00
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
|
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
2013-03-11 13:08:49 +00:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
2014-04-30 09:31:45 -04:00
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-11 13:08:49 +00:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:45 -04:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
2008-09-24 11:32:59 -04:00
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2008-10-20 00:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2008-09-23 11:48:35 -04:00
|
|
|
|
2012-08-03 08:43:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
|
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
2018-10-26 19:07:21 +01:00
|
|
|
|
|
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
|
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
2008-09-16 14:05:16 -04:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2025-08-08 12:20:17 -03:00
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
2025-08-08 12:20:17 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-10-24 09:25:31 +01:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-08-08 12:20:17 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-05-19 03:06:57 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-16 14:05:16 -04:00
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-15 01:48:57 +00:00
|
|
|
|
2024-12-06 11:06:32 +00:00
|
|
|
|
2025-09-17 16:03:22 -03:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2012-07-13 13:58:14 +04:00
|
|
|
|
|
|
|
|
|
2008-09-16 14:05:16 -04:00
|
|
|
|
2007-07-15 01:48:57 +00:00
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2007-07-15 01:48:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2007-07-15 01:48:57 +00:00
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-18 12:30:32 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
2007-07-15 01:48:57 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
|
|
|
|
|
2012-08-03 08:43:01 -05:00
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-08-08 12:20:17 -03:00
|
|
|
|
|
|
|
|
|
2013-03-11 13:08:49 +00:00
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
2024-03-05 23:07:52 -06:00
|
|
|
|
2012-09-18 16:20:25 -07:00
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
2026-02-21 16:37:42 -08:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
|
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-16 23:50:58 +00:00
|
|
|
|
2008-09-16 14:05:16 -04:00
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
|
|
|
|
|
2005-05-17 13:16:18 -05:00
|
|
|
|
2023-07-05 15:01:39 -04:00
|
|
|
|
2006-03-31 22:43:50 +00:00
|
|
|
|
2023-10-04 14:52:53 -04:00
|
|
|
|
2009-04-20 19:45:13 +00:00
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2008-10-07 18:42:52 +00:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2025-08-08 12:20:17 -03:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-10 22:13:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2013-02-06 00:57:56 -08:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2013-02-06 00:57:56 -08:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2013-02-06 00:57:56 -08:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2013-02-06 00:57:56 -08:00
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-17 11:41:12 +03:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2012-03-17 11:41:12 +03:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2012-03-17 11:41:12 +03:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
2012-09-19 06:22:45 -07:00
|
|
|
|
2021-02-10 22:13:03 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-21 16:37:42 -08:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-19 20:25:34 -04:00
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
Change inode_operations.mkdir to return struct dentry *
Some filesystems, such as NFS, cifs, ceph, and fuse, do not have
complete control of sequencing on the actual filesystem (e.g. on a
different server) and may find that the inode created for a mkdir
request already exists in the icache and dcache by the time the mkdir
request returns. For example, if the filesystem is mounted twice the
directory could be visible on the other mount before it is on the
original mount, and a pair of name_to_handle_at(), open_by_handle_at()
calls could instantiate the directory inode with an IS_ROOT() dentry
before the first mkdir returns.
This means that the dentry passed to ->mkdir() may not be the one that
is associated with the inode after the ->mkdir() completes. Some
callers need to interact with the inode after the ->mkdir completes and
they currently need to perform a lookup in the (rare) case that the
dentry is no longer hashed.
This lookup-after-mkdir requires that the directory remains locked to
avoid races. Planned future patches to lock the dentry rather than the
directory will mean that this lookup cannot be performed atomically with
the mkdir.
To remove this barrier, this patch changes ->mkdir to return the
resulting dentry if it is different from the one passed in.
Possible returns are:
NULL - the directory was created and no other dentry was used
ERR_PTR() - an error occurred
non-NULL - this other dentry was spliced in
This patch only changes file-systems to return "ERR_PTR(err)" instead of
"err" or equivalent transformations. Subsequent patches will make
further changes to some file-systems to return a correct dentry.
Not all filesystems reliably result in a positive hashed dentry:
- NFS, cifs, hostfs will sometimes need to perform a lookup of
the name to get inode information. Races could result in this
returning something different. Note that this lookup is
non-atomic which is what we are trying to avoid. Placing the
lookup in filesystem code means it only happens when the filesystem
has no other option.
- kernfs and tracefs leave the dentry negative and the ->revalidate
operation ensures that lookup will be called to correctly populate
the dentry. This could be fixed but I don't think it is important
to any of the users of vfs_mkdir() which look at the dentry.
The recommendation to use
d_drop();d_splice_alias()
is ugly but fits with current practice. A planned future patch will
change this.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20250227013949.536172-2-neilb@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-02-27 12:32:53 +11:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2012-07-13 13:58:14 +04:00
|
|
|
|
2012-03-17 11:41:12 +03:00
|
|
|
|
2021-03-18 15:47:35 -04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-02-12 15:31:48 -06:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-10-24 09:25:31 +01:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
Change inode_operations.mkdir to return struct dentry *
Some filesystems, such as NFS, cifs, ceph, and fuse, do not have
complete control of sequencing on the actual filesystem (e.g. on a
different server) and may find that the inode created for a mkdir
request already exists in the icache and dcache by the time the mkdir
request returns. For example, if the filesystem is mounted twice the
directory could be visible on the other mount before it is on the
original mount, and a pair of name_to_handle_at(), open_by_handle_at()
calls could instantiate the directory inode with an IS_ROOT() dentry
before the first mkdir returns.
This means that the dentry passed to ->mkdir() may not be the one that
is associated with the inode after the ->mkdir() completes. Some
callers need to interact with the inode after the ->mkdir completes and
they currently need to perform a lookup in the (rare) case that the
dentry is no longer hashed.
This lookup-after-mkdir requires that the directory remains locked to
avoid races. Planned future patches to lock the dentry rather than the
directory will mean that this lookup cannot be performed atomically with
the mkdir.
To remove this barrier, this patch changes ->mkdir to return the
resulting dentry if it is different from the one passed in.
Possible returns are:
NULL - the directory was created and no other dentry was used
ERR_PTR() - an error occurred
non-NULL - this other dentry was spliced in
This patch only changes file-systems to return "ERR_PTR(err)" instead of
"err" or equivalent transformations. Subsequent patches will make
further changes to some file-systems to return a correct dentry.
Not all filesystems reliably result in a positive hashed dentry:
- NFS, cifs, hostfs will sometimes need to perform a lookup of
the name to get inode information. Races could result in this
returning something different. Note that this lookup is
non-atomic which is what we are trying to avoid. Placing the
lookup in filesystem code means it only happens when the filesystem
has no other option.
- kernfs and tracefs leave the dentry negative and the ->revalidate
operation ensures that lookup will be called to correctly populate
the dentry. This could be fixed but I don't think it is important
to any of the users of vfs_mkdir() which look at the dentry.
The recommendation to use
d_drop();d_splice_alias()
is ugly but fits with current practice. A planned future patch will
change this.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20250227013949.536172-2-neilb@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-02-27 12:32:53 +11:00
|
|
|
|
2012-07-13 13:58:14 +04:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-13 00:33:32 +00:00
|
|
|
|
2018-06-14 21:56:32 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2012-07-13 13:58:14 +04:00
|
|
|
|
|
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-23 22:07:35 +00:00
|
|
|
|
2007-07-10 01:16:18 +00:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2012-03-17 11:41:12 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-09-25 00:32:13 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
2019-09-25 00:32:13 -05:00
|
|
|
|
2012-07-13 14:04:46 +04:00
|
|
|
|
|
|
|
|
|
2007-07-10 01:16:18 +00:00
|
|
|
|
2012-02-17 16:13:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
Change inode_operations.mkdir to return struct dentry *
Some filesystems, such as NFS, cifs, ceph, and fuse, do not have
complete control of sequencing on the actual filesystem (e.g. on a
different server) and may find that the inode created for a mkdir
request already exists in the icache and dcache by the time the mkdir
request returns. For example, if the filesystem is mounted twice the
directory could be visible on the other mount before it is on the
original mount, and a pair of name_to_handle_at(), open_by_handle_at()
calls could instantiate the directory inode with an IS_ROOT() dentry
before the first mkdir returns.
This means that the dentry passed to ->mkdir() may not be the one that
is associated with the inode after the ->mkdir() completes. Some
callers need to interact with the inode after the ->mkdir completes and
they currently need to perform a lookup in the (rare) case that the
dentry is no longer hashed.
This lookup-after-mkdir requires that the directory remains locked to
avoid races. Planned future patches to lock the dentry rather than the
directory will mean that this lookup cannot be performed atomically with
the mkdir.
To remove this barrier, this patch changes ->mkdir to return the
resulting dentry if it is different from the one passed in.
Possible returns are:
NULL - the directory was created and no other dentry was used
ERR_PTR() - an error occurred
non-NULL - this other dentry was spliced in
This patch only changes file-systems to return "ERR_PTR(err)" instead of
"err" or equivalent transformations. Subsequent patches will make
further changes to some file-systems to return a correct dentry.
Not all filesystems reliably result in a positive hashed dentry:
- NFS, cifs, hostfs will sometimes need to perform a lookup of
the name to get inode information. Races could result in this
returning something different. Note that this lookup is
non-atomic which is what we are trying to avoid. Placing the
lookup in filesystem code means it only happens when the filesystem
has no other option.
- kernfs and tracefs leave the dentry negative and the ->revalidate
operation ensures that lookup will be called to correctly populate
the dentry. This could be fixed but I don't think it is important
to any of the users of vfs_mkdir() which look at the dentry.
The recommendation to use
d_drop();d_splice_alias()
is ugly but fits with current practice. A planned future patch will
change this.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20250227013949.536172-2-neilb@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-02-27 12:32:53 +11:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2012-07-10 16:14:18 +04:00
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-10-24 09:25:31 +01:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-10 16:14:18 +04:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2012-07-10 16:14:18 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-19 03:06:57 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-10 16:14:18 +04:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-02-17 16:13:30 +03:00
|
|
|
|
|
|
|
|
|
2009-01-13 22:03:55 +00:00
|
|
|
|
|
|
|
|
|
2012-02-17 16:13:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-13 22:03:55 +00:00
|
|
|
|
2023-07-05 15:01:39 -04:00
|
|
|
|
2023-10-04 14:52:53 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-16 02:52:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2023-11-25 23:55:06 -03:00
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
|
|
|
|
|
2013-03-11 13:08:49 +00:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2019-04-16 08:37:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2010-06-01 16:21:01 -04:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2010-06-01 16:21:01 -04:00
|
|
|
|
2024-12-27 16:04:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-11 12:37:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2014-01-16 15:53:36 +04:00
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2025-10-22 21:11:01 -03:00
|
|
|
|
2020-02-25 18:08:54 -06:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
2023-01-13 12:49:17 +01:00
|
|
|
|
2021-01-21 14:19:43 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2010-09-03 11:50:09 -04:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2025-08-08 11:43:29 -03:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
|
|
|
|
|
2021-07-29 07:45:29 +00:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-23 15:15:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-03 11:50:09 -04:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-10-24 09:25:31 +01:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-08-08 11:43:29 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-17 16:03:22 -03:00
|
|
|
|
2024-12-06 11:06:32 +00:00
|
|
|
|
|
|
|
|
|
2025-09-17 16:03:22 -03:00
|
|
|
|
2024-12-06 11:06:32 +00:00
|
|
|
|
2021-07-29 07:45:29 +00:00
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2021-07-29 07:45:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-08 11:43:29 -03:00
|
|
|
|
|
|
|
|
|
2014-07-23 15:15:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
2026-02-21 16:37:42 -08:00
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2008-10-22 13:57:01 -04:00
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-27 02:19:01 -05:00
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
2008-10-22 13:57:01 -04:00
|
|
|
|
2008-11-03 14:05:08 -05:00
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
2008-11-03 14:05:08 -05:00
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
2008-11-03 14:05:08 -05:00
|
|
|
|
2012-09-18 16:20:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-20 14:45:22 -04:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-08-18 20:49:58 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-08-08 11:43:29 -03:00
|
|
|
|
|
|
|
|
|
2008-09-23 18:23:33 +00:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2021-03-09 09:07:34 +10:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2021-03-09 09:07:34 +10:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2021-03-09 09:07:35 +10:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2026-04-07 16:58:10 -03:00
|
|
|
|
|
|
|
|
|
2025-09-07 21:24:06 -03:00
|
|
|
|
2018-05-24 06:54:27 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-05 13:01:06 +04:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-09 09:07:35 +10:00
|
|
|
|
2025-10-01 21:49:59 -05:00
|
|
|
|
2021-03-09 09:07:35 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-23 16:16:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-24 12:12:53 -06:00
|
|
|
|
2021-02-23 16:16:09 -06:00
|
|
|
|
|
|
|
|
|
2021-02-24 12:12:53 -06:00
|
|
|
|
2021-02-23 16:16:09 -06:00
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2010-05-17 14:51:49 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2010-05-17 14:51:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
|
|
|
|
|
2020-12-12 12:08:58 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
|
|
|
|
|
2015-12-13 22:11:16 +01:00
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
freezer,sched: Rewrite core freezer logic
Rewrite the core freezer to behave better wrt thawing and be simpler
in general.
By replacing PF_FROZEN with TASK_FROZEN, a special block state, it is
ensured frozen tasks stay frozen until thawed and don't randomly wake
up early, as is currently possible.
As such, it does away with PF_FROZEN and PF_FREEZER_SKIP, freeing up
two PF_flags (yay!).
Specifically; the current scheme works a little like:
freezer_do_not_count();
schedule();
freezer_count();
And either the task is blocked, or it lands in try_to_freezer()
through freezer_count(). Now, when it is blocked, the freezer
considers it frozen and continues.
However, on thawing, once pm_freezing is cleared, freezer_count()
stops working, and any random/spurious wakeup will let a task run
before its time.
That is, thawing tries to thaw things in explicit order; kernel
threads and workqueues before doing bringing SMP back before userspace
etc.. However due to the above mentioned races it is entirely possible
for userspace tasks to thaw (by accident) before SMP is back.
This can be a fatal problem in asymmetric ISA architectures (eg ARMv9)
where the userspace task requires a special CPU to run.
As said; replace this with a special task state TASK_FROZEN and add
the following state transitions:
TASK_FREEZABLE -> TASK_FROZEN
__TASK_STOPPED -> TASK_FROZEN
__TASK_TRACED -> TASK_FROZEN
The new TASK_FREEZABLE can be set on any state part of TASK_NORMAL
(IOW. TASK_INTERRUPTIBLE and TASK_UNINTERRUPTIBLE) -- any such state
is already required to deal with spurious wakeups and the freezer
causes one such when thawing the task (since the original state is
lost).
The special __TASK_{STOPPED,TRACED} states *can* be restored since
their canonical state is in ->jobctl.
With this, frozen tasks need an explicit TASK_FROZEN wakeup and are
free of undue (early / spurious) wakeups.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220822114649.055452969@infradead.org
2022-08-22 13:18:22 +02:00
|
|
|
|
2015-12-13 22:11:16 +01:00
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-15 16:59:01 -05:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2024-05-15 16:59:01 -05:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
2020-04-09 21:42:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sched: Remove proliferation of wait_on_bit() action functions
The current "wait_on_bit" interface requires an 'action'
function to be provided which does the actual waiting.
There are over 20 such functions, many of them identical.
Most cases can be satisfied by one of just two functions, one
which uses io_schedule() and one which just uses schedule().
So:
Rename wait_on_bit and wait_on_bit_lock to
wait_on_bit_action and wait_on_bit_lock_action
to make it explicit that they need an action function.
Introduce new wait_on_bit{,_lock} and wait_on_bit{,_lock}_io
which are *not* given an action function but implicitly use
a standard one.
The decision to error-out if a signal is pending is now made
based on the 'mode' argument rather than being encoded in the action
function.
All instances of the old wait_on_bit and wait_on_bit_lock which
can use the new version have been changed accordingly and their
action functions have been discarded.
wait_on_bit{_lock} does not return any specific error code in the
event of a signal so the caller must check for non-zero and
interpolate their own error code as appropriate.
The wait_on_bit() call in __fscache_wait_on_invalidate() was
ambiguous as it specified TASK_UNINTERRUPTIBLE but used
fscache_wait_bit_interruptible as an action function.
David Howells confirms this should be uniformly
"uninterruptible"
The main remaining user of wait_on_bit{,_lock}_action is NFS
which needs to use a freezer-aware schedule() call.
A comment in fs/gfs2/glock.c notes that having multiple 'action'
functions is useful as they display differently in the 'wchan'
field of 'ps'. (and /proc/$PID/wchan).
As the new bit_wait{,_io} functions are tagged "__sched", they
will not show up at all, but something higher in the stack. So
the distinction will still be visible, only with different
function names (gds2_glock_wait versus gfs2_glock_dq_wait in the
gfs2/glock.c case).
Since first version of this patch (against 3.15) two new action
functions appeared, on in NFS and one in CIFS. CIFS also now
uses an action function that makes the same freezer aware
schedule call as NFS.
Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: David Howells <dhowells@redhat.com> (fscache, keys)
Acked-by: Steven Whitehouse <swhiteho@redhat.com> (gfs2)
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Steve French <sfrench@samba.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140707051603.28027.72349.stgit@notabene.brown
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2014-07-07 15:16:04 +10:00
|
|
|
|
freezer,sched: Rewrite core freezer logic
Rewrite the core freezer to behave better wrt thawing and be simpler
in general.
By replacing PF_FROZEN with TASK_FROZEN, a special block state, it is
ensured frozen tasks stay frozen until thawed and don't randomly wake
up early, as is currently possible.
As such, it does away with PF_FROZEN and PF_FREEZER_SKIP, freeing up
two PF_flags (yay!).
Specifically; the current scheme works a little like:
freezer_do_not_count();
schedule();
freezer_count();
And either the task is blocked, or it lands in try_to_freezer()
through freezer_count(). Now, when it is blocked, the freezer
considers it frozen and continues.
However, on thawing, once pm_freezing is cleared, freezer_count()
stops working, and any random/spurious wakeup will let a task run
before its time.
That is, thawing tries to thaw things in explicit order; kernel
threads and workqueues before doing bringing SMP back before userspace
etc.. However due to the above mentioned races it is entirely possible
for userspace tasks to thaw (by accident) before SMP is back.
This can be a fatal problem in asymmetric ISA architectures (eg ARMv9)
where the userspace task requires a special CPU to run.
As said; replace this with a special task state TASK_FROZEN and add
the following state transitions:
TASK_FREEZABLE -> TASK_FROZEN
__TASK_STOPPED -> TASK_FROZEN
__TASK_TRACED -> TASK_FROZEN
The new TASK_FREEZABLE can be set on any state part of TASK_NORMAL
(IOW. TASK_INTERRUPTIBLE and TASK_UNINTERRUPTIBLE) -- any such state
is already required to deal with spurious wakeups and the freezer
causes one such when thawing the task (since the original state is
lost).
The special __TASK_{STOPPED,TRACED} states *can* be restored since
their canonical state is in ->jobctl.
With this, frozen tasks need an explicit TASK_FROZEN wakeup and are
free of undue (early / spurious) wakeups.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220822114649.055452969@infradead.org
2022-08-22 13:18:22 +02:00
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 10:22:28 +00:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2021-08-10 10:22:28 +00:00
|
|
|
|
|
|
|
|
|
2024-05-15 16:59:01 -05:00
|
|
|
|
2024-03-27 08:51:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
2024-03-27 08:51:38 +00:00
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
|
|
|
|
|
2021-08-10 10:22:28 +00:00
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
2014-06-09 19:08:43 -07:00
|
|
|
|
2014-04-30 09:31:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:46 -04:00
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
2021-03-09 09:07:34 +10:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2010-09-20 16:01:31 -07:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2021-03-09 09:07:34 +10:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2010-02-12 07:44:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
2020-02-19 06:01:03 +10:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2021-03-09 09:07:34 +10:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
2025-08-26 11:39:02 -04:00
|
|
|
|
2016-09-16 12:44:21 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-02-19 06:01:03 +10:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2010-02-12 07:44:16 -05:00
|
|
|
|
|
|
|
|
|
2023-11-25 23:55:03 -03:00
|
|
|
|
2020-02-19 06:01:03 +10:00
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2020-02-19 06:01:03 +10:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:46 -04:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-30 09:31:46 -04:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
2023-01-13 12:49:12 +01:00
|
|
|
|
2021-01-21 14:19:43 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2010-10-07 14:46:28 -04:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-10-24 09:25:31 +01:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-19 00:05:48 -05:00
|
|
|
|
2020-02-18 18:07:57 -06:00
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2011-05-20 17:00:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-11-07 19:26:33 +00:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2020-02-18 18:07:57 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2023-08-07 15:38:33 -04:00
|
|
|
|
2020-12-14 16:40:17 +10:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
2017-09-21 21:32:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-19 17:27:58 +02:00
|
|
|
|
|
|
|
|
|
2017-09-21 21:32:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2012-11-25 08:00:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2011-04-07 18:18:11 +04:00
|
|
|
|
|
|
|
|
|
2020-02-28 12:22:59 +03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2019-04-25 16:45:29 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context
While randstruct was satisfied with using an open-coded "void *" offset
cast for the netfs_i_context <-> inode casting, __builtin_object_size() as
used by FORTIFY_SOURCE was not as easily fooled. This was causing the
following complaint[1] from gcc v12:
In file included from include/linux/string.h:253,
from include/linux/ceph/ceph_debug.h:7,
from fs/ceph/inode.c:2:
In function 'fortify_memset_chk',
inlined from 'netfs_i_context_init' at include/linux/netfs.h:326:2,
inlined from 'ceph_alloc_inode' at fs/ceph/inode.c:463:2:
include/linux/fortify-string.h:242:25: warning: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
242 | __write_overflow_field(p_size_field, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fix this by embedding a struct inode into struct netfs_i_context (which
should perhaps be renamed to struct netfs_inode). The struct inode
vfs_inode fields are then removed from the 9p, afs, ceph and cifs inode
structs and vfs_inode is then simply changed to "netfs.inode" in those
filesystems.
Further, rename netfs_i_context to netfs_inode, get rid of the
netfs_inode() function that converted a netfs_i_context pointer to an
inode pointer (that can now be done with &ctx->inode) and rename the
netfs_i_context() function to netfs_inode() (which is now a wrapper
around container_of()).
Most of the changes were done with:
perl -p -i -e 's/vfs_inode/netfs.inode/'g \
`git grep -l 'vfs_inode' -- fs/{9p,afs,ceph,cifs}/*.[ch]`
Kees suggested doing it with a pair structure[2] and a special
declarator to insert that into the network filesystem's inode
wrapper[3], but I think it's cleaner to embed it - and then it doesn't
matter if struct randomisation reorders things.
Dave Chinner suggested using a filesystem-specific VFS_I() function in
each filesystem to convert that filesystem's own inode wrapper struct
into the VFS inode struct[4].
Version #2:
- Fix a couple of missed name changes due to a disabled cifs option.
- Rename nfs_i_context to nfs_inode
- Use "netfs" instead of "nic" as the member name in per-fs inode wrapper
structs.
[ This also undoes commit 507160f46c55 ("netfs: gcc-12: temporarily
disable '-Wattribute-warning' for now") that is no longer needed ]
Fixes: bc899ee1c898 ("netfs: Add a netfs inode context")
Reported-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
cc: Jonathan Corbet <corbet@lwn.net>
cc: Eric Van Hensbergen <ericvh@gmail.com>
cc: Latchesar Ionkov <lucho@ionkov.net>
cc: Dominique Martinet <asmadeus@codewreck.org>
cc: Christian Schoenebeck <linux_oss@crudebyte.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Ilya Dryomov <idryomov@gmail.com>
cc: Steve French <smfrench@gmail.com>
cc: William Kucharski <william.kucharski@oracle.com>
cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
cc: Dave Chinner <david@fromorbit.com>
cc: linux-doc@vger.kernel.org
cc: v9fs-developer@lists.sourceforge.net
cc: linux-afs@lists.infradead.org
cc: ceph-devel@vger.kernel.org
cc: linux-cifs@vger.kernel.org
cc: samba-technical@lists.samba.org
cc: linux-fsdevel@vger.kernel.org
cc: linux-hardening@vger.kernel.org
Link: https://lore.kernel.org/r/d2ad3a3d7bdd794c6efb562d2f2b655fb67756b9.camel@kernel.org/ [1]
Link: https://lore.kernel.org/r/20220517210230.864239-1-keescook@chromium.org/ [2]
Link: https://lore.kernel.org/r/20220518202212.2322058-1-keescook@chromium.org/ [3]
Link: https://lore.kernel.org/r/20220524101205.GI2306852@dread.disaster.area/ [4]
Link: https://lore.kernel.org/r/165296786831.3591209.12111293034669289733.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/165305805651.4094995.7763502506786714216.stgit@warthog.procyon.org.uk # v2
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-06-09 21:46:04 +01:00
|
|
|
|
2019-04-25 16:45:29 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-10-24 09:25:31 +01:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2019-04-25 16:45:29 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
smb: client: fix open handle lookup in cifs_open()
When looking up open handles to be re-used in cifs_open(), calling
cifs_get_{writable,readable}_path() is wrong as it will look up for
the first matching open handle, and if @file->f_flags doesn't match,
it will ignore the remaining open handles in
cifsInodeInfo::openFileList that might potentially match
@file->f_flags.
For writable and readable handles, fix this by calling
__cifs_get_writable_file() and __find_readable_file(), respectively,
with FIND_OPEN_FLAGS set.
With the patch, the following program ends up with two opens instead
of three sent over the wire.
```
#define _GNU_SOURCE
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
int fd;
fd = open("/mnt/1/foo", O_CREAT | O_WRONLY | O_TRUNC, 0664);
close(fd);
fd = open("/mnt/1/foo", O_DIRECT | O_WRONLY);
close(fd);
fd = open("/mnt/1/foo", O_WRONLY);
close(fd);
fd = open("/mnt/1/foo", O_DIRECT | O_WRONLY);
close(fd);
return 0;
}
```
```
$ mount.cifs //srv/share /mnt/1 -o ...
$ gcc test.c && ./a.out
```
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
2026-03-11 15:00:52 -03:00
|
|
|
|
2019-04-25 16:45:29 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-09-15 01:10:40 -05:00
|
|
|
|
2019-04-25 16:45:29 +10:00
|
|
|
|
|
|
|
|
|
2020-01-17 11:45:02 +10:00
|
|
|
|
2007-02-26 16:46:11 +00:00
|
|
|
|
2007-02-26 20:06:29 +00:00
|
|
|
|
2007-02-26 16:46:11 +00:00
|
|
|
|
2026-03-18 21:43:51 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-26 20:06:29 +00:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2013-09-12 15:13:56 -07:00
|
|
|
|
2025-10-07 16:23:25 -03:00
|
|
|
|
2007-02-26 16:46:11 +00:00
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2012-09-18 16:20:31 -07:00
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2012-09-18 16:20:31 -07:00
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
smb: client: fix open handle lookup in cifs_open()
When looking up open handles to be re-used in cifs_open(), calling
cifs_get_{writable,readable}_path() is wrong as it will look up for
the first matching open handle, and if @file->f_flags doesn't match,
it will ignore the remaining open handles in
cifsInodeInfo::openFileList that might potentially match
@file->f_flags.
For writable and readable handles, fix this by calling
__cifs_get_writable_file() and __find_readable_file(), respectively,
with FIND_OPEN_FLAGS set.
With the patch, the following program ends up with two opens instead
of three sent over the wire.
```
#define _GNU_SOURCE
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
int fd;
fd = open("/mnt/1/foo", O_CREAT | O_WRONLY | O_TRUNC, 0664);
close(fd);
fd = open("/mnt/1/foo", O_DIRECT | O_WRONLY);
close(fd);
fd = open("/mnt/1/foo", O_WRONLY);
close(fd);
fd = open("/mnt/1/foo", O_DIRECT | O_WRONLY);
close(fd);
return 0;
}
```
```
$ mount.cifs //srv/share /mnt/1 -o ...
$ gcc test.c && ./a.out
```
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
2026-03-11 15:00:52 -03:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
2012-09-18 16:20:31 -07:00
|
|
|
|
|
|
|
|
|
2010-09-20 16:01:31 -07:00
|
|
|
|
2012-09-18 16:20:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-18 16:20:31 -07:00
|
|
|
|
|
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
2015-03-17 22:25:59 +00:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2011-05-27 04:34:02 +00:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2014-08-19 20:25:34 -04:00
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2010-06-04 11:30:03 +02:00
|
|
|
|
|
|
|
|
|
2023-01-13 12:49:11 +01:00
|
|
|
|
2010-06-04 11:30:03 +02:00
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-26 13:35:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-08 11:15:28 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-22 14:52:29 -04:00
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2025-10-07 16:23:23 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2025-10-07 16:23:23 -03:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-21 16:37:42 -08:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-06 00:57:56 -08:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-06 00:57:56 -08:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
2018-06-19 17:27:58 +02:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-19 17:27:58 +02:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-19 17:27:58 +02:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-09 20:02:50 -04:00
|
|
|
|
smb: client: fix open handle lookup in cifs_open()
When looking up open handles to be re-used in cifs_open(), calling
cifs_get_{writable,readable}_path() is wrong as it will look up for
the first matching open handle, and if @file->f_flags doesn't match,
it will ignore the remaining open handles in
cifsInodeInfo::openFileList that might potentially match
@file->f_flags.
For writable and readable handles, fix this by calling
__cifs_get_writable_file() and __find_readable_file(), respectively,
with FIND_OPEN_FLAGS set.
With the patch, the following program ends up with two opens instead
of three sent over the wire.
```
#define _GNU_SOURCE
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
int fd;
fd = open("/mnt/1/foo", O_CREAT | O_WRONLY | O_TRUNC, 0664);
close(fd);
fd = open("/mnt/1/foo", O_DIRECT | O_WRONLY);
close(fd);
fd = open("/mnt/1/foo", O_WRONLY);
close(fd);
fd = open("/mnt/1/foo", O_DIRECT | O_WRONLY);
close(fd);
return 0;
}
```
```
$ mount.cifs //srv/share /mnt/1 -o ...
$ gcc test.c && ./a.out
```
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
2026-03-11 15:00:52 -03:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-09 20:02:50 -04:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
2010-09-29 19:51:11 -04:00
|
|
|
|
2009-07-09 20:02:50 -04:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2010-06-04 11:30:02 +02:00
|
|
|
|
|
|
|
|
|
2010-02-08 17:39:58 +00:00
|
|
|
|
2010-06-04 11:30:02 +02:00
|
|
|
|
cifs: Support fscache indexing rewrite
Change the cifs filesystem to take account of the changes to fscache's
indexing rewrite and reenable caching in cifs.
The following changes have been made:
(1) The fscache_netfs struct is no more, and there's no need to register
the filesystem as a whole.
(2) The session cookie is now an fscache_volume cookie, allocated with
fscache_acquire_volume(). That takes three parameters: a string
representing the "volume" in the index, a string naming the cache to
use (or NULL) and a u64 that conveys coherency metadata for the
volume.
For cifs, I've made it render the volume name string as:
"cifs,<ipaddress>,<sharename>"
where the sharename has '/' characters replaced with ';'.
This probably needs rethinking a bit as the total name could exceed
the maximum filename component length.
Further, the coherency data is currently just set to 0. It needs
something else doing with it - I wonder if it would suffice simply to
sum the resource_id, vol_create_time and vol_serial_number or maybe
hash them.
(3) The fscache_cookie_def is no more and needed information is passed
directly to fscache_acquire_cookie(). The cache no longer calls back
into the filesystem, but rather metadata changes are indicated at
other times.
fscache_acquire_cookie() is passed the same keying and coherency
information as before.
(4) The functions to set/reset cookies are removed and
fscache_use_cookie() and fscache_unuse_cookie() are used instead.
fscache_use_cookie() is passed a flag to indicate if the cookie is
opened for writing. fscache_unuse_cookie() is passed updates for the
metadata if we changed it (ie. if the file was opened for writing).
These are called when the file is opened or closed.
(5) cifs_setattr_*() are made to call fscache_resize() to change the size
of the cache object.
(6) The functions to read and write data are stubbed out pending a
conversion to use netfslib.
Changes
=======
ver #8:
- Abstract cache invalidation into a helper function.
- Fix some checkpatch warnings[3].
ver #7:
- Removed the accidentally added-back call to get the super cookie in
cifs_root_iget().
- Fixed the right call to cifs_fscache_get_super_cookie() to take account
of the "-o fsc" mount flag.
ver #6:
- Moved the change of gfpflags_allow_blocking() to current_is_kswapd() for
cifs here.
- Fixed one of the error paths in cifs_atomic_open() to jump around the
call to use the cookie.
- Fixed an additional successful return in the middle of cifs_open() to
use the cookie on the way out.
- Only get a volume cookie (and thus inode cookies) when "-o fsc" is
supplied to mount.
ver #5:
- Fixed a couple of bits of cookie handling[2]:
- The cookie should be released in cifs_evict_inode(), not
cifsFileInfo_put_final(). The cookie needs to persist beyond file
closure so that writepages will be able to write to it.
- fscache_use_cookie() needs to be called in cifs_atomic_open() as it is
for cifs_open().
ver #4:
- Fixed the use of sizeof with memset.
- tcon->vol_create_time is __le64 so doesn't need cpu_to_le64().
ver #3:
- Canonicalise the cifs coherency data to make the cache portable.
- Set volume coherency data.
ver #2:
- Use gfpflags_allow_blocking() rather than using flag directly.
- Upgraded to -rc4 to allow for upstream changes[1].
- fscache_acquire_volume() now returns errors.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
cc: Steve French <smfrench@gmail.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-cachefs@redhat.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23b55d673d7527b093cd97b7c217c82e70cd1af0 [1]
Link: https://lore.kernel.org/r/3419813.1641592362@warthog.procyon.org.uk/ [2]
Link: https://lore.kernel.org/r/CAH2r5muTanw9pJqzAHd01d9A8keeChkzGsCEH6=0rHutVLAF-A@mail.gmail.com/ [3]
Link: https://lore.kernel.org/r/163819671009.215744.11230627184193298714.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906982979.143852.10672081929614953210.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967187187.1823006.247415138444991444.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021579335.640689.2681324337038770579.stgit@warthog.procyon.org.uk/ # v4
Link: https://lore.kernel.org/r/3462849.1641593783@warthog.procyon.org.uk/ # v5
Link: https://lore.kernel.org/r/1318953.1642024578@warthog.procyon.org.uk/ # v6
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-11-17 15:56:59 +00:00
|
|
|
|
2010-07-18 17:51:21 -04:00
|
|
|
|
2022-02-15 19:22:18 +00:00
|
|
|
|
cifs: Support fscache indexing rewrite
Change the cifs filesystem to take account of the changes to fscache's
indexing rewrite and reenable caching in cifs.
The following changes have been made:
(1) The fscache_netfs struct is no more, and there's no need to register
the filesystem as a whole.
(2) The session cookie is now an fscache_volume cookie, allocated with
fscache_acquire_volume(). That takes three parameters: a string
representing the "volume" in the index, a string naming the cache to
use (or NULL) and a u64 that conveys coherency metadata for the
volume.
For cifs, I've made it render the volume name string as:
"cifs,<ipaddress>,<sharename>"
where the sharename has '/' characters replaced with ';'.
This probably needs rethinking a bit as the total name could exceed
the maximum filename component length.
Further, the coherency data is currently just set to 0. It needs
something else doing with it - I wonder if it would suffice simply to
sum the resource_id, vol_create_time and vol_serial_number or maybe
hash them.
(3) The fscache_cookie_def is no more and needed information is passed
directly to fscache_acquire_cookie(). The cache no longer calls back
into the filesystem, but rather metadata changes are indicated at
other times.
fscache_acquire_cookie() is passed the same keying and coherency
information as before.
(4) The functions to set/reset cookies are removed and
fscache_use_cookie() and fscache_unuse_cookie() are used instead.
fscache_use_cookie() is passed a flag to indicate if the cookie is
opened for writing. fscache_unuse_cookie() is passed updates for the
metadata if we changed it (ie. if the file was opened for writing).
These are called when the file is opened or closed.
(5) cifs_setattr_*() are made to call fscache_resize() to change the size
of the cache object.
(6) The functions to read and write data are stubbed out pending a
conversion to use netfslib.
Changes
=======
ver #8:
- Abstract cache invalidation into a helper function.
- Fix some checkpatch warnings[3].
ver #7:
- Removed the accidentally added-back call to get the super cookie in
cifs_root_iget().
- Fixed the right call to cifs_fscache_get_super_cookie() to take account
of the "-o fsc" mount flag.
ver #6:
- Moved the change of gfpflags_allow_blocking() to current_is_kswapd() for
cifs here.
- Fixed one of the error paths in cifs_atomic_open() to jump around the
call to use the cookie.
- Fixed an additional successful return in the middle of cifs_open() to
use the cookie on the way out.
- Only get a volume cookie (and thus inode cookies) when "-o fsc" is
supplied to mount.
ver #5:
- Fixed a couple of bits of cookie handling[2]:
- The cookie should be released in cifs_evict_inode(), not
cifsFileInfo_put_final(). The cookie needs to persist beyond file
closure so that writepages will be able to write to it.
- fscache_use_cookie() needs to be called in cifs_atomic_open() as it is
for cifs_open().
ver #4:
- Fixed the use of sizeof with memset.
- tcon->vol_create_time is __le64 so doesn't need cpu_to_le64().
ver #3:
- Canonicalise the cifs coherency data to make the cache portable.
- Set volume coherency data.
ver #2:
- Use gfpflags_allow_blocking() rather than using flag directly.
- Upgraded to -rc4 to allow for upstream changes[1].
- fscache_acquire_volume() now returns errors.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
cc: Steve French <smfrench@gmail.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-cachefs@redhat.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23b55d673d7527b093cd97b7c217c82e70cd1af0 [1]
Link: https://lore.kernel.org/r/3419813.1641592362@warthog.procyon.org.uk/ [2]
Link: https://lore.kernel.org/r/CAH2r5muTanw9pJqzAHd01d9A8keeChkzGsCEH6=0rHutVLAF-A@mail.gmail.com/ [3]
Link: https://lore.kernel.org/r/163819671009.215744.11230627184193298714.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906982979.143852.10672081929614953210.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967187187.1823006.247415138444991444.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021579335.640689.2681324337038770579.stgit@warthog.procyon.org.uk/ # v4
Link: https://lore.kernel.org/r/3462849.1641593783@warthog.procyon.org.uk/ # v5
Link: https://lore.kernel.org/r/1318953.1642024578@warthog.procyon.org.uk/ # v6
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-11-17 15:56:59 +00:00
|
|
|
|
|
|
|
|
|
2010-06-04 11:30:02 +02:00
|
|
|
|
2023-01-13 12:49:11 +01:00
|
|
|
|
2010-06-04 11:30:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-06 00:33:17 -08:00
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-06-24 17:39:43 +01:00
|
|
|
|
2014-08-19 20:25:34 -04:00
|
|
|
|
2005-11-29 20:20:10 -08:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2010-06-04 11:30:03 +02:00
|
|
|
|
|
|
|
|
|
2023-01-13 12:49:11 +01:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
2007-07-13 00:33:32 +00:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-03-26 13:35:37 -04:00
|
|
|
|
|
|
|
|
|
2020-02-24 17:37:39 -06:00
|
|
|
|
|
|
|
|
|
2009-03-26 13:35:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-24 17:37:39 -06:00
|
|
|
|
2009-03-26 13:35:37 -04:00
|
|
|
|
2020-02-24 17:37:39 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-08 11:15:28 -08:00
|
|
|
|
|
|
|
|
|
2010-10-22 14:52:29 -04:00
|
|
|
|
[CIFS] Fix potential data corruption when writing out cached dirty pages
Fix RedHat bug 329431
The idea here is separate "conscious" from "unconscious" flushes.
Conscious flushes are those due to a fsync() or close(). Unconscious
ones are flushes that occur as a side effect of some other operation or
due to memory pressure.
Currently, when an error occurs during an unconscious flush (ENOSPC or
EIO), we toss out the page and don't preserve that error to report to
the user when a conscious flush occurs. If after the unconscious flush,
there are no more dirty pages for the inode, the conscious flush will
simply return success even though there were previous errors when writing
out pages. This can lead to data corruption.
The easiest way to reproduce this is to mount up a CIFS share that's
very close to being full or where the user is very close to quota. mv
a file to the share that's slightly larger than the quota allows. The
writes will all succeed (since they go to pagecache). The mv will do a
setattr to set the new file's attributes. This calls
filemap_write_and_wait,
which will return an error since all of the pages can't be written out.
Then later, when the flush and release ops occur, there are no more
dirty pages in pagecache for the file and those operations return 0. mv
then assumes that the file was written out correctly and deletes the
original.
CIFS already has a write_behind_rc variable where it stores the results
from earlier flushes, but that value is only reported in cifs_close.
Since the VFS ignores the return value from the release operation, this
isn't helpful. We should be reporting this error during the flush
operation.
This patch does the following:
1) changes cifs_fsync to use filemap_write_and_wait and cifs_flush and also
sync to check its return code. If it returns successful, they then check
the value of write_behind_rc to see if an earlier flush had reported any
errors. If so, they return that error and clear write_behind_rc.
2) sets write_behind_rc in a few other places where pages are written
out as a side effect of other operations and the code waits on them.
3) changes cifs_setattr to only call filemap_write_and_wait for
ATTR_SIZE changes.
4) makes cifs_writepages accurately distinguish between EIO and ENOSPC
errors when writing out pages.
Some simple testing indicates that the patch works as expected and that
it fixes the reproduceable known problem.
Acked-by: Dave Kleikamp <shaggy@austin.rr.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
2007-11-20 23:19:03 +00:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-14 15:15:31 +08:00
|
|
|
|
2019-07-19 08:12:11 +10:00
|
|
|
|
|
|
|
|
|
2008-03-14 19:21:31 +00:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
2008-07-23 21:28:12 +00:00
|
|
|
|
2005-09-20 20:49:16 -07:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2025-10-07 16:23:23 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
2025-10-07 16:23:23 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
2011-10-13 10:26:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2013-02-06 00:33:17 -08:00
|
|
|
|
cifs: Fix unix perm bits to cifsacl conversion for "other" bits.
With the "cifsacl" mount option, the mode bits set on the file/dir
is converted to corresponding ACEs in DACL. However, only the
ALLOWED ACEs were being set for "owner" and "group" SIDs. Since
owner is a subset of group, and group is a subset of
everyone/world SID, in order to properly emulate unix perm groups,
we need to add DENIED ACEs. If we don't do that, "owner" and "group"
SIDs could get more access rights than they should. Which is what
was happening. This fixes it.
We try to keep the "preferred" order of ACEs, i.e. DENYs followed
by ALLOWs. However, for a small subset of cases we cannot
maintain the preferred order. In that case, we'll end up with the
DENY ACE for group after the ALLOW for the owner.
If owner SID == group SID, use the more restrictive
among the two perm bits and convert them to ACEs.
Also, for reverse mapping, i.e. to convert ACL to unix perm bits,
for the "others" bits, we needed to add the masked bits of the
owner and group masks to others mask.
Updated version of patch fixes a problem noted by the kernel
test robot.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-08-17 03:23:12 -07:00
|
|
|
|
|
|
|
|
|
2011-10-13 10:26:03 -05:00
|
|
|
|
|
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2011-10-13 10:26:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-10-18 03:05:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2005-11-19 21:04:52 -08:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
|
|
|
|
|
cifs: Fix unix perm bits to cifsacl conversion for "other" bits.
With the "cifsacl" mount option, the mode bits set on the file/dir
is converted to corresponding ACEs in DACL. However, only the
ALLOWED ACEs were being set for "owner" and "group" SIDs. Since
owner is a subset of group, and group is a subset of
everyone/world SID, in order to properly emulate unix perm groups,
we need to add DENIED ACEs. If we don't do that, "owner" and "group"
SIDs could get more access rights than they should. Which is what
was happening. This fixes it.
We try to keep the "preferred" order of ACEs, i.e. DENYs followed
by ALLOWs. However, for a small subset of cases we cannot
maintain the preferred order. In that case, we'll end up with the
DENY ACE for group after the ALLOW for the owner.
If owner SID == group SID, use the more restrictive
among the two perm bits and convert them to ACEs.
Also, for reverse mapping, i.e. to convert ACL to unix perm bits,
for the "others" bits, we needed to add the masked bits of the
owner and group masks to others mask.
Updated version of patch fixes a problem noted by the kernel
test robot.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-08-17 03:23:12 -07:00
|
|
|
|
2013-02-06 00:33:17 -08:00
|
|
|
|
2010-11-27 11:37:26 -06:00
|
|
|
|
2013-05-04 22:12:25 -05:00
|
|
|
|
|
|
|
|
|
2010-11-27 11:37:26 -06:00
|
|
|
|
|
|
|
|
|
cifs: Fix unix perm bits to cifsacl conversion for "other" bits.
With the "cifsacl" mount option, the mode bits set on the file/dir
is converted to corresponding ACEs in DACL. However, only the
ALLOWED ACEs were being set for "owner" and "group" SIDs. Since
owner is a subset of group, and group is a subset of
everyone/world SID, in order to properly emulate unix perm groups,
we need to add DENIED ACEs. If we don't do that, "owner" and "group"
SIDs could get more access rights than they should. Which is what
was happening. This fixes it.
We try to keep the "preferred" order of ACEs, i.e. DENYs followed
by ALLOWs. However, for a small subset of cases we cannot
maintain the preferred order. In that case, we'll end up with the
DENY ACE for group after the ALLOW for the owner.
If owner SID == group SID, use the more restrictive
among the two perm bits and convert them to ACEs.
Also, for reverse mapping, i.e. to convert ACL to unix perm bits,
for the "others" bits, we needed to add the masked bits of the
owner and group masks to others mask.
Updated version of patch fixes a problem noted by the kernel
test robot.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-08-17 03:23:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-27 11:37:26 -06:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
|
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
|
|
|
|
|
2020-12-12 13:40:50 -06:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
2026-02-23 13:34:35 -03:00
|
|
|
|
2008-05-22 09:33:34 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2005-09-20 20:49:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 01:16:18 +00:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2005-09-20 20:49:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-04 11:30:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cifs: Support fscache indexing rewrite
Change the cifs filesystem to take account of the changes to fscache's
indexing rewrite and reenable caching in cifs.
The following changes have been made:
(1) The fscache_netfs struct is no more, and there's no need to register
the filesystem as a whole.
(2) The session cookie is now an fscache_volume cookie, allocated with
fscache_acquire_volume(). That takes three parameters: a string
representing the "volume" in the index, a string naming the cache to
use (or NULL) and a u64 that conveys coherency metadata for the
volume.
For cifs, I've made it render the volume name string as:
"cifs,<ipaddress>,<sharename>"
where the sharename has '/' characters replaced with ';'.
This probably needs rethinking a bit as the total name could exceed
the maximum filename component length.
Further, the coherency data is currently just set to 0. It needs
something else doing with it - I wonder if it would suffice simply to
sum the resource_id, vol_create_time and vol_serial_number or maybe
hash them.
(3) The fscache_cookie_def is no more and needed information is passed
directly to fscache_acquire_cookie(). The cache no longer calls back
into the filesystem, but rather metadata changes are indicated at
other times.
fscache_acquire_cookie() is passed the same keying and coherency
information as before.
(4) The functions to set/reset cookies are removed and
fscache_use_cookie() and fscache_unuse_cookie() are used instead.
fscache_use_cookie() is passed a flag to indicate if the cookie is
opened for writing. fscache_unuse_cookie() is passed updates for the
metadata if we changed it (ie. if the file was opened for writing).
These are called when the file is opened or closed.
(5) cifs_setattr_*() are made to call fscache_resize() to change the size
of the cache object.
(6) The functions to read and write data are stubbed out pending a
conversion to use netfslib.
Changes
=======
ver #8:
- Abstract cache invalidation into a helper function.
- Fix some checkpatch warnings[3].
ver #7:
- Removed the accidentally added-back call to get the super cookie in
cifs_root_iget().
- Fixed the right call to cifs_fscache_get_super_cookie() to take account
of the "-o fsc" mount flag.
ver #6:
- Moved the change of gfpflags_allow_blocking() to current_is_kswapd() for
cifs here.
- Fixed one of the error paths in cifs_atomic_open() to jump around the
call to use the cookie.
- Fixed an additional successful return in the middle of cifs_open() to
use the cookie on the way out.
- Only get a volume cookie (and thus inode cookies) when "-o fsc" is
supplied to mount.
ver #5:
- Fixed a couple of bits of cookie handling[2]:
- The cookie should be released in cifs_evict_inode(), not
cifsFileInfo_put_final(). The cookie needs to persist beyond file
closure so that writepages will be able to write to it.
- fscache_use_cookie() needs to be called in cifs_atomic_open() as it is
for cifs_open().
ver #4:
- Fixed the use of sizeof with memset.
- tcon->vol_create_time is __le64 so doesn't need cpu_to_le64().
ver #3:
- Canonicalise the cifs coherency data to make the cache portable.
- Set volume coherency data.
ver #2:
- Use gfpflags_allow_blocking() rather than using flag directly.
- Upgraded to -rc4 to allow for upstream changes[1].
- fscache_acquire_volume() now returns errors.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
cc: Steve French <smfrench@gmail.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-cachefs@redhat.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23b55d673d7527b093cd97b7c217c82e70cd1af0 [1]
Link: https://lore.kernel.org/r/3419813.1641592362@warthog.procyon.org.uk/ [2]
Link: https://lore.kernel.org/r/CAH2r5muTanw9pJqzAHd01d9A8keeChkzGsCEH6=0rHutVLAF-A@mail.gmail.com/ [3]
Link: https://lore.kernel.org/r/163819671009.215744.11230627184193298714.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906982979.143852.10672081929614953210.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967187187.1823006.247415138444991444.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021579335.640689.2681324337038770579.stgit@warthog.procyon.org.uk/ # v4
Link: https://lore.kernel.org/r/3462849.1641593783@warthog.procyon.org.uk/ # v5
Link: https://lore.kernel.org/r/1318953.1642024578@warthog.procyon.org.uk/ # v6
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-11-17 15:56:59 +00:00
|
|
|
|
2010-07-18 17:51:21 -04:00
|
|
|
|
2022-02-15 19:22:18 +00:00
|
|
|
|
cifs: Support fscache indexing rewrite
Change the cifs filesystem to take account of the changes to fscache's
indexing rewrite and reenable caching in cifs.
The following changes have been made:
(1) The fscache_netfs struct is no more, and there's no need to register
the filesystem as a whole.
(2) The session cookie is now an fscache_volume cookie, allocated with
fscache_acquire_volume(). That takes three parameters: a string
representing the "volume" in the index, a string naming the cache to
use (or NULL) and a u64 that conveys coherency metadata for the
volume.
For cifs, I've made it render the volume name string as:
"cifs,<ipaddress>,<sharename>"
where the sharename has '/' characters replaced with ';'.
This probably needs rethinking a bit as the total name could exceed
the maximum filename component length.
Further, the coherency data is currently just set to 0. It needs
something else doing with it - I wonder if it would suffice simply to
sum the resource_id, vol_create_time and vol_serial_number or maybe
hash them.
(3) The fscache_cookie_def is no more and needed information is passed
directly to fscache_acquire_cookie(). The cache no longer calls back
into the filesystem, but rather metadata changes are indicated at
other times.
fscache_acquire_cookie() is passed the same keying and coherency
information as before.
(4) The functions to set/reset cookies are removed and
fscache_use_cookie() and fscache_unuse_cookie() are used instead.
fscache_use_cookie() is passed a flag to indicate if the cookie is
opened for writing. fscache_unuse_cookie() is passed updates for the
metadata if we changed it (ie. if the file was opened for writing).
These are called when the file is opened or closed.
(5) cifs_setattr_*() are made to call fscache_resize() to change the size
of the cache object.
(6) The functions to read and write data are stubbed out pending a
conversion to use netfslib.
Changes
=======
ver #8:
- Abstract cache invalidation into a helper function.
- Fix some checkpatch warnings[3].
ver #7:
- Removed the accidentally added-back call to get the super cookie in
cifs_root_iget().
- Fixed the right call to cifs_fscache_get_super_cookie() to take account
of the "-o fsc" mount flag.
ver #6:
- Moved the change of gfpflags_allow_blocking() to current_is_kswapd() for
cifs here.
- Fixed one of the error paths in cifs_atomic_open() to jump around the
call to use the cookie.
- Fixed an additional successful return in the middle of cifs_open() to
use the cookie on the way out.
- Only get a volume cookie (and thus inode cookies) when "-o fsc" is
supplied to mount.
ver #5:
- Fixed a couple of bits of cookie handling[2]:
- The cookie should be released in cifs_evict_inode(), not
cifsFileInfo_put_final(). The cookie needs to persist beyond file
closure so that writepages will be able to write to it.
- fscache_use_cookie() needs to be called in cifs_atomic_open() as it is
for cifs_open().
ver #4:
- Fixed the use of sizeof with memset.
- tcon->vol_create_time is __le64 so doesn't need cpu_to_le64().
ver #3:
- Canonicalise the cifs coherency data to make the cache portable.
- Set volume coherency data.
ver #2:
- Use gfpflags_allow_blocking() rather than using flag directly.
- Upgraded to -rc4 to allow for upstream changes[1].
- fscache_acquire_volume() now returns errors.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
cc: Steve French <smfrench@gmail.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-cachefs@redhat.com
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23b55d673d7527b093cd97b7c217c82e70cd1af0 [1]
Link: https://lore.kernel.org/r/3419813.1641592362@warthog.procyon.org.uk/ [2]
Link: https://lore.kernel.org/r/CAH2r5muTanw9pJqzAHd01d9A8keeChkzGsCEH6=0rHutVLAF-A@mail.gmail.com/ [3]
Link: https://lore.kernel.org/r/163819671009.215744.11230627184193298714.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906982979.143852.10672081929614953210.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967187187.1823006.247415138444991444.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021579335.640689.2681324337038770579.stgit@warthog.procyon.org.uk/ # v4
Link: https://lore.kernel.org/r/3462849.1641593783@warthog.procyon.org.uk/ # v5
Link: https://lore.kernel.org/r/1318953.1642024578@warthog.procyon.org.uk/ # v6
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-11-17 15:56:59 +00:00
|
|
|
|
|
|
|
|
|
2010-06-04 11:30:02 +02:00
|
|
|
|
2023-01-13 12:49:11 +01:00
|
|
|
|
2010-06-04 11:30:02 +02:00
|
|
|
|
|
|
|
|
|
2005-09-20 20:49:16 -07:00
|
|
|
|
2012-06-20 11:21:16 +04:00
|
|
|
|
2021-03-05 17:36:04 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2023-01-13 12:49:11 +01:00
|
|
|
|
2021-01-21 14:19:43 +01:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2016-04-10 01:33:30 -04:00
|
|
|
|
2020-10-09 09:32:56 +10:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2025-10-24 09:25:31 +01:00
|
|
|
|
2025-10-07 16:23:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-29 00:18:43 -05:00
|
|
|
|
2020-10-09 09:32:56 +10:00
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2020-10-09 09:32:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 11:17:46 -05:00
|
|
|
|
2020-10-09 09:32:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|
|
|
|
|
|
2020-10-09 09:32:56 +10:00
|
|
|
|
2008-08-02 07:26:12 -04:00
|
|
|
|