* linux-next: manual merge of the ext4 tree with the tree
@ 2009-02-25 1:52 Stephen Rothwell
2009-02-25 9:43 ` Jan Kara
2009-02-26 6:03 ` Theodore Tso
0 siblings, 2 replies; 7+ messages in thread
From: Stephen Rothwell @ 2009-02-25 1:52 UTC (permalink / raw)
To: Theodore Tso; +Cc: linux-next, Mingming Cao, Jan Kara
Hi Ted,
Today's linux-next merge of the ext4 tree got a conflict in
fs/ext4/ext4.h between commit 7c989bb2f1b18268968ce44c603f18a9854b1b85
("ext4: quota reservation for delayed allocation") from the quota tree
and commit eafffefbb8cc3db4acebb75014091b473c60007d ("ext4: add
EXT4_IOC_ALLOC_DA_BLKS ioctl") from the ext4 tree.
Just overlapping additions. I fixed it up (see below) and can carry the
fix as necessary.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
diff --cc fs/ext4/ext4.h
index 6083bb3,09626d3..0000000
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@@ -1099,7 -1097,7 +1098,8 @@@ extern int ext4_chunk_trans_blocks(stru
extern int ext4_block_truncate_page(handle_t *handle,
struct address_space *mapping, loff_t from);
extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct page *page);
+extern qsize_t ext4_get_reserved_space(struct inode *inode);
+ extern int ext4_alloc_da_blocks(struct inode *inode);
/* ioctl.c */
extern long ext4_ioctl(struct file *, unsigned int, unsigned long);
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: linux-next: manual merge of the ext4 tree with the tree
2009-02-25 1:52 linux-next: manual merge of the ext4 tree with the tree Stephen Rothwell
@ 2009-02-25 9:43 ` Jan Kara
2009-02-26 6:03 ` Theodore Tso
1 sibling, 0 replies; 7+ messages in thread
From: Jan Kara @ 2009-02-25 9:43 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Theodore Tso, linux-next, Mingming Cao
On Wed 25-02-09 12:52:54, Stephen Rothwell wrote:
> Today's linux-next merge of the ext4 tree got a conflict in
> fs/ext4/ext4.h between commit 7c989bb2f1b18268968ce44c603f18a9854b1b85
> ("ext4: quota reservation for delayed allocation") from the quota tree
> and commit eafffefbb8cc3db4acebb75014091b473c60007d ("ext4: add
> EXT4_IOC_ALLOC_DA_BLKS ioctl") from the ext4 tree.
>
> Just overlapping additions. I fixed it up (see below) and can carry the
> fix as necessary.
Thanks.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: linux-next: manual merge of the ext4 tree with the tree
2009-02-25 1:52 linux-next: manual merge of the ext4 tree with the tree Stephen Rothwell
2009-02-25 9:43 ` Jan Kara
@ 2009-02-26 6:03 ` Theodore Tso
2009-02-26 8:36 ` Stephen Rothwell
1 sibling, 1 reply; 7+ messages in thread
From: Theodore Tso @ 2009-02-26 6:03 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, Mingming Cao, Jan Kara
On Wed, Feb 25, 2009 at 12:52:54PM +1100, Stephen Rothwell wrote:
> Hi Ted,
>
> Today's linux-next merge of the ext4 tree got a conflict in
> fs/ext4/ext4.h between commit 7c989bb2f1b18268968ce44c603f18a9854b1b85
> ("ext4: quota reservation for delayed allocation") from the quota tree
> and commit eafffefbb8cc3db4acebb75014091b473c60007d ("ext4: add
> EXT4_IOC_ALLOC_DA_BLKS ioctl") from the ext4 tree.
>
> Just overlapping additions. I fixed it up (see below) and can carry the
> fix as necessary.
Thanks, I've moved up the function declaration to avoid the need for a
manual fixup.
- Ted
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: linux-next: manual merge of the ext4 tree with the tree
2009-02-26 6:03 ` Theodore Tso
@ 2009-02-26 8:36 ` Stephen Rothwell
2009-02-26 14:08 ` Theodore Tso
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2009-02-26 8:36 UTC (permalink / raw)
To: Theodore Tso; +Cc: linux-next, Mingming Cao, Jan Kara
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
Hi Ted,
On Thu, 26 Feb 2009 01:03:45 -0500 Theodore Tso <tytso@mit.edu> wrote:
>
> Thanks, I've moved up the function declaration to avoid the need for a
> manual fixup.
Thanks.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: manual merge of the ext4 tree with the tree
2009-02-26 8:36 ` Stephen Rothwell
@ 2009-02-26 14:08 ` Theodore Tso
0 siblings, 0 replies; 7+ messages in thread
From: Theodore Tso @ 2009-02-26 14:08 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, Mingming Cao, Jan Kara
On Thu, Feb 26, 2009 at 07:36:49PM +1100, Stephen Rothwell wrote:
> Hi Ted,
>
> On Thu, 26 Feb 2009 01:03:45 -0500 Theodore Tso <tytso@mit.edu> wrote:
> >
> > Thanks, I've moved up the function declaration to avoid the need for a
> > manual fixup.
>
> Thanks.
np! Saves work for you, and it saves work for Linus. :-)
- Ted
^ permalink raw reply [flat|nested] 7+ messages in thread
* linux-next: manual merge of the ext4 tree with the tree
@ 2009-02-27 2:03 Stephen Rothwell
2009-03-03 19:09 ` Jan Kara
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2009-02-27 2:03 UTC (permalink / raw)
To: Theodore Tso; +Cc: linux-next, Aneesh Kumar K.V, Mingming Cao, Jan Kara
Hi Ted,
Today's linux-next merge of the ext4 tree got a conflict in
fs/ext4/inode.c between commit ext4_da_update_reserve_space ("ext4: quota
reservation for delayed allocation") from the quota tree and commit
ext4_da_update_reserve_space ("ext4: Fix discard of inode prealloc space
with delayed allocation") from the ext4 tree.
I think this is just overlapping additions. I fixed it up by taking both
changes (see below) but it is worth a look.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
diff --cc fs/ext4/inode.c
index a2845b5,8815b9c..0000000
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@@ -1050,11 -1054,13 +1065,19 @@@ static void ext4_da_update_reserve_spac
spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);
/*
+ * free those over-booking quota for metadata blocks
+ */
+
+ if (mdb_free)
+ vfs_dq_release_reservation_block(inode, mdb_free);
++
++ /*
+ * If have done all the pending block allocation and if the we
+ * don't have any writer on the inode, we can discard the
+ * inode's preallocations.
+ */
+ if (!total && (atomic_read(&inode->i_writecount) == 0))
+ ext4_discard_preallocations(inode);
}
/*
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: linux-next: manual merge of the ext4 tree with the tree
2009-02-27 2:03 Stephen Rothwell
@ 2009-03-03 19:09 ` Jan Kara
0 siblings, 0 replies; 7+ messages in thread
From: Jan Kara @ 2009-03-03 19:09 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, Theodore Tso, Aneesh Kumar K.V, Mingming Cao
Hi,
On Fri 27-02-09 13:03:40, Stephen Rothwell wrote:
> Today's linux-next merge of the ext4 tree got a conflict in
> fs/ext4/inode.c between commit ext4_da_update_reserve_space ("ext4: quota
> reservation for delayed allocation") from the quota tree and commit
> ext4_da_update_reserve_space ("ext4: Fix discard of inode prealloc space
> with delayed allocation") from the ext4 tree.
>
> I think this is just overlapping additions. I fixed it up by taking both
> changes (see below) but it is worth a look.
Yes, they're just overlapping additions. Thanks for fixing this up.
Honza
> diff --cc fs/ext4/inode.c
> index a2845b5,8815b9c..0000000
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@@ -1050,11 -1054,13 +1065,19 @@@ static void ext4_da_update_reserve_spac
> spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);
>
> /*
> + * free those over-booking quota for metadata blocks
> + */
> +
> + if (mdb_free)
> + vfs_dq_release_reservation_block(inode, mdb_free);
> ++
> ++ /*
> + * If have done all the pending block allocation and if the we
> + * don't have any writer on the inode, we can discard the
> + * inode's preallocations.
> + */
> + if (!total && (atomic_read(&inode->i_writecount) == 0))
> + ext4_discard_preallocations(inode);
> }
>
> /*
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-03-03 19:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25 1:52 linux-next: manual merge of the ext4 tree with the tree Stephen Rothwell
2009-02-25 9:43 ` Jan Kara
2009-02-26 6:03 ` Theodore Tso
2009-02-26 8:36 ` Stephen Rothwell
2009-02-26 14:08 ` Theodore Tso
-- strict thread matches above, loose matches on Subject: below --
2009-02-27 2:03 Stephen Rothwell
2009-03-03 19:09 ` Jan Kara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).