ke 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 blkdev_put() in
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 d1930adce68d
- SB_POSIXACL);
> + 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 <lczer...@redhat.com>
>
> if (flags & MS_REMOUNT)
> retval = do_remount(, flags, sb_flags, mnt_flags,
> --
> Markus
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(, flags, sb_flags, mnt_flags,
> --
> Markus
t'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/super.c
@@ -514,10 +514,17 @@ v
certainly different
from what we've been used to.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
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/super.c
@@ -514,10
->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
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 Morton
Cc
->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
this 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
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/truncate.c
index fdba
->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
-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(struct
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
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 Kara
---
fs
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
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 a/fs
->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
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
-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 lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
fs
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 lczer...@redhat.com
---
fs/ext4/inode.c |5 -
1
and xfstests
without any problems.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
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
and makes use of
ext4_error() instead of printk if dubious range is provided.
Signed-off-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
fs/ext4/extents.c | 21 -
1 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/fs/ext4/extents.c b
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 lczer...@redhat.com
Reviewed
-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
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
Add end variable.
Signed-off-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
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
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in reiserfs_invalidatepage()
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: reiserfs-de...@vger.kernel.org
---
fs/reiserfs/inode.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git
ability in truncate_inode_pages_range().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: Andrew Morton a...@linux-foundation.org
Cc: Hugh Dickins hu...@google.com
---
mm/truncate.c | 104 -
1 files changed, 73 insertions(+), 31 deletions
this out.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
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
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 lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
fs/ext4/ext4.h |8 --
fs/ext4
machine with block size of 1024 bytes without
any problems.
Signed-off-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
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
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 lczer...@redhat.com
---
fs/ext4/ext4.h |4 ++
fs/ext4/inode.c
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in gfs2_invalidatepage().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Acked-by: Steven Whitehouse swhit...@redhat.com
Cc: cluster-de...@redhat.com
---
fs/gfs2/aops.c |9 +++--
1 files changed, 7
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in ceph_invalidatepage().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Acked-by: Sage Weil s...@inktank.com
Cc: ceph-de...@vger.kernel.org
---
fs/ceph/addr.c | 12 ++--
1 files changed, 6 insertions
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 lczer...@redhat.com
Cc
length argument to the jbd2_journal_invalidatepage()
and updates all instances in ext4 and ocfs2.
Signed-off-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
fs/ext4/inode.c |3 ++-
fs/jbd2/transaction.c | 24 +---
fs/ocfs2/aops.c
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in ocfs2_invalidatepage().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
Acked-by: Joel Becker jl...@evilplan.org
---
fs/ocfs2/aops.c |3 +--
1 files changed, 1 insertions
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in xfs_vm_invalidatepage()
Signed-off-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Ben Myers b...@sgi.com
Cc: x...@oss.sgi.com
---
v4: use xfs_page_class instead of separate tracepoint
fs/xfs/xfs_aops.c |9
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in all ext4 invalidatepage routines.
Signed-off-by: Lukas Czerner lczer...@redhat.com
Reviewed-by: Jan Kara j...@suse.cz
---
fs/ext4/inode.c | 30 +++---
include/trace/events/ext4
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 Morton
Cc
->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
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/truncate.c
index fdba
-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, loff_t
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/extents.c
->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
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 100644
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
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
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
length argument to the jbd2_journal_invalidatepage()
and updates all instances in ext4 and ocfs2.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
fs/ext4/inode.c |3 ++-
fs/jbd2/transaction.c | 24 +---
fs/ocfs2/aops.c |3 ++-
include/linux/jbd2.h
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in gfs2_invalidatepage().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: cluster-de...@redhat.com
---
fs/gfs2/aops.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/gfs2
and xfstests
without any problems.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
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
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 lczer...@redhat.com
---
fs/ext4
-by: Lukas Czerner lczer...@redhat.com
---
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
ability in truncate_inode_pages_range().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: Andrew Morton a...@linux-foundation.org
Cc: Hugh Dickins hu...@google.com
---
mm/truncate.c | 104 -
1 files changed, 73 insertions(+), 31 deletions
and makes use of
ext4_error() instead of printk if dubious range is provided.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
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
Add end variable.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
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
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 lczer...@redhat.com
---
fs/ext4/ext4.h |8 --
fs/ext4/inode.c | 206
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 lczer...@redhat.com
---
fs/ext4/ext4.h |4 ++
fs/ext4/inode.c
machine with block size of 1024 bytes without
any problems.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
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
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in reiserfs_invalidatepage()
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: reiserfs-de...@vger.kernel.org
---
fs/reiserfs/inode.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in ocfs2_invalidatepage().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: Joel Becker jl...@evilplan.org
---
fs/ocfs2/aops.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in xfs_vm_invalidatepage()
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: x...@oss.sgi.com
---
fs/xfs/xfs_aops.c |5 +++--
fs/xfs/xfs_trace.h | 41 -
2 files
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in ceph_invalidatepage().
Signed-off-by: Lukas Czerner lczer...@redhat.com
Cc: ceph-de...@vger.kernel.org
---
fs/ceph/addr.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/ceph
-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 lczer...@redhat.com
---
fs/ext3/inode.c |6
-invalidatepage() aop now accepts range to invalidate so we can make
use of it in all ext4 invalidatepage routines.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---
fs/ext4/inode.c | 30 +++---
include/trace/events/ext4.h | 22 --
2
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 lczer...@redhat.com
Cc
->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
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 Morton
Cc
->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
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/truncate.c
index fdba
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
of 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/inode.c
->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
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/extents.c
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
1 - 100 of 182 matches
Mail list logo