Skip to content

Commit f8f5ed7

Browse files
committed
Merge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
* 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: ext4: fix up a undefined error in ext4_free_blocks in debugging code ext4: add blk_finish_plug in error case of writepages. ext4: Remove kernel_lock annotations ext4: ignore journalled data options on remount if fs has no journal
2 parents c292fe4 + 6e58ad6 commit f8f5ed7

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎fs/ext4/balloc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ ext4_fsblk_t ext4_count_free_clusters(struct super_block *sb)
565565
brelse(bitmap_bh);
566566
printk(KERN_DEBUG "ext4_count_free_clusters: stored = %llu"
567567
", computed = %llu, %llu\n",
568-
EXT4_B2C(sbi, ext4_free_blocks_count(es)),
568+
EXT4_B2C(EXT4_SB(sb), ext4_free_blocks_count(es)),
569569
desc_count, bitmap_count);
570570
return bitmap_count;
571571
#else

‎fs/ext4/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ static int ext4_da_writepages(struct address_space *mapping,
22702270
ext4_msg(inode->i_sb, KERN_CRIT, "%s: jbd2_start: "
22712271
"%ld pages, ino %lu; err %d", __func__,
22722272
wbc->nr_to_write, inode->i_ino, ret);
2273+
blk_finish_plug(&plug);
22732274
goto out_writepages;
22742275
}
22752276

‎fs/ext4/super.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,9 @@ static int parse_options(char *options, struct super_block *sb,
16831683
data_opt = EXT4_MOUNT_WRITEBACK_DATA;
16841684
datacheck:
16851685
if (is_remount) {
1686-
if (test_opt(sb, DATA_FLAGS) != data_opt) {
1686+
if (!sbi->s_journal)
1687+
ext4_msg(sb, KERN_WARNING, "Remounting file system with no journal so ignoring journalled data option");
1688+
else if (test_opt(sb, DATA_FLAGS) != data_opt) {
16871689
ext4_msg(sb, KERN_ERR,
16881690
"Cannot change data mode on remount");
16891691
return 0;
@@ -3099,8 +3101,6 @@ static void ext4_destroy_lazyinit_thread(void)
30993101
}
31003102

31013103
static int ext4_fill_super(struct super_block *sb, void *data, int silent)
3102-
__releases(kernel_lock)
3103-
__acquires(kernel_lock)
31043104
{
31053105
char *orig_data = kstrdup(data, GFP_KERNEL);
31063106
struct buffer_head *bh;

0 commit comments

Comments
 (0)