Re: [PATCH 1/7] e2fsprogs: Add discard function into struct_io_manager

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Sandeen
Date: Tuesday, November 16, 2010 - 11:28 am

On 10/26/10 12:54 PM, Lukas Czerner wrote:

This seems a little convoluted; you pass in *data, which gets you the fs,
from which you get the super, from which you get the blocksize,
which is all that you ever actually use here:


any reason to not just pass in the blocksize?

Maybe this is for flexibility for not-linux, but I guess we don't know what
they need anyway...?

And if you do that you can change "u_priv" to "data" just to match the
other handlers, perhaps.

-Eric


--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] e2fsprogs: Using discard in e2fsprogs tools, Lukas Czerner, (Tue Oct 26, 10:54 am)
[PATCH 4/7] e2fsck: Discard free data and inode blocks., Lukas Czerner, (Tue Oct 26, 10:54 am)
[PATCH 5/7] mke2fs: Change -K option to discard/nodiscard, Lukas Czerner, (Tue Oct 26, 10:54 am)
[PATCH 6/7] mke2fs: Use unix_discard() for discards, Lukas Czerner, (Tue Oct 26, 10:54 am)
Re: [PATCH 1/7] e2fsprogs: Add discard function into struc ..., Eric Sandeen, (Tue Nov 16, 11:28 am)
Re: [PATCH 6/7] mke2fs: Use unix_discard() for discards, Eric Sandeen, (Tue Nov 16, 2:17 pm)