diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 12:36:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 12:36:50 -0400 |
commit | 5d434fcb255dec99189f1c58a06e4f56e12bf77d (patch) | |
tree | 734289dc85074903d9e636a935d43414746e222c /fs | |
parent | 5a5a1bf099d6942399ea0b34a62e5f0bc4c5c36e (diff) | |
parent | 071361d3473ebb8142907470ff12d59c59f6be72 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree updates from Jiri Kosina:
"Usual stuff, mostly comment fixes, typo fixes, printk fixes and small
code cleanups"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (45 commits)
mm: Convert print_symbol to %pSR
gfs2: Convert print_symbol to %pSR
m32r: Convert print_symbol to %pSR
iostats.txt: add easy-to-find description for field 6
x86 cmpxchg.h: fix wrong comment
treewide: Fix typo in printk and comments
doc: devicetree: Fix various typos
docbook: fix 8250 naming in device-drivers
pata_pdc2027x: Fix compiler warning
treewide: Fix typo in printks
mei: Fix comments in drivers/misc/mei
treewide: Fix typos in kernel messages
pm44xx: Fix comment for "CONFIG_CPU_IDLE"
doc: Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP"
mmzone: correct "pags" to "pages" in comment.
kernel-parameters: remove outdated 'noresidual' parameter
Remove spurious _H suffixes from ifdef comments
sound: Remove stray pluses from Kconfig file
radio-shark: Fix printk "CONFIG_LED_CLASS"
doc: put proper reference to CONFIG_MODULE_SIG_ENFORCE
...
Diffstat (limited to 'fs')
-rw-r--r-- | fs/befs/btree.c | 3 | ||||
-rw-r--r-- | fs/f2fs/f2fs.h | 2 | ||||
-rw-r--r-- | fs/f2fs/gc.c | 2 | ||||
-rw-r--r-- | fs/f2fs/super.c | 2 | ||||
-rw-r--r-- | fs/gfs2/glock.c | 4 | ||||
-rw-r--r-- | fs/gfs2/trans.c | 3 | ||||
-rw-r--r-- | fs/nfs/objlayout/objio_osd.c | 2 | ||||
-rw-r--r-- | fs/nfs/objlayout/objlayout.h | 2 | ||||
-rw-r--r-- | fs/ufs/util.c | 3 |
9 files changed, 11 insertions, 12 deletions
diff --git a/fs/befs/btree.c b/fs/befs/btree.c index a66c9b1136e0..74e397db0b8b 100644 --- a/fs/befs/btree.c +++ b/fs/befs/btree.c | |||
@@ -436,8 +436,7 @@ befs_btree_read(struct super_block *sb, befs_data_stream * ds, | |||
436 | goto error; | 436 | goto error; |
437 | } | 437 | } |
438 | 438 | ||
439 | if ((this_node = (befs_btree_node *) | 439 | if ((this_node = kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) { |
440 | kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) { | ||
441 | befs_error(sb, "befs_btree_read() failed to allocate %u " | 440 | befs_error(sb, "befs_btree_read() failed to allocate %u " |
442 | "bytes of memory", sizeof (befs_btree_node)); | 441 | "bytes of memory", sizeof (befs_btree_node)); |
443 | goto error; | 442 | goto error; |
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index cc2213afdcc7..201c8d3b0f86 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -137,7 +137,7 @@ struct extent_info { | |||
137 | rwlock_t ext_lock; /* rwlock for consistency */ | 137 | rwlock_t ext_lock; /* rwlock for consistency */ |
138 | unsigned int fofs; /* start offset in a file */ | 138 | unsigned int fofs; /* start offset in a file */ |
139 | u32 blk_addr; /* start block address of the extent */ | 139 | u32 blk_addr; /* start block address of the extent */ |
140 | unsigned int len; /* lenth of the extent */ | 140 | unsigned int len; /* length of the extent */ |
141 | }; | 141 | }; |
142 | 142 | ||
143 | /* | 143 | /* |
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 94b8a0c48453..2e3eb2d4fc30 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c | |||
@@ -222,7 +222,7 @@ static unsigned int get_gc_cost(struct f2fs_sb_info *sbi, unsigned int segno, | |||
222 | } | 222 | } |
223 | 223 | ||
224 | /* | 224 | /* |
225 | * This function is called from two pathes. | 225 | * This function is called from two paths. |
226 | * One is garbage collection and the other is SSR segment selection. | 226 | * One is garbage collection and the other is SSR segment selection. |
227 | * When it is called during GC, it just gets a victim segment | 227 | * When it is called during GC, it just gets a victim segment |
228 | * and it does not remove it from dirty seglist. | 228 | * and it does not remove it from dirty seglist. |
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index fea6e582a2ed..62e017743af6 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c | |||
@@ -82,7 +82,7 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) | |||
82 | 82 | ||
83 | init_once((void *) fi); | 83 | init_once((void *) fi); |
84 | 84 | ||
85 | /* Initilize f2fs-specific inode info */ | 85 | /* Initialize f2fs-specific inode info */ |
86 | fi->vfs_inode.i_version = 1; | 86 | fi->vfs_inode.i_version = 1; |
87 | atomic_set(&fi->dirty_dents, 0); | 87 | atomic_set(&fi->dirty_dents, 0); |
88 | fi->i_current_depth = 1; | 88 | fi->i_current_depth = 1; |
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index cf3515546739..bd8223595495 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -1017,11 +1017,11 @@ do_cancel: | |||
1017 | return; | 1017 | return; |
1018 | 1018 | ||
1019 | trap_recursive: | 1019 | trap_recursive: |
1020 | print_symbol(KERN_ERR "original: %s\n", gh2->gh_ip); | 1020 | printk(KERN_ERR "original: %pSR\n", (void *)gh2->gh_ip); |
1021 | printk(KERN_ERR "pid: %d\n", pid_nr(gh2->gh_owner_pid)); | 1021 | printk(KERN_ERR "pid: %d\n", pid_nr(gh2->gh_owner_pid)); |
1022 | printk(KERN_ERR "lock type: %d req lock state : %d\n", | 1022 | printk(KERN_ERR "lock type: %d req lock state : %d\n", |
1023 | gh2->gh_gl->gl_name.ln_type, gh2->gh_state); | 1023 | gh2->gh_gl->gl_name.ln_type, gh2->gh_state); |
1024 | print_symbol(KERN_ERR "new: %s\n", gh->gh_ip); | 1024 | printk(KERN_ERR "new: %pSR\n", (void *)gh->gh_ip); |
1025 | printk(KERN_ERR "pid: %d\n", pid_nr(gh->gh_owner_pid)); | 1025 | printk(KERN_ERR "pid: %d\n", pid_nr(gh->gh_owner_pid)); |
1026 | printk(KERN_ERR "lock type: %d req lock state : %d\n", | 1026 | printk(KERN_ERR "lock type: %d req lock state : %d\n", |
1027 | gh->gh_gl->gl_name.ln_type, gh->gh_state); | 1027 | gh->gh_gl->gl_name.ln_type, gh->gh_state); |
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 88162fae27a5..5bc023ea38ac 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
@@ -96,7 +96,8 @@ static void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) | |||
96 | 96 | ||
97 | static void gfs2_print_trans(const struct gfs2_trans *tr) | 97 | static void gfs2_print_trans(const struct gfs2_trans *tr) |
98 | { | 98 | { |
99 | print_symbol(KERN_WARNING "GFS2: Transaction created at: %s\n", tr->tr_ip); | 99 | printk(KERN_WARNING "GFS2: Transaction created at: %pSR\n", |
100 | (void *)tr->tr_ip); | ||
100 | printk(KERN_WARNING "GFS2: blocks=%u revokes=%u reserved=%u touched=%d\n", | 101 | printk(KERN_WARNING "GFS2: blocks=%u revokes=%u reserved=%u touched=%d\n", |
101 | tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, tr->tr_touched); | 102 | tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, tr->tr_touched); |
102 | printk(KERN_WARNING "GFS2: Buf %u/%u Databuf %u/%u Revoke %u/%u\n", | 103 | printk(KERN_WARNING "GFS2: Buf %u/%u Databuf %u/%u Revoke %u/%u\n", |
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c index 88f9611a945c..5457745dd4f1 100644 --- a/fs/nfs/objlayout/objio_osd.c +++ b/fs/nfs/objlayout/objio_osd.c | |||
@@ -234,7 +234,7 @@ static int __alloc_objio_seg(unsigned numdevs, gfp_t gfp_flags, | |||
234 | 234 | ||
235 | lseg = kzalloc(lseg_size, gfp_flags); | 235 | lseg = kzalloc(lseg_size, gfp_flags); |
236 | if (unlikely(!lseg)) { | 236 | if (unlikely(!lseg)) { |
237 | dprintk("%s: Faild allocation numdevs=%d size=%zd\n", __func__, | 237 | dprintk("%s: Failed allocation numdevs=%d size=%zd\n", __func__, |
238 | numdevs, lseg_size); | 238 | numdevs, lseg_size); |
239 | return -ENOMEM; | 239 | return -ENOMEM; |
240 | } | 240 | } |
diff --git a/fs/nfs/objlayout/objlayout.h b/fs/nfs/objlayout/objlayout.h index 880ba086be94..87aa1dec6120 100644 --- a/fs/nfs/objlayout/objlayout.h +++ b/fs/nfs/objlayout/objlayout.h | |||
@@ -114,7 +114,7 @@ extern int objio_alloc_lseg(struct pnfs_layout_segment **outp, | |||
114 | gfp_t gfp_flags); | 114 | gfp_t gfp_flags); |
115 | extern void objio_free_lseg(struct pnfs_layout_segment *lseg); | 115 | extern void objio_free_lseg(struct pnfs_layout_segment *lseg); |
116 | 116 | ||
117 | /* objio_free_result will free these @oir structs recieved from | 117 | /* objio_free_result will free these @oir structs received from |
118 | * objlayout_{read,write}_done | 118 | * objlayout_{read,write}_done |
119 | */ | 119 | */ |
120 | extern void objio_free_result(struct objlayout_io_res *oir); | 120 | extern void objio_free_result(struct objlayout_io_res *oir); |
diff --git a/fs/ufs/util.c b/fs/ufs/util.c index 95425b59ce0a..b6c2f94e041e 100644 --- a/fs/ufs/util.c +++ b/fs/ufs/util.c | |||
@@ -26,8 +26,7 @@ struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi, | |||
26 | count = size >> uspi->s_fshift; | 26 | count = size >> uspi->s_fshift; |
27 | if (count > UFS_MAXFRAG) | 27 | if (count > UFS_MAXFRAG) |
28 | return NULL; | 28 | return NULL; |
29 | ubh = (struct ufs_buffer_head *) | 29 | ubh = kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS); |
30 | kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS); | ||
31 | if (!ubh) | 30 | if (!ubh) |
32 | return NULL; | 31 | return NULL; |
33 | ubh->fragment = fragment; | 32 | ubh->fragment = fragment; |