ooks like it ought to occur with other users of get_tree_bdev() such as
> XFS, but apparently doesn't.
>
> Fix this by switching the order of the lines.
This fixes the problem I was seeing. Thanks David.
Reviewed-by: Lukas Czerner
>
> Fixes: 6fcf0c72e4b9 ("vfs: add missing
xes: 31d921c7fb96 ("vfs: Add configuration parser helpers")
> Reported-by: Lukas Czerner
> Signed-off-by: David Howells
> ---
>
> fs/fs_parser.c |5 +
> 1 file changed, 5 insertions(+)
>
> diff --git a/fs/fs_parser.c b/fs/fs_parser.c
> index d1930ad
SB_POSIXACL |
> + SB_LAZYTIME);
Looks good. Although I still think that this can be per mountpoint options.
Regardless of that, you can add
Reviewed-by: Lukas Czerner
>
> if (flags & MS_REMOUNT)
> retval = do_remount(&path, flags, sb_flags, mnt_flags,
> --
> Markus
7;s a problem, but it's certainly different
from what we've been used to.
Signed-off-by: Lukas Czerner
---
fs/super.c | 7 +++
fs/sync.c | 8
2 files changed, 15 insertions(+)
diff --git a/fs/super.c b/fs/super.c
index b613723..d337c91 100644
--- a/fs/super.c
+++ b/fs/s
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in all ext4 invalidatepage routines.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext4/inode.c | 30 +++---
include/trace/events/ext4.h |
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in xfs_vm_invalidatepage()
Signed-off-by: Lukas Czerner
Reviewed-by: Ben Myers
Cc: x...@oss.sgi.com
---
v4: use xfs_page_class instead of separate tracepoint
fs/xfs/xfs_aops.c |9 +
fs/xfs/xfs_trac
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ocfs2_invalidatepage().
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
Acked-by: Joel Becker
---
fs/ocfs2/aops.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/aops.
length argument to the jbd2_journal_invalidatepage()
and updates all instances in ext4 and ocfs2.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext4/inode.c |3 ++-
fs/jbd2/transaction.c | 24 +---
fs/ocfs2/aops.c |3 ++-
include/linux/jbd2.h
ile system implementations will follow except the file systems
where the changes are really simple and should not change the behaviour
in any way .Implementation for truncate_page_range() which will be able
to accept page unaligned ranges will follow as well.
Signed-off-by: Lukas Czerner
Cc: Andrew
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ceph_invalidatepage().
Signed-off-by: Lukas Czerner
Acked-by: Sage Weil
Cc: ceph-de...@vger.kernel.org
---
fs/ceph/addr.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a
and remove
ext4_discard_partial_page_buffers() since it is duplicating some code
and also partially duplicating work of truncate_pagecache_range(),
moreover the old implementation was much clearer.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |4 ++
fs/ext4/inode.c | 120
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in gfs2_invalidatepage().
Signed-off-by: Lukas Czerner
Acked-by: Steven Whitehouse
Cc: cluster-de...@redhat.com
---
fs/gfs2/aops.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a
pc64 machine with block size of 1024 bytes without
any problems.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext4/inode.c | 11 ++-
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 8187c3e..34ebb62 100644
--- a/fs/
The discard_partial_page_buffers is no longer used anywhere so we can
simply remove it including the *_no_lock variant and
EXT4_DISCARD_PARTIAL_PG_ZERO_UNMAPPED define.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext4/ext4.h |8 --
fs/ext4/inode.c | 206
out.
Signed-off-by: Lukas Czerner
---
fs/ext4/super.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index dbc7c09..b971066 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2173,6 +2173,7 @@ static void ext4_orphan_cleanup(struct
No we can
use that new ability in truncate_inode_pages_range().
Signed-off-by: Lukas Czerner
Cc: Andrew Morton
Cc: Hugh Dickins
---
mm/truncate.c | 104 -
1 files changed, 73 insertions(+), 31 deletions(-)
diff --git a/mm/truncate.c b/mm/t
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in reiserfs_invalidatepage()
Signed-off-by: Lukas Czerner
Cc: reiserfs-de...@vger.kernel.org
---
fs/reiserfs/inode.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/reise
d-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext4/inode.c |5 -
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index f504efa..daffbb8 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3557,11 +3557,6 @@ int ext4_punch_hole(s
Add "end" variable.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext4/extents.c |6 +++---
include/trace/events/ext4.h | 21 ++---
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
ind
enario can be described in simple diagram:
|FFF...FF..FF.UUU|
^--^
punch hole
. - free space
| - cluster boundary
F - freed extent
U - used extent
Also update respective tracepoints to use signed long long type for
partial_cluster.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kar
nused code completely and makes use of
ext4_error() instead of printk if dubious range is provided.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext4/extents.c | 21 -
1 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/exten
In data=ordered mode we should call ext4_jbd2_file_inode() so that crash
after the truncate transaction has committed does not expose stall data
in the tail of the block.
Thanks Jan Kara for pointing that out.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c |5 -
1 files changed, 4
x and xfstests
without any problems.
Signed-off-by: Lukas Czerner
---
v4: Use start-len arguments in ext4_zero_partial_blocks()
fs/ext4/ext4.h |2 +
fs/ext4/inode.c | 118 +-
2 files changed, 48 insertions(+), 72 deletions(-)
diff --git
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in journal_invalidatepage() and all the users in ext3 file
system. Also update ext3 trace point to print out length argument.
Signed-off-by: Lukas Czerner
Reviewed-by: Jan Kara
---
fs/ext3/inod
Hi,
This set of patches are aimed to allow truncate_inode_pages_range() handle
ranges which are not aligned at the end of the page. Currently it will
hit BUG_ON() when the end of the range is not aligned. Punch hole feature
however can benefit from this ability saving file systems some work not
fo
ile system implementations will follow except the file systems
where the changes are really simple and should not change the behaviour
in any way .Implementation for truncate_page_range() which will be able
to accept page unaligned ranges will follow as well.
Signed-off-by: Lukas Czerner
Cc: Andrew
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in all ext4 invalidatepage routines.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c | 30 +++---
include/trace/events/ext4.h | 22 --
2 files changed,
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in journal_invalidatepage() and all the users in ext3 file
system. Also update ext3 trace point to print out length argument.
Signed-off-by: Lukas Czerner
---
fs/ext3/inode.c |6 +++---
fs/
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ceph_invalidatepage().
Signed-off-by: Lukas Czerner
Cc: ceph-de...@vger.kernel.org
---
fs/ceph/addr.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/ceph/addr.c b/fs/c
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in xfs_vm_invalidatepage()
Signed-off-by: Lukas Czerner
Cc: x...@oss.sgi.com
---
fs/xfs/xfs_aops.c |5 +++--
fs/xfs/xfs_trace.h | 41 -
2 files changed, 43 inserti
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ocfs2_invalidatepage().
Signed-off-by: Lukas Czerner
Cc: Joel Becker
---
fs/ocfs2/aops.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 7c47
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in reiserfs_invalidatepage()
Signed-off-by: Lukas Czerner
Cc: reiserfs-de...@vger.kernel.org
---
fs/reiserfs/inode.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/reise
pc64 machine with block size of 1024 bytes without
any problems.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c | 11 ++-
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 5729d21..d58e13c 100644
--- a/fs/ext4/inode.c
+++ b/fs/
and remove
ext4_discard_partial_page_buffers() since it is duplicating some code
and also partially duplicating work of truncate_pagecache_range(),
moreover the old implementation was much clearer.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |4 ++
fs/ext4/inode.c | 120
The discard_partial_page_buffers is no longer used anywhere so we can
simply remove it including the *_no_lock variant and
EXT4_DISCARD_PARTIAL_PG_ZERO_UNMAPPED define.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |8 --
fs/ext4/inode.c | 206
Add "end" variable.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c |6 +++---
include/trace/events/ext4.h | 21 ++---
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 4adaa8a..9023b76 10064
nused code completely and makes use of
ext4_error() instead of printk if dubious range is provided.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c | 21 -
1 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 6c5a70a..4ada
No we can
use that new ability in truncate_inode_pages_range().
Signed-off-by: Lukas Czerner
Cc: Andrew Morton
Cc: Hugh Dickins
---
mm/truncate.c | 104 -
1 files changed, 73 insertions(+), 31 deletions(-)
diff --git a/mm/truncate.c b/mm/t
d-off-by: Lukas Czerner
---
fs/ext4/inode.c |5 -
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 0d452c1..87d6171 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3536,11 +3536,6 @@ int ext4_punch_hole(struct file *file, l
enario can be described in simple diagram:
|FFF...FF..FF.UUU|
^--^
punch hole
. - free space
| - cluster boundary
F - freed extent
U - used extent
Also update respective tracepoints to use signed long long type for
partial_cluster.
Signed-off-by: Lukas Czerner
---
fs/ext4
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in gfs2_invalidatepage().
Signed-off-by: Lukas Czerner
Cc: cluster-de...@redhat.com
---
fs/gfs2/aops.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aop
x and xfstests
without any problems.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |2 +
fs/ext4/inode.c | 110 ---
2 files changed, 42 insertions(+), 70 deletions(-)
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 3aa5943..2428244 1
Hi,
This set of patches are aimed to allow truncate_inode_pages_range() handle
ranges which are not aligned at the end of the page. Currently it will
hit BUG_ON() when the end of the range is not aligned. Punch hole feature
however can benefit from this ability saving file systems some work not
fo
length argument to the jbd2_journal_invalidatepage()
and updates all instances in ext4 and ocfs2.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c |3 ++-
fs/jbd2/transaction.c | 24 +---
fs/ocfs2/aops.c |3 ++-
include/linux/jbd2.h |2 +-
4 files
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in all ext4 invalidatepage routines.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c | 47 ++
include/trace/events/ext4.h | 22 +++-
2 fi
ile system implementations will follow except the file systems
where the changes are really simple and should not change the behaviour
in any way .Implementation for truncate_page_range() which will be able
to accept page unaligned ranges will follow as well.
Signed-off-by: Lukas Czerner
Cc: Andrew
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in journal_invalidatepage() and all the users in ext3 file
system. Also update ext3 trace point to print out length argument.
Signed-off-by: Lukas Czerner
---
fs/ext3/inode.c |6 +++---
fs/
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in xfs_vm_invalidatepage()
Signed-off-by: Lukas Czerner
Cc: x...@oss.sgi.com
---
fs/xfs/xfs_aops.c |5 +++--
fs/xfs/xfs_trace.h | 41 -
2 files changed, 43 inserti
and remove
ext4_discard_partial_page_buffers() since it is duplicating some code
and also partially duplicating work of truncate_pagecache_range(),
moreover the old implementation was much clearer.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |4 ++
fs/ext4/inode.c | 120
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in reiserfs_invalidatepage()
Signed-off-by: Lukas Czerner
Cc: reiserfs-de...@vger.kernel.org
---
fs/reiserfs/inode.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/reise
No we can
use that new ability in truncate_inode_pages_range().
Signed-off-by: Lukas Czerner
Cc: Andrew Morton
Cc: Hugh Dickins
---
mm/truncate.c | 104 -
1 files changed, 73 insertions(+), 31 deletions(-)
diff --git a/mm/truncate.c b/mm/t
pc64 machine with block size of 1024 bytes without
any problems.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c | 13 ++---
fs/ext4/indirect.c | 13 ++---
2 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 5ae
f the ext4_discard_partial_page_buffers() completely.
This has been tested on ppc64 with 1k block size with fsx and xfstests
without any problems.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h|2 +
fs/ext4/extents.c | 79 ++---
fs/ext4/in
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in gfs2_invalidatepage().
Signed-off-by: Lukas Czerner
Cc: cluster-de...@redhat.com
---
fs/gfs2/aops.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aop
The discard_partial_page_buffers is no longer used anywhere so we can
simply remove it including the *_no_lock variant and
EXT4_DISCARD_PARTIAL_PG_ZERO_UNMAPPED define.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |8 --
fs/ext4/inode.c | 206
Add "end" variable.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c |6 +++---
include/trace/events/ext4.h | 21 ++---
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 966a09e..2b7e521 10064
enario can be described in simple diagram:
|FFF...FF..FF.UUU|
^--^
punch hole
. - free space
| - cluster boundary
F - freed extent
U - used extent
Also update respective tracepoints to use signed long long type for
partial_cluster.
Signed-off-by: Lukas Czerner
---
fs/ext4
nused code completely and makes use of
ext4_error() instead of printk if dubious range is provided.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c | 21 -
1 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 7b44dc1..966a
d-off-by: Lukas Czerner
---
fs/ext4/inode.c |5 -
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index e7bf594..01cf049 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3530,11 +3530,6 @@ int ext4_punch_hole(struct file *file, l
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ocfs2_invalidatepage().
Signed-off-by: Lukas Czerner
Cc: Joel Becker
---
fs/ocfs2/aops.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 1393
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ceph_invalidatepage().
Signed-off-by: Lukas Czerner
Cc: ceph-de...@vger.kernel.org
---
fs/ceph/addr.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/ceph/addr.c b/fs/c
Hi,
This set of patches are aimed to allow truncate_inode_pages_range() handle
ranges which are not aligned at the end of the page. Currently it will
hit BUG_ON() when the end of the range is not aligned. Punch hole feature
however can benefit from this ability saving file systems some work not
fo
length argument to the jbd2_journal_invalidatepage()
and updates all instances in ext4 and ocfs2.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c |3 ++-
fs/jbd2/transaction.c | 24 +---
fs/ocfs2/aops.c |3 ++-
include/linux/jbd2.h |2 +-
4 files
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in journal_invalidatepage() and all the users in ext3 file
system. Also update ext3 trace point to print out length argument.
Signed-off-by: Lukas Czerner
---
fs/ext3/inode.c |6 +++---
fs/
length argument to the jbd2_journal_invalidatepage()
and updates all instances in ext4 and ocfs2.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c |3 ++-
fs/jbd2/transaction.c | 24 +---
fs/ocfs2/aops.c |3 ++-
include/linux/jbd2.h |2 +-
4 files
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ocfs2_invalidatepage().
Signed-off-by: Lukas Czerner
---
fs/ocfs2/aops.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 1393114..d8c0076 100
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in xfs_vm_invalidatepage()
Signed-off-by: Lukas Czerner
Cc: x...@oss.sgi.com
---
fs/xfs/xfs_aops.c |5 +++--
fs/xfs/xfs_trace.h | 41 -
2 files changed, 43 inserti
ile system implementations will follow except the file systems
where the changes are really simple and should not change the behaviour
in any way .Implementation for truncate_page_range() which will be able
to accept page unaligned ranges will follow as well.
Signed-off-by: Lukas Czerner
Cc: Andrew
pc64 machine with block size of 1024 bytes without
any problems.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c | 13 ++---
fs/ext4/indirect.c | 13 ++---
2 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 5ae
and remove
ext4_discard_partial_page_buffers() since it is duplicating some code
and also partially duplicating work of truncate_pagecache_range(),
moreover the old implementation was much clearer.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |4 ++
fs/ext4/inode.c | 120
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ceph_invalidatepage().
Signed-off-by: Lukas Czerner
---
fs/ceph/addr.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 8953532..1e09
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in gfs2_invalidatepage().
Signed-off-by: Lukas Czerner
---
fs/gfs2/aops.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index 5bd558c..3cf3
f the ext4_discard_partial_page_buffers() completely.
This has been tested on ppc64 with 1k block size with fsx and xfstests
without any problems.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h|2 +
fs/ext4/extents.c | 79 ++---
fs/ext4/in
nused code completely and makes use of
ext4_error() instead of printk if dubious range is provided.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c | 21 -
1 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 7b44dc1..966a
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in reiserfs_invalidatepage()
Signed-off-by: Lukas Czerner
---
fs/reiserfs/inode.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
in
No we can
use that new ability in truncate_inode_pages_range().
This was based on the code provided by Hugh Dickins with some small
changes to make use of do_invalidatepage_range().
Signed-off-by: Lukas Czerner
Cc: Andrew Morton
Cc: Hugh Dickins
--
Add "end" variable.
Signed-off-by: Lukas Czerner
---
fs/ext4/extents.c |6 +++---
include/trace/events/ext4.h | 21 ++---
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 966a09e..2b7e521 10064
enario can be described in simple diagram:
|FFF...FF..FF.UUU|
^--^
punch hole
. - free space
| - cluster boundary
F - freed extent
U - used extent
Also update respective tracepoints to use signed long long type for
partial_cluster.
Signed-off-by: Lukas Czerner
---
fs/ext4
d-off-by: Lukas Czerner
---
fs/ext4/inode.c |5 -
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index e7bf594..01cf049 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3530,11 +3530,6 @@ int ext4_punch_hole(struct file *file, l
The discard_partial_page_buffers is no longer used anywhere so we can
simply remove it including the *_no_lock variant and
EXT4_DISCARD_PARTIAL_PG_ZERO_UNMAPPED define.
Signed-off-by: Lukas Czerner
---
fs/ext4/ext4.h |8 --
fs/ext4/inode.c | 206
Hi,
This set of patches are aimed to allow truncate_inode_pages_range() handle
ranges which are not aligned at the end of the page. Currently it will
hit BUG_ON() when the end of the range is not aligned. Punch hole feature
however can benefit from this ability saving file systems some work not
fo
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in all ext4 invalidatepage routines.
Signed-off-by: Lukas Czerner
---
fs/ext4/inode.c | 47 ++
include/trace/events/ext4.h | 22 +++-
2 fi
etting and wait queue removal.
Signed-off-by: Lukas Czerner
Cc: Neil Brown
Cc: David Howells
Cc: Ingo Molnar
Cc: Peter Zijlstra
---
v2: add interruptible variant, swap cmd and schedule, use prepare_to_wait
v3: swap cmd and schedule so we call cmd before schedule
drivers/md/md.c |2 +
;ll wake up the process as we process the bios form the list. Some
threshold hysteresis is in place to avoid high frequency oscillation.
Signed-off-by: Lukas Czerner
Reported-by: Dave Chinner
---
v2: add threshold hysteresis
v3: Wait uninterruptible, use nr_congestion_off/on
v4: use wait_event_lo
;ll wake up the process as we process the bios form the list. Some
threshold hysteresis is in place to avoid high frequency oscillation.
Signed-off-by: Lukas Czerner
Reported-by: Dave Chinner
---
v2: add threshold hysteresis
v3: Wait uninterruptible, use nr_congestion_off/on
v4: use wait_event_lo
is should also fix theoretical race on waitqueue while
using simultaneously wait_event_lock_irq() and wait_event() because of
lack of locking around current state setting and wait queue removal.
Signed-off-by: Lukas Czerner
Cc: Neil Brown
Cc: David Howells
Cc: Ingo Molnar
Cc: Peter Zijls
rwards. We will leave the
macro with the lock held.
Signed-off-by: Lukas Czerner
Cc: Neil Brown
Cc: David Howells
Cc: Ingo Molnar
Cc: Peter Zijlstra
---
drivers/md/md.c |2 +-
drivers/md/md.h | 26 -
drivers/md/raid1.c | 15 -
drivers/md/raid10
;ll wake up the process as we process the bios form the list. Some
threshold hysteresis is in place to avoid high frequency oscillation.
Signed-off-by: Lukas Czerner
Reported-by: Dave Chinner
---
v2: add threshold hysteresis
v3: Wait uninterruptible, use nr_congestion_off/on
v4: use wait
;ll wake up the process as we process the bios form the list. Some
threshold hysteresis is in place to avoid high frequency oscillation.
Signed-off-by: Lukas Czerner
Reported-by: Dave Chinner
---
v2: add threshold hysteresis
v3: Wait uninterruptible, use nr_congestion_off/on
drivers/bloc
f requests.
We'll wake up the process as we process the bios form the list. Some
threshold hysteresis is in place to avoid high frequency oscillation.
Signed-off-by: Lukas Czerner
Reported-by: Dave Chinner
---
v2: add threshold hysteresis
drivers/block/loop.c | 16
inclu
e process as we process the bios form the list.
Signed-off-by: Lukas Czerner
Reported-by: Dave Chinner
---
drivers/block/loop.c | 13 +
include/linux/loop.h |3 +++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.
fstrim.
Since the 'end' semantic is the same in several functions there this
commit just fixes the condition to use the 'end' variable correctly in
that context.
Reported-by: Paolo Bonzini
Signed-off-by: Lukas Czerner
---
drivers/scsi/scsi_debug.c |2 +-
1 files changed
92 matches
Mail list logo