Skip to content

Commit a7f07fc

Browse files
committed
Merge tag 'ext4_for_linus_fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Pull ext4 fixes from Ted Ts'o: "A final set of miscellaneous bug fixes for ext4" * tag 'ext4_for_linus_fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: ext4: fix bogus warning in ext4_update_dx_flag() jbd2: fix kernel-doc markups ext4: drop fast_commit from /proc/mounts
2 parents a9e5c87 + f902b21 commit a7f07fc

5 files changed

Lines changed: 37 additions & 37 deletions

File tree

fs/ext4/ext4.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2695,7 +2695,8 @@ void ext4_insert_dentry(struct inode *inode,
26952695
struct ext4_filename *fname);
26962696
static inline void ext4_update_dx_flag(struct inode *inode)
26972697
{
2698-
if (!ext4_has_feature_dir_index(inode->i_sb)) {
2698+
if (!ext4_has_feature_dir_index(inode->i_sb) &&
2699+
ext4_test_inode_flag(inode, EXT4_INODE_INDEX)) {
26992700
/* ext4_iget() should have caught this... */
27002701
WARN_ON_ONCE(ext4_has_feature_metadata_csum(inode->i_sb));
27012702
ext4_clear_inode_flag(inode, EXT4_INODE_INDEX);

fs/ext4/super.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,10 +2638,6 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb,
26382638
} else if (test_opt2(sb, DAX_INODE)) {
26392639
SEQ_OPTS_PUTS("dax=inode");
26402640
}
2641-
2642-
if (test_opt2(sb, JOURNAL_FAST_COMMIT))
2643-
SEQ_OPTS_PUTS("fast_commit");
2644-
26452641
ext4_show_quota_options(seq, sb);
26462642
return 0;
26472643
}

fs/jbd2/journal.c

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,14 @@ static int __jbd2_journal_force_commit(journal_t *journal)
566566
}
567567

568568
/**
569-
* Force and wait upon a commit if the calling process is not within
570-
* transaction. This is used for forcing out undo-protected data which contains
571-
* bitmaps, when the fs is running out of space.
569+
* jbd2_journal_force_commit_nested - Force and wait upon a commit if the
570+
* calling process is not within transaction.
572571
*
573572
* @journal: journal to force
574573
* Returns true if progress was made.
574+
*
575+
* This is used for forcing out undo-protected data which contains
576+
* bitmaps, when the fs is running out of space.
575577
*/
576578
int jbd2_journal_force_commit_nested(journal_t *journal)
577579
{
@@ -582,7 +584,7 @@ int jbd2_journal_force_commit_nested(journal_t *journal)
582584
}
583585

584586
/**
585-
* int journal_force_commit() - force any uncommitted transactions
587+
* jbd2_journal_force_commit() - force any uncommitted transactions
586588
* @journal: journal to force
587589
*
588590
* Caller want unconditional commit. We can only force the running transaction
@@ -1881,7 +1883,7 @@ static int load_superblock(journal_t *journal)
18811883

18821884

18831885
/**
1884-
* int jbd2_journal_load() - Read journal from disk.
1886+
* jbd2_journal_load() - Read journal from disk.
18851887
* @journal: Journal to act on.
18861888
*
18871889
* Given a journal_t structure which tells us which disk blocks contain
@@ -1951,7 +1953,7 @@ int jbd2_journal_load(journal_t *journal)
19511953
}
19521954

19531955
/**
1954-
* void jbd2_journal_destroy() - Release a journal_t structure.
1956+
* jbd2_journal_destroy() - Release a journal_t structure.
19551957
* @journal: Journal to act on.
19561958
*
19571959
* Release a journal_t structure once it is no longer in use by the
@@ -2028,7 +2030,7 @@ int jbd2_journal_destroy(journal_t *journal)
20282030

20292031

20302032
/**
2031-
*int jbd2_journal_check_used_features() - Check if features specified are used.
2033+
* jbd2_journal_check_used_features() - Check if features specified are used.
20322034
* @journal: Journal to check.
20332035
* @compat: bitmask of compatible features
20342036
* @ro: bitmask of features that force read-only mount
@@ -2063,7 +2065,7 @@ int jbd2_journal_check_used_features(journal_t *journal, unsigned long compat,
20632065
}
20642066

20652067
/**
2066-
* int jbd2_journal_check_available_features() - Check feature set in journalling layer
2068+
* jbd2_journal_check_available_features() - Check feature set in journalling layer
20672069
* @journal: Journal to check.
20682070
* @compat: bitmask of compatible features
20692071
* @ro: bitmask of features that force read-only mount
@@ -2126,7 +2128,7 @@ jbd2_journal_initialize_fast_commit(journal_t *journal)
21262128
}
21272129

21282130
/**
2129-
* int jbd2_journal_set_features() - Mark a given journal feature in the superblock
2131+
* jbd2_journal_set_features() - Mark a given journal feature in the superblock
21302132
* @journal: Journal to act on.
21312133
* @compat: bitmask of compatible features
21322134
* @ro: bitmask of features that force read-only mount
@@ -2217,7 +2219,7 @@ int jbd2_journal_set_features(journal_t *journal, unsigned long compat,
22172219
}
22182220

22192221
/*
2220-
* jbd2_journal_clear_features () - Clear a given journal feature in the
2222+
* jbd2_journal_clear_features() - Clear a given journal feature in the
22212223
* superblock
22222224
* @journal: Journal to act on.
22232225
* @compat: bitmask of compatible features
@@ -2246,7 +2248,7 @@ void jbd2_journal_clear_features(journal_t *journal, unsigned long compat,
22462248
EXPORT_SYMBOL(jbd2_journal_clear_features);
22472249

22482250
/**
2249-
* int jbd2_journal_flush () - Flush journal
2251+
* jbd2_journal_flush() - Flush journal
22502252
* @journal: Journal to act on.
22512253
*
22522254
* Flush all data for a given journal to disk and empty the journal.
@@ -2321,7 +2323,7 @@ int jbd2_journal_flush(journal_t *journal)
23212323
}
23222324

23232325
/**
2324-
* int jbd2_journal_wipe() - Wipe journal contents
2326+
* jbd2_journal_wipe() - Wipe journal contents
23252327
* @journal: Journal to act on.
23262328
* @write: flag (see below)
23272329
*
@@ -2362,7 +2364,7 @@ int jbd2_journal_wipe(journal_t *journal, int write)
23622364
}
23632365

23642366
/**
2365-
* void jbd2_journal_abort () - Shutdown the journal immediately.
2367+
* jbd2_journal_abort () - Shutdown the journal immediately.
23662368
* @journal: the journal to shutdown.
23672369
* @errno: an error number to record in the journal indicating
23682370
* the reason for the shutdown.
@@ -2453,7 +2455,7 @@ void jbd2_journal_abort(journal_t *journal, int errno)
24532455
}
24542456

24552457
/**
2456-
* int jbd2_journal_errno () - returns the journal's error state.
2458+
* jbd2_journal_errno() - returns the journal's error state.
24572459
* @journal: journal to examine.
24582460
*
24592461
* This is the errno number set with jbd2_journal_abort(), the last
@@ -2477,7 +2479,7 @@ int jbd2_journal_errno(journal_t *journal)
24772479
}
24782480

24792481
/**
2480-
* int jbd2_journal_clear_err () - clears the journal's error state
2482+
* jbd2_journal_clear_err() - clears the journal's error state
24812483
* @journal: journal to act on.
24822484
*
24832485
* An error must be cleared or acked to take a FS out of readonly
@@ -2497,7 +2499,7 @@ int jbd2_journal_clear_err(journal_t *journal)
24972499
}
24982500

24992501
/**
2500-
* void jbd2_journal_ack_err() - Ack journal err.
2502+
* jbd2_journal_ack_err() - Ack journal err.
25012503
* @journal: journal to act on.
25022504
*
25032505
* An error must be cleared or acked to take a FS out of readonly

fs/jbd2/transaction.c

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ EXPORT_SYMBOL(jbd2__journal_start);
519519

520520

521521
/**
522-
* handle_t *jbd2_journal_start() - Obtain a new handle.
522+
* jbd2_journal_start() - Obtain a new handle.
523523
* @journal: Journal to start transaction on.
524524
* @nblocks: number of block buffer we might modify
525525
*
@@ -566,7 +566,7 @@ void jbd2_journal_free_reserved(handle_t *handle)
566566
EXPORT_SYMBOL(jbd2_journal_free_reserved);
567567

568568
/**
569-
* int jbd2_journal_start_reserved() - start reserved handle
569+
* jbd2_journal_start_reserved() - start reserved handle
570570
* @handle: handle to start
571571
* @type: for handle statistics
572572
* @line_no: for handle statistics
@@ -620,7 +620,7 @@ int jbd2_journal_start_reserved(handle_t *handle, unsigned int type,
620620
EXPORT_SYMBOL(jbd2_journal_start_reserved);
621621

622622
/**
623-
* int jbd2_journal_extend() - extend buffer credits.
623+
* jbd2_journal_extend() - extend buffer credits.
624624
* @handle: handle to 'extend'
625625
* @nblocks: nr blocks to try to extend by.
626626
* @revoke_records: number of revoke records to try to extend by.
@@ -745,7 +745,7 @@ static void stop_this_handle(handle_t *handle)
745745
}
746746

747747
/**
748-
* int jbd2_journal_restart() - restart a handle .
748+
* jbd2__journal_restart() - restart a handle .
749749
* @handle: handle to restart
750750
* @nblocks: nr credits requested
751751
* @revoke_records: number of revoke record credits requested
@@ -815,7 +815,7 @@ int jbd2_journal_restart(handle_t *handle, int nblocks)
815815
EXPORT_SYMBOL(jbd2_journal_restart);
816816

817817
/**
818-
* void jbd2_journal_lock_updates () - establish a transaction barrier.
818+
* jbd2_journal_lock_updates () - establish a transaction barrier.
819819
* @journal: Journal to establish a barrier on.
820820
*
821821
* This locks out any further updates from being started, and blocks
@@ -874,7 +874,7 @@ void jbd2_journal_lock_updates(journal_t *journal)
874874
}
875875

876876
/**
877-
* void jbd2_journal_unlock_updates (journal_t* journal) - release barrier
877+
* jbd2_journal_unlock_updates () - release barrier
878878
* @journal: Journal to release the barrier on.
879879
*
880880
* Release a transaction barrier obtained with jbd2_journal_lock_updates().
@@ -1182,7 +1182,8 @@ static bool jbd2_write_access_granted(handle_t *handle, struct buffer_head *bh,
11821182
}
11831183

11841184
/**
1185-
* int jbd2_journal_get_write_access() - notify intent to modify a buffer for metadata (not data) update.
1185+
* jbd2_journal_get_write_access() - notify intent to modify a buffer
1186+
* for metadata (not data) update.
11861187
* @handle: transaction to add buffer modifications to
11871188
* @bh: bh to be used for metadata writes
11881189
*
@@ -1226,7 +1227,7 @@ int jbd2_journal_get_write_access(handle_t *handle, struct buffer_head *bh)
12261227
* unlocked buffer beforehand. */
12271228

12281229
/**
1229-
* int jbd2_journal_get_create_access () - notify intent to use newly created bh
1230+
* jbd2_journal_get_create_access () - notify intent to use newly created bh
12301231
* @handle: transaction to new buffer to
12311232
* @bh: new buffer.
12321233
*
@@ -1306,7 +1307,7 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
13061307
}
13071308

13081309
/**
1309-
* int jbd2_journal_get_undo_access() - Notify intent to modify metadata with
1310+
* jbd2_journal_get_undo_access() - Notify intent to modify metadata with
13101311
* non-rewindable consequences
13111312
* @handle: transaction
13121313
* @bh: buffer to undo
@@ -1383,7 +1384,7 @@ int jbd2_journal_get_undo_access(handle_t *handle, struct buffer_head *bh)
13831384
}
13841385

13851386
/**
1386-
* void jbd2_journal_set_triggers() - Add triggers for commit writeout
1387+
* jbd2_journal_set_triggers() - Add triggers for commit writeout
13871388
* @bh: buffer to trigger on
13881389
* @type: struct jbd2_buffer_trigger_type containing the trigger(s).
13891390
*
@@ -1425,7 +1426,7 @@ void jbd2_buffer_abort_trigger(struct journal_head *jh,
14251426
}
14261427

14271428
/**
1428-
* int jbd2_journal_dirty_metadata() - mark a buffer as containing dirty metadata
1429+
* jbd2_journal_dirty_metadata() - mark a buffer as containing dirty metadata
14291430
* @handle: transaction to add buffer to.
14301431
* @bh: buffer to mark
14311432
*
@@ -1593,7 +1594,7 @@ int jbd2_journal_dirty_metadata(handle_t *handle, struct buffer_head *bh)
15931594
}
15941595

15951596
/**
1596-
* void jbd2_journal_forget() - bforget() for potentially-journaled buffers.
1597+
* jbd2_journal_forget() - bforget() for potentially-journaled buffers.
15971598
* @handle: transaction handle
15981599
* @bh: bh to 'forget'
15991600
*
@@ -1762,7 +1763,7 @@ int jbd2_journal_forget(handle_t *handle, struct buffer_head *bh)
17621763
}
17631764

17641765
/**
1765-
* int jbd2_journal_stop() - complete a transaction
1766+
* jbd2_journal_stop() - complete a transaction
17661767
* @handle: transaction to complete.
17671768
*
17681769
* All done for a particular handle.
@@ -2080,7 +2081,7 @@ __journal_try_to_free_buffer(journal_t *journal, struct buffer_head *bh)
20802081
}
20812082

20822083
/**
2083-
* int jbd2_journal_try_to_free_buffers() - try to free page buffers.
2084+
* jbd2_journal_try_to_free_buffers() - try to free page buffers.
20842085
* @journal: journal for operation
20852086
* @page: to try and free
20862087
*
@@ -2411,7 +2412,7 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh,
24112412
}
24122413

24132414
/**
2414-
* void jbd2_journal_invalidatepage()
2415+
* jbd2_journal_invalidatepage()
24152416
* @journal: journal to use for flush...
24162417
* @page: page to flush
24172418
* @offset: start of the range to invalidate

include/linux/jbd2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static inline void jbd_unlock_bh_journal_head(struct buffer_head *bh)
401401
#define JI_WAIT_DATA (1 << __JI_WAIT_DATA)
402402

403403
/**
404-
* struct jbd_inode - The jbd_inode type is the structure linking inodes in
404+
* struct jbd2_inode - The jbd_inode type is the structure linking inodes in
405405
* ordered mode present in a transaction so that we can sync them during commit.
406406
*/
407407
struct jbd2_inode {

0 commit comments

Comments
 (0)