Skip to content

Commit 24e7ea3

Browse files
committed
Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Pull ext4 updates from Ted Ts'o: "Major changes for 3.14 include support for the newly added ZERO_RANGE and COLLAPSE_RANGE fallocate operations, and scalability improvements in the jbd2 layer and in xattr handling when the extended attributes spill over into an external block. Other than that, the usual clean ups and minor bug fixes" * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (42 commits) ext4: fix premature freeing of partial clusters split across leaf blocks ext4: remove unneeded test of ret variable ext4: fix comment typo ext4: make ext4_block_zero_page_range static ext4: atomically set inode->i_flags in ext4_set_inode_flags() ext4: optimize Hurd tests when reading/writing inodes ext4: kill i_version support for Hurd-castrated file systems ext4: each filesystem creates and uses its own mb_cache fs/mbcache.c: doucple the locking of local from global data fs/mbcache.c: change block and index hash chain to hlist_bl_node ext4: Introduce FALLOC_FL_ZERO_RANGE flag for fallocate ext4: refactor ext4_fallocate code ext4: Update inode i_size after the preallocation ext4: fix partial cluster handling for bigalloc file systems ext4: delete path dealloc code in ext4_ext_handle_uninitialized_extents ext4: only call sync_filesystm() when remounting read-only fs: push sync_filesystem() down to the file system's remount_fs() jbd2: improve error messages for inconsistent journal heads jbd2: minimize region locked by j_list_lock in jbd2_journal_forget() jbd2: minimize region locked by j_list_lock in journal_get_create_access() ...
2 parents 8e343c8 + ad6599a commit 24e7ea3

64 files changed

Lines changed: 1514 additions & 501 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎fs/adfs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ static int parse_options(struct super_block *sb, char *options)
212212

213213
static int adfs_remount(struct super_block *sb, int *flags, char *data)
214214
{
215+
sync_filesystem(sb);
215216
*flags |= MS_NODIRATIME;
216217
return parse_options(sb, data);
217218
}

‎fs/affs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ affs_remount(struct super_block *sb, int *flags, char *data)
530530

531531
pr_debug("AFFS: remount(flags=0x%x,opts=\"%s\")\n",*flags,data);
532532

533+
sync_filesystem(sb);
533534
*flags |= MS_NODIRATIME;
534535

535536
memcpy(volume, sbi->s_volume, 32);

‎fs/befs/linuxvfs.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
913913
static int
914914
befs_remount(struct super_block *sb, int *flags, char *data)
915915
{
916+
sync_filesystem(sb);
916917
if (!(*flags & MS_RDONLY))
917918
return -EINVAL;
918919
return 0;

‎fs/btrfs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
13801380
unsigned int old_metadata_ratio = fs_info->metadata_ratio;
13811381
int ret;
13821382

1383+
sync_filesystem(sb);
13831384
btrfs_remount_prepare(fs_info);
13841385

13851386
ret = btrfs_parse_options(root, data);

‎fs/cifs/cifsfs.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ static int cifs_show_stats(struct seq_file *s, struct dentry *root)
541541

542542
static int cifs_remount(struct super_block *sb, int *flags, char *data)
543543
{
544+
sync_filesystem(sb);
544545
*flags |= MS_NODIRATIME;
545546
return 0;
546547
}

‎fs/coda/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ void coda_destroy_inodecache(void)
9696

9797
static int coda_remount(struct super_block *sb, int *flags, char *data)
9898
{
99+
sync_filesystem(sb);
99100
*flags |= MS_NOATIME;
100101
return 0;
101102
}

‎fs/cramfs/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ static void cramfs_kill_sb(struct super_block *sb)
243243

244244
static int cramfs_remount(struct super_block *sb, int *flags, char *data)
245245
{
246+
sync_filesystem(sb);
246247
*flags |= MS_RDONLY;
247248
return 0;
248249
}

‎fs/debugfs/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ static int debugfs_remount(struct super_block *sb, int *flags, char *data)
218218
int err;
219219
struct debugfs_fs_info *fsi = sb->s_fs_info;
220220

221+
sync_filesystem(sb);
221222
err = debugfs_parse_options(data, &fsi->mount_opts);
222223
if (err)
223224
goto fail;

‎fs/devpts/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ static int devpts_remount(struct super_block *sb, int *flags, char *data)
313313
struct pts_fs_info *fsi = DEVPTS_SB(sb);
314314
struct pts_mount_opts *opts = &fsi->mount_opts;
315315

316+
sync_filesystem(sb);
316317
err = parse_mount_options(data, PARSE_REMOUNT, opts);
317318

318319
/*

‎fs/efs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ static void destroy_inodecache(void)
114114

115115
static int efs_remount(struct super_block *sb, int *flags, char *data)
116116
{
117+
sync_filesystem(sb);
117118
*flags |= MS_RDONLY;
118119
return 0;
119120
}

0 commit comments

Comments
 (0)