Skip to content

Commit cd0a2df

Browse files
author
Milosz Tanski
committed
Merge tag 'fscache-fixes-for-ceph' into wip-fscache
Patches for Ceph FS-Cache support
2 parents c354557 + 5a6f282 commit cd0a2df

362 files changed

Lines changed: 3282 additions & 1514 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/filesystems/caching/backend-api.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,15 @@ performed on the denizens of the cache. These are held in a structure of type:
299299
enough space in the cache to permit this.
300300

301301

302+
(*) Check coherency state of an object [mandatory]:
303+
304+
int (*check_consistency)(struct fscache_object *object)
305+
306+
This method is called to have the cache check the saved auxiliary data of
307+
the object against the netfs's idea of the state. 0 should be returned
308+
if they're consistent and -ESTALE otherwise. -ENOMEM and -ERESTARTSYS
309+
may also be returned.
310+
302311
(*) Update object [mandatory]:
303312

304313
int (*update_object)(struct fscache_object *object)

‎Documentation/filesystems/caching/netfs-api.txt‎

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This document contains the following sections:
3232
(9) Setting the data file size
3333
(10) Page alloc/read/write
3434
(11) Page uncaching
35-
(12) Index and data file update
35+
(12) Index and data file consistency
3636
(13) Miscellaneous cookie operations
3737
(14) Cookie unregistration
3838
(15) Index invalidation
@@ -433,7 +433,7 @@ to the caller. The attribute adjustment excludes read and write operations.
433433

434434

435435
=====================
436-
PAGE READ/ALLOC/WRITE
436+
PAGE ALLOC/READ/WRITE
437437
=====================
438438

439439
And the sixth step is to store and retrieve pages in the cache. There are
@@ -499,7 +499,7 @@ Else if there's a copy of the page resident in the cache:
499499
(*) An argument that's 0 on success or negative for an error code.
500500

501501
If an error occurs, it should be assumed that the page contains no usable
502-
data.
502+
data. fscache_readpages_cancel() may need to be called.
503503

504504
end_io_func() will be called in process context if the read is results in
505505
an error, but it might be called in interrupt context if the read is
@@ -623,6 +623,22 @@ some of the pages being read and some being allocated. Those pages will have
623623
been marked appropriately and will need uncaching.
624624

625625

626+
CANCELLATION OF UNREAD PAGES
627+
----------------------------
628+
629+
If one or more pages are passed to fscache_read_or_alloc_pages() but not then
630+
read from the cache and also not read from the underlying filesystem then
631+
those pages will need to have any marks and reservations removed. This can be
632+
done by calling:
633+
634+
void fscache_readpages_cancel(struct fscache_cookie *cookie,
635+
struct list_head *pages);
636+
637+
prior to returning to the caller. The cookie argument should be as passed to
638+
fscache_read_or_alloc_pages(). Every page in the pages list will be examined
639+
and any that have PG_fscache set will be uncached.
640+
641+
626642
==============
627643
PAGE UNCACHING
628644
==============
@@ -690,9 +706,18 @@ written to the cache and for the cache to finish with the page generally. No
690706
error is returned.
691707

692708

693-
==========================
694-
INDEX AND DATA FILE UPDATE
695-
==========================
709+
===============================
710+
INDEX AND DATA FILE CONSISTENCY
711+
===============================
712+
713+
To find out whether auxiliary data for an object is up to data within the
714+
cache, the following function can be called:
715+
716+
int fscache_check_consistency(struct fscache_cookie *cookie)
717+
718+
This will call back to the netfs to check whether the auxiliary data associated
719+
with a cookie is correct. It returns 0 if it is and -ESTALE if it isn't; it
720+
may also return -ENOMEM and -ERESTARTSYS.
696721

697722
To request an update of the index data for an index or other object, the
698723
following function should be called:

‎Documentation/kernel-parameters.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2953,7 +2953,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
29532953
improve throughput, but will also increase the
29542954
amount of memory reserved for use by the client.
29552955

2956-
swapaccount[=0|1]
2956+
swapaccount=[0|1]
29572957
[KNL] Enable accounting of swap in memory resource
29582958
controller if no parameter or 1 is given or disable
29592959
it if 0 is given (See Documentation/cgroups/memory.txt)

‎MAINTAINERS‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5581,9 +5581,9 @@ S: Maintained
55815581
F: drivers/media/tuners/mxl5007t.*
55825582

55835583
MYRICOM MYRI-10G 10GbE DRIVER (MYRI10GE)
5584-
M: Andrew Gallatin <gallatin@myri.com>
5584+
M: Hyong-Youb Kim <hykim@myri.com>
55855585
L: netdev@vger.kernel.org
5586-
W: http://www.myri.com/scs/download-Myri10GE.html
5586+
W: https://www.myricom.com/support/downloads/myri10ge.html
55875587
S: Supported
55885588
F: drivers/net/ethernet/myricom/myri10ge/
55895589

@@ -5884,7 +5884,7 @@ F: drivers/i2c/busses/i2c-omap.c
58845884
F: include/linux/i2c-omap.h
58855885

58865886
OMAP DEVICE TREE SUPPORT
5887-
M: Benoît Cousson <b-cousson@ti.com>
5887+
M: Benoît Cousson <bcousson@baylibre.com>
58885888
M: Tony Lindgren <tony@atomide.com>
58895889
L: linux-omap@vger.kernel.org
58905890
L: devicetree@vger.kernel.org
@@ -5964,14 +5964,14 @@ S: Maintained
59645964
F: drivers/char/hw_random/omap-rng.c
59655965

59665966
OMAP HWMOD SUPPORT
5967-
M: Benoît Cousson <b-cousson@ti.com>
5967+
M: Benoît Cousson <bcousson@baylibre.com>
59685968
M: Paul Walmsley <paul@pwsan.com>
59695969
L: linux-omap@vger.kernel.org
59705970
S: Maintained
59715971
F: arch/arm/mach-omap2/omap_hwmod.*
59725972

59735973
OMAP HWMOD DATA FOR OMAP4-BASED DEVICES
5974-
M: Benoît Cousson <b-cousson@ti.com>
5974+
M: Benoît Cousson <bcousson@baylibre.com>
59755975
L: linux-omap@vger.kernel.org
59765976
S: Maintained
59775977
F: arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -6066,7 +6066,7 @@ M: Rob Herring <rob.herring@calxeda.com>
60666066
M: Pawel Moll <pawel.moll@arm.com>
60676067
M: Mark Rutland <mark.rutland@arm.com>
60686068
M: Stephen Warren <swarren@wwwdotorg.org>
6069-
M: Ian Campbell <ian.campbell@citrix.com>
6069+
M: Ian Campbell <ijc+devicetree@hellion.org.uk>
60706070
L: devicetree@vger.kernel.org
60716071
S: Maintained
60726072
F: Documentation/devicetree/
@@ -7366,7 +7366,6 @@ F: drivers/net/ethernet/sfc/
73667366

73677367
SGI GRU DRIVER
73687368
M: Dimitri Sivanich <sivanich@sgi.com>
7369-
M: Robin Holt <holt@sgi.com>
73707369
S: Maintained
73717370
F: drivers/misc/sgi-gru/
73727371

@@ -7386,7 +7385,8 @@ S: Maintained for 2.6.
73867385
F: Documentation/sgi-visws.txt
73877386

73887387
SGI XP/XPC/XPNET DRIVER
7389-
M: Robin Holt <holt@sgi.com>
7388+
M: Cliff Whickman <cpw@sgi.com>
7389+
M: Robin Holt <robinmholt@gmail.com>
73907390
S: Maintained
73917391
F: drivers/misc/sgi-xp/
73927392

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 3
22
PATCHLEVEL = 11
33
SUBLEVEL = 0
4-
EXTRAVERSION = -rc5
4+
EXTRAVERSION =
55
NAME = Linux for Workgroups
66

77
# *DOCUMENTATION*

‎arch/arc/lib/strchr-700.S‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,18 @@ ARC_ENTRY strchr
3939
ld.a r2,[r0,4]
4040
sub r12,r6,r7
4141
bic r12,r12,r6
42+
#ifdef __LITTLE_ENDIAN__
4243
and r7,r12,r4
4344
breq r7,0,.Loop ; For speed, we want this branch to be unaligned.
4445
b .Lfound_char ; Likewise this one.
46+
#else
47+
and r12,r12,r4
48+
breq r12,0,.Loop ; For speed, we want this branch to be unaligned.
49+
lsr_s r12,r12,7
50+
bic r2,r7,r6
51+
b.d .Lfound_char_b
52+
and_s r2,r2,r12
53+
#endif
4554
; /* We require this code address to be unaligned for speed... */
4655
.Laligned:
4756
ld_s r2,[r0]
@@ -95,6 +104,7 @@ ARC_ENTRY strchr
95104
lsr r7,r7,7
96105

97106
bic r2,r7,r6
107+
.Lfound_char_b:
98108
norm r2,r2
99109
sub_s r0,r0,4
100110
asr_s r2,r2,3

‎arch/arm/boot/dts/at91sam9n12ek.dts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
compatible = "atmel,at91sam9n12ek", "atmel,at91sam9n12", "atmel,at91sam9";
1515

1616
chosen {
17-
bootargs = "mem=128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
17+
bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
1818
};
1919

2020
memory {
21-
reg = <0x20000000 0x10000000>;
21+
reg = <0x20000000 0x8000000>;
2222
};
2323

2424
clocks {

‎arch/arm/boot/dts/at91sam9x5ek.dtsi‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@
9494

9595
usb0: ohci@00600000 {
9696
status = "okay";
97-
num-ports = <2>;
98-
atmel,vbus-gpio = <&pioD 19 GPIO_ACTIVE_LOW
97+
num-ports = <3>;
98+
atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
99+
&pioD 19 GPIO_ACTIVE_LOW
99100
&pioD 20 GPIO_ACTIVE_LOW
100101
>;
101102
};

‎arch/arm/boot/dts/tegra20-seaboard.dts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,8 @@
830830
regulator-max-microvolt = <5000000>;
831831
enable-active-high;
832832
gpio = <&gpio 24 0>; /* PD0 */
833+
regulator-always-on;
834+
regulator-boot-on;
833835
};
834836
};
835837

‎arch/arm/boot/dts/tegra20-trimslice.dts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@
412412
regulator-max-microvolt = <5000000>;
413413
enable-active-high;
414414
gpio = <&gpio 170 0>; /* PV2 */
415+
regulator-always-on;
416+
regulator-boot-on;
415417
};
416418
};
417419

0 commit comments

Comments
 (0)