Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172919
b: refs/heads/master
c: b9d128f
h: refs/heads/master
i:
  172917: 8d74ef2
  172915: 7c153bf
  172911: e07f0fd
v: v3
  • Loading branch information
Jens Axboe committed Oct 29, 2009
1 parent 4b760bd commit a98259f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a870a3a485ddf7c0dec549269ed71d169556d61c
refs/heads/master: b9d128f1088ea5245109dfc9bbceb128b6371a77
1 change: 1 addition & 0 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/aio_abi.h>
#include <linux/module.h>
#include <linux/syscalls.h>
#include <linux/backing-dev.h>
#include <linux/uio.h>

#define DEBUG 0
Expand Down
13 changes: 13 additions & 0 deletions trunk/include/linux/backing-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,17 @@ static inline int bdi_sched_wait(void *word)
return 0;
}

static inline void blk_run_backing_dev(struct backing_dev_info *bdi,
struct page *page)
{
if (bdi && bdi->unplug_io_fn)
bdi->unplug_io_fn(bdi, page);
}

static inline void blk_run_address_space(struct address_space *mapping)
{
if (mapping)
blk_run_backing_dev(mapping->backing_dev_info, NULL);
}

#endif /* _LINUX_BACKING_DEV_H */
13 changes: 0 additions & 13 deletions trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -823,19 +823,6 @@ static inline struct request_queue *bdev_get_queue(struct block_device *bdev)
return bdev->bd_disk->queue;
}

static inline void blk_run_backing_dev(struct backing_dev_info *bdi,
struct page *page)
{
if (bdi && bdi->unplug_io_fn)
bdi->unplug_io_fn(bdi, page);
}

static inline void blk_run_address_space(struct address_space *mapping)
{
if (mapping)
blk_run_backing_dev(mapping->backing_dev_info, NULL);
}

/*
* blk_rq_pos() : the current sector
* blk_rq_bytes() : bytes left in the entire request
Expand Down

0 comments on commit a98259f

Please sign in to comment.