Skip to content

Commit 3aacd62

Browse files
committed
Merge branch 'akpm' (incoming from Andrew)
Merge second patch-bomb from Andrew Morton: - various misc bits - the rest of MM - add generic fixmap.h, use it - backlight updates - dynamic_debug updates - printk() updates - checkpatch updates - binfmt_elf - ramfs - init/ - autofs4 - drivers/rtc - nilfs - hfsplus - Documentation/ - coredump - procfs - fork - exec - kexec - kdump - partitions - rapidio - rbtree - userns - memstick - w1 - decompressors * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (197 commits) lib/decompress_unlz4.c: always set an error return code on failures romfs: fix returm err while getting inode in fill_super drivers/w1/masters/w1-gpio.c: add strong pullup emulation drivers/memstick/host/rtsx_pci_ms.c: fix ms card data transfer bug userns: relax the posix_acl_valid() checks arch/sh/kernel/dwarf.c: use rbtree postorder iteration helper instead of solution using repeated rb_erase() fs-ext3-use-rbtree-postorder-iteration-helper-instead-of-opencoding-fix fs/ext3: use rbtree postorder iteration helper instead of opencoding fs/jffs2: use rbtree postorder iteration helper instead of opencoding fs/ext4: use rbtree postorder iteration helper instead of opencoding fs/ubifs: use rbtree postorder iteration helper instead of opencoding net/netfilter/ipset/ip_set_hash_netiface.c: use rbtree postorder iteration instead of opencoding rbtree/test: test rbtree_postorder_for_each_entry_safe() rbtree/test: move rb_node to the middle of the test struct rapidio: add modular rapidio core build into powerpc and mips branches partitions/efi: complete documentation of gpt kernel param purpose kdump: add /sys/kernel/vmcoreinfo ABI documentation kdump: fix exported size of vmcoreinfo note kexec: add sysctl to disable kexec_load fs/exec.c: call arch_pick_mmap_layout() only once ...
2 parents 7e21774 + 2a1d689 commit 3aacd62

231 files changed

Lines changed: 3339 additions & 2187 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.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
What: /sys/kernel/vmcoreinfo
2+
Date: October 2007
3+
KernelVersion: 2.6.24
4+
Contact: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
5+
Kexec Mailing List <kexec@lists.infradead.org>
6+
Vivek Goyal <vgoyal@redhat.com>
7+
Description
8+
Shows physical address and size of vmcoreinfo ELF note.
9+
First value contains physical address of note in hex and
10+
second value contains the size of note in hex. This ELF
11+
note info is parsed by second kernel and exported to user
12+
space as part of ELF note in /proc/vmcore file. This note
13+
contains various information like struct size, symbol
14+
values, page size etc.

‎Documentation/blockdev/ramdisk.txt‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,30 @@ allowing one to squeeze more programs onto an average installation or
3636
rescue floppy disk.
3737

3838

39-
2) Kernel Command Line Parameters
39+
2) Parameters
4040
---------------------------------
4141

42+
2a) Kernel Command Line Parameters
43+
4244
ramdisk_size=N
4345
==============
4446

4547
This parameter tells the RAM disk driver to set up RAM disks of N k size. The
46-
default is 4096 (4 MB) (8192 (8 MB) on S390).
48+
default is 4096 (4 MB).
49+
50+
2b) Module parameters
4751

48-
ramdisk_blocksize=N
49-
===================
52+
rd_nr
53+
=====
54+
/dev/ramX devices created.
5055

51-
This parameter tells the RAM disk driver how many bytes to use per block. The
52-
default is 1024 (BLOCK_SIZE).
56+
max_part
57+
========
58+
Maximum partition number.
5359

60+
rd_size
61+
=======
62+
See ramdisk_size.
5463

5564
3) Using "rdev -r"
5665
------------------

‎Documentation/cpu-hotplug.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ A: This is what you would need in your kernel code to receive notifications.
285285
return NOTIFY_OK;
286286
}
287287

288-
static struct notifier_block foobar_cpu_notifer =
288+
static struct notifier_block foobar_cpu_notifier =
289289
{
290290
.notifier_call = foobar_cpu_callback,
291291
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Haoyu Microelectronics HYM8563 Real Time Clock
2+
3+
The HYM8563 provides basic rtc and alarm functionality
4+
as well as a clock output of up to 32kHz.
5+
6+
Required properties:
7+
- compatible: should be: "haoyu,hym8563"
8+
- reg: i2c address
9+
- interrupts: rtc alarm/event interrupt
10+
- #clock-cells: the value should be 0
11+
12+
Example:
13+
14+
hym8563: hym8563@51 {
15+
compatible = "haoyu,hym8563";
16+
reg = <0x51>;
17+
18+
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
19+
20+
#clock-cells = <0>;
21+
};
22+
23+
device {
24+
...
25+
clocks = <&hym8563>;
26+
...
27+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
* Maxim (Dallas) DS1742/DS1743 Real Time Clock
2+
3+
Required properties:
4+
- compatible: Should contain "maxim,ds1742".
5+
- reg: Physical base address of the RTC and length of memory
6+
mapped region.
7+
8+
Example:
9+
rtc: rtc@10000000 {
10+
compatible = "maxim,ds1742";
11+
reg = <0x10000000 0x800>;
12+
};

‎Documentation/devicetree/bindings/vendor-prefixes.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ fsl Freescale Semiconductor
3434
GEFanuc GE Fanuc Intelligent Platforms Embedded Systems, Inc.
3535
gef GE Fanuc Intelligent Platforms Embedded Systems, Inc.
3636
gmt Global Mixed-mode Technology, Inc.
37+
haoyu Haoyu Microelectronic Co. Ltd.
3738
hisilicon Hisilicon Limited.
3839
hp Hewlett Packard
3940
ibm International Business Machines (IBM)

‎Documentation/dynamic-debug-howto.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ If your query set is big, you can batch them too:
108108

109109
~# cat query-batch-file > <debugfs>/dynamic_debug/control
110110

111+
A another way is to use wildcard. The match rule support '*' (matches
112+
zero or more characters) and '?' (matches exactly one character).For
113+
example, you can match all usb drivers:
114+
115+
~# echo "file drivers/usb/* +p" > <debugfs>/dynamic_debug/control
116+
111117
At the syntactical level, a command comprises a sequence of match
112118
specifications, followed by a flags change specification.
113119

@@ -315,6 +321,9 @@ nullarbor:~ # echo -n 'func svc_process -p' >
315321
nullarbor:~ # echo -n 'format "nfsd: READ" +p' >
316322
<debugfs>/dynamic_debug/control
317323

324+
// enable messages in files of which the pathes include string "usb"
325+
nullarbor:~ # echo -n '*usb* +p' > <debugfs>/dynamic_debug/control
326+
318327
// enable all messages
319328
nullarbor:~ # echo -n '+p' > <debugfs>/dynamic_debug/control
320329

‎Documentation/filesystems/00-INDEX‎

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,40 @@ afs.txt
1010
- info and examples for the distributed AFS (Andrew File System) fs.
1111
affs.txt
1212
- info and mount options for the Amiga Fast File System.
13+
autofs4-mount-control.txt
14+
- info on device control operations for autofs4 module.
1315
automount-support.txt
1416
- information about filesystem automount support.
1517
befs.txt
1618
- information about the BeOS filesystem for Linux.
1719
bfs.txt
1820
- info for the SCO UnixWare Boot Filesystem (BFS).
21+
btrfs.txt
22+
- info for the BTRFS filesystem.
23+
caching/
24+
- directory containing filesystem cache documentation.
1925
ceph.txt
20-
- info for the Ceph Distributed File System
21-
cifs.txt
22-
- description of the CIFS filesystem.
26+
- info for the Ceph Distributed File System.
27+
cifs/
28+
- directory containing CIFS filesystem documentation and example code.
2329
coda.txt
2430
- description of the CODA filesystem.
2531
configfs/
2632
- directory containing configfs documentation and example code.
2733
cramfs.txt
2834
- info on the cram filesystem for small storage (ROMs etc).
29-
dentry-locking.txt
30-
- info on the RCU-based dcache locking model.
35+
debugfs.txt
36+
- info on the debugfs filesystem.
37+
devpts.txt
38+
- info on the devpts filesystem.
3139
directory-locking
3240
- info about the locking scheme used for directory operations.
3341
dlmfs.txt
3442
- info on the userspace interface to the OCFS2 DLM.
3543
dnotify.txt
3644
- info about directory notification in Linux.
3745
dnotify_test.c
38-
- example program for dnotify
46+
- example program for dnotify.
3947
ecryptfs.txt
4048
- docs on eCryptfs: stacked cryptographic filesystem for Linux.
4149
efivarfs.txt
@@ -48,12 +56,18 @@ ext3.txt
4856
- info, mount options and specifications for the Ext3 filesystem.
4957
ext4.txt
5058
- info, mount options and specifications for the Ext4 filesystem.
51-
files.txt
52-
- info on file management in the Linux kernel.
5359
f2fs.txt
5460
- info and mount options for the F2FS filesystem.
61+
fiemap.txt
62+
- info on fiemap ioctl.
63+
files.txt
64+
- info on file management in the Linux kernel.
5565
fuse.txt
5666
- info on the Filesystem in User SpacE including mount options.
67+
gfs2-glocks.txt
68+
- info on the Global File System 2 - Glock internal locking rules.
69+
gfs2-uevents.txt
70+
- info on the Global File System 2 - uevents.
5771
gfs2.txt
5872
- info on the Global File System 2.
5973
hfs.txt
@@ -84,40 +98,58 @@ ntfs.txt
8498
- info and mount options for the NTFS filesystem (Windows NT).
8599
ocfs2.txt
86100
- info and mount options for the OCFS2 clustered filesystem.
101+
omfs.txt
102+
- info on the Optimized MPEG FileSystem.
103+
path-lookup.txt
104+
- info on path walking and name lookup locking.
105+
pohmelfs/
106+
- directory containing pohmelfs filesystem documentation.
87107
porting
88108
- various information on filesystem porting.
89109
proc.txt
90110
- info on Linux's /proc filesystem.
111+
qnx6.txt
112+
- info on the QNX6 filesystem.
113+
quota.txt
114+
- info on Quota subsystem.
91115
ramfs-rootfs-initramfs.txt
92116
- info on the 'in memory' filesystems ramfs, rootfs and initramfs.
93-
reiser4.txt
94-
- info on the Reiser4 filesystem based on dancing tree algorithms.
95117
relay.txt
96118
- info on relay, for efficient streaming from kernel to user space.
97119
romfs.txt
98120
- description of the ROMFS filesystem.
99121
seq_file.txt
100-
- how to use the seq_file API
122+
- how to use the seq_file API.
101123
sharedsubtree.txt
102124
- a description of shared subtrees for namespaces.
103125
spufs.txt
104126
- info and mount options for the SPU filesystem used on Cell.
127+
squashfs.txt
128+
- info on the squashfs filesystem.
105129
sysfs-pci.txt
106130
- info on accessing PCI device resources through sysfs.
131+
sysfs-tagging.txt
132+
- info on sysfs tagging to avoid duplicates.
107133
sysfs.txt
108134
- info on sysfs, a ram-based filesystem for exporting kernel objects.
109135
sysv-fs.txt
110136
- info on the SystemV/V7/Xenix/Coherent filesystem.
111137
tmpfs.txt
112138
- info on tmpfs, a filesystem that holds all files in virtual memory.
139+
ubifs.txt
140+
- info on the Unsorted Block Images FileSystem.
113141
udf.txt
114142
- info and mount options for the UDF filesystem.
115143
ufs.txt
116144
- info on the ufs filesystem.
117145
vfat.txt
118-
- info on using the VFAT filesystem used in Windows NT and Windows 95
146+
- info on using the VFAT filesystem used in Windows NT and Windows 95.
119147
vfs.txt
120-
- overview of the Virtual File System
148+
- overview of the Virtual File System.
149+
xfs-delayed-logging-design.txt
150+
- info on the XFS Delayed Logging Design.
151+
xfs-self-describing-metadata.txt
152+
- info on XFS Self Describing Metadata.
121153
xfs.txt
122154
- info and mount options for the XFS filesystem.
123155
xip.txt

‎Documentation/filesystems/nilfs2.txt‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,62 @@ nodiscard(*) The discard/TRIM commands are sent to the underlying
8181
block device when blocks are freed. This is useful
8282
for SSD devices and sparse/thinly-provisioned LUNs.
8383

84+
Ioctls
85+
======
86+
87+
There is some NILFS2 specific functionality which can be accessed by applications
88+
through the system call interfaces. The list of all NILFS2 specific ioctls are
89+
shown in the table below.
90+
91+
Table of NILFS2 specific ioctls
92+
..............................................................................
93+
Ioctl Description
94+
NILFS_IOCTL_CHANGE_CPMODE Change mode of given checkpoint between
95+
checkpoint and snapshot state. This ioctl is
96+
used in chcp and mkcp utilities.
97+
98+
NILFS_IOCTL_DELETE_CHECKPOINT Remove checkpoint from NILFS2 file system.
99+
This ioctl is used in rmcp utility.
100+
101+
NILFS_IOCTL_GET_CPINFO Return info about requested checkpoints. This
102+
ioctl is used in lscp utility and by
103+
nilfs_cleanerd daemon.
104+
105+
NILFS_IOCTL_GET_CPSTAT Return checkpoints statistics. This ioctl is
106+
used by lscp, rmcp utilities and by
107+
nilfs_cleanerd daemon.
108+
109+
NILFS_IOCTL_GET_SUINFO Return segment usage info about requested
110+
segments. This ioctl is used in lssu,
111+
nilfs_resize utilities and by nilfs_cleanerd
112+
daemon.
113+
114+
NILFS_IOCTL_GET_SUSTAT Return segment usage statistics. This ioctl
115+
is used in lssu, nilfs_resize utilities and
116+
by nilfs_cleanerd daemon.
117+
118+
NILFS_IOCTL_GET_VINFO Return information on virtual block addresses.
119+
This ioctl is used by nilfs_cleanerd daemon.
120+
121+
NILFS_IOCTL_GET_BDESCS Return information about descriptors of disk
122+
block numbers. This ioctl is used by
123+
nilfs_cleanerd daemon.
124+
125+
NILFS_IOCTL_CLEAN_SEGMENTS Do garbage collection operation in the
126+
environment of requested parameters from
127+
userspace. This ioctl is used by
128+
nilfs_cleanerd daemon.
129+
130+
NILFS_IOCTL_SYNC Make a checkpoint. This ioctl is used in
131+
mkcp utility.
132+
133+
NILFS_IOCTL_RESIZE Resize NILFS2 volume. This ioctl is used
134+
by nilfs_resize utility.
135+
136+
NILFS_IOCTL_SET_ALLOC_RANGE Define lower limit of segments in bytes and
137+
upper limit of segments in bytes. This ioctl
138+
is used by nilfs_resize utility.
139+
84140
NILFS2 usage
85141
============
86142

‎Documentation/filesystems/sysfs.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ static DEVICE_ATTR(foo, S_IWUSR | S_IRUGO, show_foo, store_foo);
108108
is equivalent to doing:
109109

110110
static struct device_attribute dev_attr_foo = {
111-
.attr = {
111+
.attr = {
112112
.name = "foo",
113113
.mode = S_IWUSR | S_IRUGO,
114-
.show = show_foo,
115-
.store = store_foo,
116114
},
115+
.show = show_foo,
116+
.store = store_foo,
117117
};
118118

119119

0 commit comments

Comments
 (0)