Skip to content

Commit d3009c6

Browse files
dedekindAl Viro
authored andcommitted
ext3: nuke write_super from comments
The '->write_super' superblock method is gone, and this patch removes all the references to 'write_super' from ext3. Cc: Jan Kara <jack@suse.cz> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andreas Dilger <adilger.kernel@dilger.ca> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 6601fac commit d3009c6

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

‎fs/ext3/inode.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3459,14 +3459,6 @@ ext3_reserve_inode_write(handle_t *handle, struct inode *inode,
34593459
* inode out, but prune_icache isn't a user-visible syncing function.
34603460
* Whenever the user wants stuff synced (sys_sync, sys_msync, sys_fsync)
34613461
* we start and wait on commits.
3462-
*
3463-
* Is this efficient/effective? Well, we're being nice to the system
3464-
* by cleaning up our inodes proactively so they can be reaped
3465-
* without I/O. But we are potentially leaving up to five seconds'
3466-
* worth of inodes floating about which prune_icache wants us to
3467-
* write out. One way to fix that would be to get prune_icache()
3468-
* to do a write_super() to free up some memory. It has the desired
3469-
* effect.
34703462
*/
34713463
int ext3_mark_inode_dirty(handle_t *handle, struct inode *inode)
34723464
{

‎fs/ext3/super.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ static int ext3_freeze(struct super_block *sb);
6464

6565
/*
6666
* Wrappers for journal_start/end.
67-
*
68-
* The only special thing we need to do here is to make sure that all
69-
* journal_end calls result in the superblock being marked dirty, so
70-
* that sync() will call the filesystem's write_super callback if
71-
* appropriate.
7267
*/
7368
handle_t *ext3_journal_start_sb(struct super_block *sb, int nblocks)
7469
{
@@ -90,12 +85,6 @@ handle_t *ext3_journal_start_sb(struct super_block *sb, int nblocks)
9085
return journal_start(journal, nblocks);
9186
}
9287

93-
/*
94-
* The only special thing we need to do here is to make sure that all
95-
* journal_stop calls result in the superblock being marked dirty, so
96-
* that sync() will call the filesystem's write_super callback if
97-
* appropriate.
98-
*/
9988
int __ext3_journal_stop(const char *where, handle_t *handle)
10089
{
10190
struct super_block *sb;

0 commit comments

Comments
 (0)