Skip to content

Commit d756d10

Browse files
author
Linus Torvalds
committed
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: ext4: extent macros cleanup Fix compilation with EXT_DEBUG, also fix leXX_to_cpu conversions. ext4: remove extra IS_RDONLY() check ext4: Use is_power_of_2() Use zero_user_page() in ext4 where possible ext4: Remove 65000 subdirectory limit ext4: Expand extra_inodes space per the s_{want,min}_extra_isize fields ext4: Add nanosecond timestamps jbd2: Move jbd2-debug file to debugfs jbd2: Fix CONFIG_JBD_DEBUG ifdef to be CONFIG_JBD2_DEBUG ext4: Set the journal JBD2_FEATURE_INCOMPAT_64BIT on large devices ext4: Make extents code sanely handle on-disk corruption ext4: copy i_flags to inode flags on write ext4: Enable extents by default Change on-disk format to support 2^15 uninitialized extents write support for preallocated blocks fallocate support in ext4 sys_fallocate() implementation on i386, x86_64 and powerpc
2 parents cdf4a64 + e9f410b commit d756d10

File tree

30 files changed

+1328
-259
lines changed

30 files changed

+1328
-259
lines changed

arch/i386/kernel/syscall_table.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,4 @@ ENTRY(sys_call_table)
323323
.long sys_signalfd
324324
.long sys_timerfd
325325
.long sys_eventfd
326+
.long sys_fallocate

arch/powerpc/kernel/sys_ppc32.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,13 @@ asmlinkage int compat_sys_truncate64(const char __user * path, u32 reg4,
773773
return sys_truncate(path, (high << 32) | low);
774774
}
775775

776+
asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
777+
u32 lenhi, u32 lenlo)
778+
{
779+
return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
780+
((loff_t)lenhi << 32) | lenlo);
781+
}
782+
776783
asmlinkage int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long high,
777784
unsigned long low)
778785
{

arch/x86_64/ia32/ia32entry.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,4 +719,5 @@ ia32_sys_call_table:
719719
.quad compat_sys_signalfd
720720
.quad compat_sys_timerfd
721721
.quad sys_eventfd
722+
.quad sys32_fallocate
722723
ia32_syscall_end:

arch/x86_64/ia32/sys_ia32.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,3 +879,11 @@ asmlinkage long sys32_fadvise64(int fd, unsigned offset_lo, unsigned offset_hi,
879879
return sys_fadvise64_64(fd, ((u64)offset_hi << 32) | offset_lo,
880880
len, advice);
881881
}
882+
883+
asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_lo,
884+
unsigned offset_hi, unsigned len_lo,
885+
unsigned len_hi)
886+
{
887+
return sys_fallocate(fd, mode, ((u64)offset_hi << 32) | offset_lo,
888+
((u64)len_hi << 32) | len_lo);
889+
}

fs/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ config JBD2
251251

252252
config JBD2_DEBUG
253253
bool "JBD2 (ext4dev/ext4) debugging support"
254-
depends on JBD2
254+
depends on JBD2 && DEBUG_FS
255255
help
256256
If you are using the ext4dev/ext4 journaled file system (or
257257
potentially any other filesystem/device using JBD2), this option
@@ -260,10 +260,10 @@ config JBD2_DEBUG
260260
By default, the debugging output will be turned off.
261261

262262
If you select Y here, then you will be able to turn on debugging
263-
with "echo N > /proc/sys/fs/jbd2-debug", where N is a number between
264-
1 and 5. The higher the number, the more debugging output is
265-
generated. To turn debugging off again, do
266-
"echo 0 > /proc/sys/fs/jbd2-debug".
263+
with "echo N > /sys/kernel/debug/jbd2/jbd2-debug", where N is a
264+
number between 1 and 5. The higher the number, the more debugging
265+
output is generated. To turn debugging off again, do
266+
"echo 0 > /sys/kernel/debug/jbd2/jbd2-debug".
267267

268268
config FS_MBCACHE
269269
# Meta block cache for Extended Attributes (ext2/ext3/ext4)

fs/ext4/balloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ void ext4_free_blocks_sb(handle_t *handle, struct super_block *sb,
517517
/*
518518
* An HJ special. This is expensive...
519519
*/
520-
#ifdef CONFIG_JBD_DEBUG
520+
#ifdef CONFIG_JBD2_DEBUG
521521
jbd_unlock_bh_state(bitmap_bh);
522522
{
523523
struct buffer_head *debug_bh;
@@ -1597,7 +1597,7 @@ ext4_fsblk_t ext4_new_blocks(handle_t *handle, struct inode *inode,
15971597

15981598
performed_allocation = 1;
15991599

1600-
#ifdef CONFIG_JBD_DEBUG
1600+
#ifdef CONFIG_JBD2_DEBUG
16011601
{
16021602
struct buffer_head *debug_bh;
16031603

0 commit comments

Comments
 (0)