diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2012-09-05 20:44:31 +0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-09-06 18:20:39 +0400 |
commit | 5eec54fcde7e065eb3d8a6e70e61d90673ca706b (patch) | |
tree | b5946eb5ad36a2121334e38a1ccf417fa8babd14 /arch/um/os-Linux/time.c | |
parent | 3f6bba823767e3c78efcf1bea5b6fdf98ad80e3b (diff) | |
download | linux-5eec54fcde7e065eb3d8a6e70e61d90673ca706b.tar.xz |
UDF: Add support for O_DIRECT
Add support for the O_DIRECT flag. There are two cases to deal with:
1. Small files stored in the ICB (inode control block?): just return 0
from the new udf_adinicb_direct_IO() handler to fall back to buffered
I/O.
2. Larger files, not stored in the ICB: nothing special here. Just call
blockdev_direct_IO() from our new udf_direct_IO() handler and tidy up
any blocks instantiated outside i_size on error. This is pretty
standard. Factor error handling code out of udf_write_begin() into new
function udf_write_failed() so it can also be called by udf_direct_IO().
Also change the whitespace in udf_aops to make it a bit neater.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'arch/um/os-Linux/time.c')
-rw-r--r-- | arch/um/os-Linux/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c index f60238559af3..0748fe0c8a73 100644 --- a/arch/um/os-Linux/time.c +++ b/arch/um/os-Linux/time.c @@ -114,7 +114,7 @@ static void deliver_alarm(void) skew += this_tick - last_tick; while (skew >= one_tick) { - alarm_handler(SIGVTALRM, NULL); + alarm_handler(SIGVTALRM, NULL, NULL); skew -= one_tick; } |