aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/dlm/lock.c2
-rw-r--r--fs/gfs2/acl.c2
-rw-r--r--fs/gfs2/bmap.c4
-rw-r--r--fs/gfs2/daemon.c2
-rw-r--r--fs/gfs2/dir.c13
-rw-r--r--fs/gfs2/eaops.c2
-rw-r--r--fs/gfs2/eattr.c2
-rw-r--r--fs/gfs2/glock.c12
-rw-r--r--fs/gfs2/inode.c5
-rw-r--r--fs/gfs2/inode.h2
-rw-r--r--fs/gfs2/lm.c2
-rw-r--r--fs/gfs2/locking/dlm/thread.c4
-rw-r--r--fs/gfs2/lops.c2
-rw-r--r--fs/gfs2/main.c2
-rw-r--r--fs/gfs2/ops_address.c4
-rw-r--r--fs/gfs2/ops_file.c6
-rw-r--r--fs/gfs2/ops_fstype.c18
-rw-r--r--fs/gfs2/ops_inode.c2
-rw-r--r--fs/gfs2/ops_super.c2
-rw-r--r--fs/gfs2/quota.c6
-rw-r--r--fs/gfs2/recovery.c4
-rw-r--r--fs/gfs2/rgrp.c2
-rw-r--r--fs/gfs2/super.c5
23 files changed, 51 insertions, 54 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index af2f2f01bd5f..3f2befa4797b 100644
--- a/fs/dlm/lock.c
+++ b/fs/dlm/lock.c
@@ -1757,7 +1757,7 @@ static int do_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb)
1757 skip the queue_cast(ECANCEL). It indicates that the request/convert 1757 skip the queue_cast(ECANCEL). It indicates that the request/convert
1758 completed (and queued a normal ast) just before the cancel; we don't 1758 completed (and queued a normal ast) just before the cancel; we don't
1759 want to clobber the sb_result for the normal ast with ECANCEL. */ 1759 want to clobber the sb_result for the normal ast with ECANCEL. */
1760 1760
1761static int do_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb) 1761static int do_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb)
1762{ 1762{
1763 revert_lock(r, lkb); 1763 revert_lock(r, lkb);
diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c
index 3123fc071233..5f959b8ce406 100644
--- a/fs/gfs2/acl.c
+++ b/fs/gfs2/acl.c
@@ -181,7 +181,7 @@ int gfs2_check_acl(struct inode *inode, int mask)
181 error = gfs2_check_acl_locked(inode, mask); 181 error = gfs2_check_acl_locked(inode, mask);
182 gfs2_glock_dq_uninit(&i_gh); 182 gfs2_glock_dq_uninit(&i_gh);
183 } 183 }
184 184
185 return error; 185 return error;
186} 186}
187 187
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 3fb9a26b6f58..92eef825167d 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -130,7 +130,7 @@ int gfs2_unstuff_dinode(struct gfs2_inode *ip, struct page *page)
130 error = gfs2_meta_inode_buffer(ip, &dibh); 130 error = gfs2_meta_inode_buffer(ip, &dibh);
131 if (error) 131 if (error)
132 goto out; 132 goto out;
133 133
134 if (ip->i_di.di_size) { 134 if (ip->i_di.di_size) {
135 /* Get a free block, fill it with the stuffed data, 135 /* Get a free block, fill it with the stuffed data,
136 and write it out to disk */ 136 and write it out to disk */
@@ -246,7 +246,7 @@ static int build_height(struct inode *inode, unsigned height)
246 blocks[n] = gfs2_meta_new(ip->i_gl, bn); 246 blocks[n] = gfs2_meta_new(ip->i_gl, bn);
247 gfs2_trans_add_bh(ip->i_gl, blocks[n], 1); 247 gfs2_trans_add_bh(ip->i_gl, blocks[n], 1);
248 } 248 }
249 249
250 n = 0; 250 n = 0;
251 bn = blocks[0]->b_blocknr; 251 bn = blocks[0]->b_blocknr;
252 if (new_height > 1) { 252 if (new_height > 1) {
diff --git a/fs/gfs2/daemon.c b/fs/gfs2/daemon.c
index a9908cd78cd9..cab1f68d4685 100644
--- a/fs/gfs2/daemon.c
+++ b/fs/gfs2/daemon.c
@@ -30,7 +30,7 @@
30/* This uses schedule_timeout() instead of msleep() because it's good for 30/* This uses schedule_timeout() instead of msleep() because it's good for
31 the daemons to wake up more often than the timeout when unmounting so 31 the daemons to wake up more often than the timeout when unmounting so
32 the user's unmount doesn't sit there forever. 32 the user's unmount doesn't sit there forever.
33 33
34 The kthread functions used to start these daemons block and flush signals. */ 34 The kthread functions used to start these daemons block and flush signals. */
35 35
36/** 36/**
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c
index 40e94ac0b93d..459498cac93b 100644
--- a/fs/gfs2/dir.c
+++ b/fs/gfs2/dir.c
@@ -81,7 +81,7 @@
81#define gfs2_disk_hash2offset(h) (((u64)(h)) >> 1) 81#define gfs2_disk_hash2offset(h) (((u64)(h)) >> 1)
82#define gfs2_dir_offset2hash(p) ((u32)(((u64)(p)) << 1)) 82#define gfs2_dir_offset2hash(p) ((u32)(((u64)(p)) << 1))
83 83
84typedef int (*leaf_call_t) (struct gfs2_inode *dip, u32 index, u32 len, 84typedef int (*leaf_call_t) (struct gfs2_inode *dip, u32 index, u32 len,
85 u64 leaf_no, void *data); 85 u64 leaf_no, void *data);
86typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent, 86typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent,
87 const struct qstr *name, void *opaque); 87 const struct qstr *name, void *opaque);
@@ -119,7 +119,6 @@ static int gfs2_dir_get_existing_buffer(struct gfs2_inode *ip, u64 block,
119 119
120static int gfs2_dir_write_stuffed(struct gfs2_inode *ip, const char *buf, 120static int gfs2_dir_write_stuffed(struct gfs2_inode *ip, const char *buf,
121 unsigned int offset, unsigned int size) 121 unsigned int offset, unsigned int size)
122
123{ 122{
124 struct buffer_head *dibh; 123 struct buffer_head *dibh;
125 int error; 124 int error;
@@ -685,7 +684,7 @@ static struct gfs2_dirent *gfs2_dirent_alloc(struct inode *inode,
685 const struct qstr *name) 684 const struct qstr *name)
686{ 685{
687 struct gfs2_dirent *dent; 686 struct gfs2_dirent *dent;
688 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, 687 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size,
689 gfs2_dirent_find_space, name, NULL); 688 gfs2_dirent_find_space, name, NULL);
690 if (!dent || IS_ERR(dent)) 689 if (!dent || IS_ERR(dent))
691 return dent; 690 return dent;
@@ -764,7 +763,7 @@ static struct gfs2_dirent *gfs2_dirent_search(struct inode *inode,
764 gfs2_consist_inode(ip); 763 gfs2_consist_inode(ip);
765 return ERR_PTR(-EIO); 764 return ERR_PTR(-EIO);
766 } 765 }
767 766
768 index = name->hash >> (32 - ip->i_di.di_depth); 767 index = name->hash >> (32 - ip->i_di.di_depth);
769 error = get_first_leaf(ip, index, &bh); 768 error = get_first_leaf(ip, index, &bh);
770 if (error) 769 if (error)
@@ -779,14 +778,14 @@ static struct gfs2_dirent *gfs2_dirent_search(struct inode *inode,
779 brelse(bh); 778 brelse(bh);
780 if (!ln) 779 if (!ln)
781 break; 780 break;
782 781
783 error = get_leaf(ip, ln, &bh); 782 error = get_leaf(ip, ln, &bh);
784 } while(!error); 783 } while(!error);
785 784
786 return error ? ERR_PTR(error) : NULL; 785 return error ? ERR_PTR(error) : NULL;
787 } 786 }
788 787
789 788
790 error = gfs2_meta_inode_buffer(ip, &bh); 789 error = gfs2_meta_inode_buffer(ip, &bh);
791 if (error) 790 if (error)
792 return ERR_PTR(error); 791 return ERR_PTR(error);
@@ -810,7 +809,7 @@ static struct gfs2_leaf *new_leaf(struct inode *inode, struct buffer_head **pbh,
810 struct qstr name = { .name = "", .len = 0, .hash = 0 }; 809 struct qstr name = { .name = "", .len = 0, .hash = 0 };
811 if (!bh) 810 if (!bh)
812 return NULL; 811 return NULL;
813 812
814 gfs2_trans_add_bh(ip->i_gl, bh, 1); 813 gfs2_trans_add_bh(ip->i_gl, bh, 1);
815 gfs2_metatype_set(bh, GFS2_METATYPE_LF, GFS2_FORMAT_LF); 814 gfs2_metatype_set(bh, GFS2_METATYPE_LF, GFS2_FORMAT_LF);
816 leaf = (struct gfs2_leaf *)bh->b_data; 815 leaf = (struct gfs2_leaf *)bh->b_data;
diff --git a/fs/gfs2/eaops.c b/fs/gfs2/eaops.c
index 1a7877fe7393..92c54e9b0dc3 100644
--- a/fs/gfs2/eaops.c
+++ b/fs/gfs2/eaops.c
@@ -146,7 +146,7 @@ static int system_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er)
146 if (error == -ENODATA) 146 if (error == -ENODATA)
147 error = 0; 147 error = 0;
148 } 148 }
149 return error; 149 return error;
150 } 150 }
151 151
152 return -EPERM; 152 return -EPERM;
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c
index bd5ca602f9f0..a65a4ccfd4dd 100644
--- a/fs/gfs2/eattr.c
+++ b/fs/gfs2/eattr.c
@@ -1133,7 +1133,7 @@ static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el)
1133 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 1133 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
1134 gfs2_dinode_out(&ip->i_di, dibh->b_data); 1134 gfs2_dinode_out(&ip->i_di, dibh->b_data);
1135 brelse(dibh); 1135 brelse(dibh);
1136 } 1136 }
1137 1137
1138 gfs2_trans_end(GFS2_SB(&ip->i_inode)); 1138 gfs2_trans_end(GFS2_SB(&ip->i_inode));
1139 1139
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index f98694e7d668..78fe0fae23ff 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -371,7 +371,7 @@ fail_aspace:
371 if (gl->gl_aspace) 371