Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273077
b: refs/heads/master
c: bc11232
h: refs/heads/master
i:
  273075: 799beb0
v: v3
  • Loading branch information
Namjae Jeon authored and Jan Kara committed Oct 5, 2011
1 parent e4f2cbb commit ab7b7fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 3ee77f2091c229a72c64d9aeef1ee4a7624e5795
refs/heads/master: bc1123239ab950798779ca4e23228afb5443eb5d
10 changes: 9 additions & 1 deletion trunk/fs/udf/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <linux/writeback.h>
#include <linux/slab.h>
#include <linux/crc-itu-t.h>
#include <linux/mpage.h>

#include "udf_i.h"
#include "udf_sb.h"
Expand Down Expand Up @@ -104,7 +105,13 @@ static int udf_writepage(struct page *page, struct writeback_control *wbc)

static int udf_readpage(struct file *file, struct page *page)
{
return block_read_full_page(page, udf_get_block);
return mpage_readpage(page, udf_get_block);
}

static int udf_readpages(struct file *file, struct address_space *mapping,
struct list_head *pages, unsigned nr_pages)
{
return mpage_readpages(mapping, pages, nr_pages, udf_get_block);
}

static int udf_write_begin(struct file *file, struct address_space *mapping,
Expand Down Expand Up @@ -139,6 +146,7 @@ static sector_t udf_bmap(struct address_space *mapping, sector_t block)

const struct address_space_operations udf_aops = {
.readpage = udf_readpage,
.readpages = udf_readpages,
.writepage = udf_writepage,
.write_begin = udf_write_begin,
.write_end = generic_write_end,
Expand Down

0 comments on commit ab7b7fc

Please sign in to comment.