summaryrefslogtreecommitdiff
path: root/fs/ext2/dev.c
AgeCommit message (Collapse)Author
2012-08-09ext4fs ls load supportUma Shankar
Signed-off-by: Uma Shankar <[email protected]> Signed-off-by: Manjunatha C Achar <[email protected]> Signed-off-by: Iqbal Shareef <[email protected]> Signed-off-by: Hakgoo Lee <[email protected]>
2011-10-25ext2: Cache line aligned partial sector bounce bufferAnton staaf
Currently, if a device read request is done that does not begin or end on a sector boundary a stack allocated bounce buffer is used to perform the read, and then just the part of the sector that is needed is copied into the users buffer. This stack allocation can mean that the bounce buffer will not be aligned to the dcache line size. This is a problem when caches are enabled because unaligned cache invalidates are not safe. This patch uses ALLOC_CACHE_ALIGN_BUFFER to create a stack allocated cache line size aligned bounce buffer. Signed-off-by: Anton Staaf <[email protected]> Cc: Lukasz Majewski <[email protected]> Cc: Mike Frysinger <[email protected]> Cc: Dave Liu <[email protected]> Cc: Andy Fleming <[email protected]> Cc: Albert ARIBAUD <[email protected]> Change-Id: I32e1594d90ef039137bb219b0f7ced55768744ff Acked-by: Mike Frysinger <[email protected]>
2011-07-28ext2: Simplify partial sector access logicAnton Staaf
Previously reading or writing zero full sectors (reading the end of one sector and the beginning of the next for example) was special cased and involved stack allocating a second sector buffer. This change uses the same code path for this case as well as when there are a non-zero number of full sectors to access. The result is easier to read and reduces the maximum stack used. Signed-off-by: Anton Staaf <[email protected]> Cc: Andy Fleming <[email protected]> Acked-by: Detlev Zundel <[email protected]>
2011-07-28ext2: Fix checkpatch violationsAnton Staaf
Fix all checkpatch violations in the low level Ext2 block device reading code. This is done in preparation for cleaning up the partial sector access code. Signed-off-by: Anton Staaf <[email protected]> Cc: Andy Fleming <[email protected]> Acked-by: Detlev Zundel <[email protected]>
2008-08-31fs: Move conditional compilation to MakefileJean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2008-03-02fs: Fix ext2 read issueDave Liu
The ext2 aligned process will corrupt the key data struct, the patch fix this. Signed-off-by: Dave Liu <[email protected]>
2007-07-10fs/: Remove lingering references to CFG_CMD_* symbols.Jon Loeliger
Fixed some broken instances of "#ifdef CMD_CFG_IDE" too. Those always evaluated TRUE, and thus were always compiled even when IDE really wasn't defined/wanted. Signed-off-by: Jon Loeliger <[email protected]>
2007-07-09fs/: Remove obsolete references to CONFIG_COMMANDSJon Loeliger
Signed-off-by: Jon Loeliger <[email protected]>
2007-07-04fs/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <[email protected]>
2005-03-04* Fix get_partition_info() parameter error in all other callswdenk
(common/cmd_ide.c, common/cmd_reiser.c, common/cmd_scsi.c). * Enable USB and IDE support for INKA4x0 board * Patch by Andrew Dyer, 28 February 2005: fix ext2load passing an incorrect pointer to get_partition_info() resulting in load failure for devices other than 0
2004-12-16Code cleanup.wdenk
2004-12-16ext2fs support addedstroese