aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-07-22 20:37:31 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-07-22 20:37:31 -0400
commitb50924c2c606eccfe0caef39beb0929dfa9a1a81 (patch)
tree592f793fcc78af55b4dfc12d961653795c24e310 /fs
parent4d47603d9703e6fff8ff2618bc108d6280e2439d (diff)
ext4: remove unnecessary argument from __ext4_handle_dirty_metadata()
The '__ext4_handle_dirty_metadata()' does not need the 'now' argument anymore and we can kill it. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/ext4_jbd2.c3
-rw-r--r--fs/ext4/ext4_jbd2.h7
-rw-r--r--fs/ext4/inode.c2
-rw-r--r--fs/ext4/namei.c4
-rw-r--r--fs/ext4/resize.c2
5 files changed, 7 insertions, 11 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c
index c19ab6addb2..bfa65b49d42 100644
--- a/fs/ext4/ext4_jbd2.c
+++ b/fs/ext4/ext4_jbd2.c
@@ -138,8 +138,7 @@ int __ext4_handle_dirty_metadata(const char *where, unsigned int line,
138} 138}
139 139
140int __ext4_handle_dirty_super(const char *where, unsigned int line, 140int __ext4_handle_dirty_super(const char *where, unsigned int line,
141 handle_t *handle, struct super_block *sb, 141 handle_t *handle, struct super_block *sb)
142 int now)
143{ 142{
144 struct buffer_head *bh = EXT4_SB(sb)->s_sbh; 143 struct buffer_head *bh = EXT4_SB(sb)->s_sbh;
145 int err = 0; 144 int err = 0;
diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h
index 1393c830411..56d258c1830 100644
--- a/fs/ext4/ext4_jbd2.h
+++ b/fs/ext4/ext4_jbd2.h
@@ -219,8 +219,7 @@ int __ext4_handle_dirty_metadata(const char *where, unsigned int line,
219 struct buffer_head *bh); 219 struct buffer_head *bh);
220 220
221int __ext4_handle_dirty_super(const char *where, unsigned int line, 221int __ext4_handle_dirty_super(const char *where, unsigned int line,
222 handle_t *handle, struct super_block *sb, 222 handle_t *handle, struct super_block *sb);
223 int now);
224 223
225#define ext4_journal_get_write_access(handle, bh) \ 224#define ext4_journal_get_write_access(handle, bh) \
226 __ext4_journal_get_write_access(__func__, __LINE__, (handle), (bh)) 225 __ext4_journal_get_write_access(__func__, __LINE__, (handle), (bh))
@@ -232,10 +231,8 @@ int __ext4_handle_dirty_super(const char *where, unsigned int line,
232#define ext4_handle_dirty_metadata(handle, inode, bh) \ 231#define ext4_handle_dirty_metadata(handle, inode, bh) \
233 __ext4_handle_dirty_metadata(__func__, __LINE__, (handle), (inode), \ 232 __ext4_handle_dirty_metadata(__func__, __LINE__, (handle), (inode), \
234 (bh)) 233 (bh))
235#define ext4_handle_dirty_super_now(handle, sb) \
236 __ext4_handle_dirty_super(__func__, __LINE__, (handle), (sb), 1)
237#define ext4_handle_dirty_super(handle, sb) \ 234#define ext4_handle_dirty_super(handle, sb) \
238 __ext4_handle_dirty_super(__func__, __LINE__, (handle), (sb), 0) 235 __ext4_handle_dirty_super(__func__, __LINE__, (handle), (sb))
239 236
240handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks); 237handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks);
241int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle); 238int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle);
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index bed574dd4c2..a533a18de98 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -4093,7 +4093,7 @@ static int ext4_do_update_inode(handle_t *handle,
4093 EXT4_SET_RO_COMPAT_FEATURE(sb, 4093 EXT4_SET_RO_COMPAT_FEATURE(sb,
4094 EXT4_FEATURE_RO_COMPAT_LARGE_FILE); 4094 EXT4_FEATURE_RO_COMPAT_LARGE_FILE);
4095 ext4_handle_sync(handle); 4095 ext4_handle_sync(handle);
4096 err = ext4_handle_dirty_super_now(handle, sb); 4096 err = ext4_handle_dirty_super(handle, sb);
4097 } 4097 }
4098 } 4098 }
4099 raw_inode->i_generation = cpu_to_le32(inode->i_generation); 4099 raw_inode->i_generation = cpu_to_le32(inode->i_generation);
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 0edaf18d843..37faf56e558 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -2397,7 +2397,7 @@ int ext4_orphan_add(handle_t *handle, struct inode *inode)
2397 /* Insert this inode at the head of the on-disk orphan list... */ 2397 /* Insert this inode at the head of the on-disk orphan list... */
2398 NEXT_ORPHAN(inode) = le32_to_cpu(EXT4_SB(sb)->s_es->s_last_orphan); 2398 NEXT_ORPHAN(inode) = le32_to_cpu(EXT4_SB(sb)->s_es->s_last_orphan);
2399 EXT4_SB(sb)->s_es->s_last_orphan = cpu_to_le32(inode->i_ino); 2399 EXT4_SB(sb)->s_es->s_last_orphan = cpu_to_le32(inode->i_ino);
2400 err = ext4_handle_dirty_super_now(handle, sb); 2400 err = ext4_handle_dirty_super(handle, sb);
2401 rc = ext4_mark_iloc_dirty(handle, inode, &iloc); 2401 rc = ext4_mark_iloc_dirty(handle, inode, &iloc);
2402 if (!err) 2402 if (!err)
2403 err = rc; 2403 err = rc;
@@ -2470,7 +2470,7 @@ int ext4_orphan_del(handle_t *handle, struct inode *inode)
2470 if (err) 2470 if (err)
2471 goto out_brelse; 2471 goto out_brelse;
2472 sbi->s_es->s_last_orphan = cpu_to_le32(ino_next); 2472 sbi->s_es->s_last_orphan = cpu_to_le32(ino_next);
2473 err = ext4_handle_dirty_super_now(handle, inode->i_sb); 2473 err = ext4_handle_dirty_super(handle, inode->i_sb);
2474 } else { 2474 } else {
2475 struct ext4_iloc iloc2; 2475 struct ext4_iloc iloc2;
2476 struct inode *i_prev = 2476 struct inode *i_prev =
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c
index 50530bdbc02..41f6ef68e2e 100644
--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -798,7 +798,7 @@ static int add_new_gdb(handle_t *handle, struct inode *inode,
798 ext4_kvfree(o_group_desc); 798 ext4_kvfree(o_group_desc);
799 799
800 le16_add_cpu(&es->s_reserved_gdt_blocks, -1); 800 le16_add_cpu(&es->s_reserved_gdt_blocks, -1);
801 err = ext4_handle_dirty_super_now(handle, sb); 801 err = ext4_handle_dirty_super(handle, sb);
802 if (err) 802 if (err)
803 ext4_std_error(sb, err); 803 ext4_std_error(sb, err);
804 804