summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorGu Zheng2013-07-25 05:30:01 +0200
committerJaegeuk Kim2013-07-30 08:17:03 +0200
commitd8207f69589c74037128ff6c9e1a44223fad3b7c (patch)
tree12c968310ef5bb8a71ba68dd9d2bade99d06cc79 /fs/f2fs/data.c
parentf2fs: use list_for_each rather than list_for_each_safe, in remove_orphan_inode() (diff)
downloadkernel-qcow2-linux-d8207f69589c74037128ff6c9e1a44223fad3b7c.tar.gz
kernel-qcow2-linux-d8207f69589c74037128ff6c9e1a44223fad3b7c.tar.xz
kernel-qcow2-linux-d8207f69589c74037128ff6c9e1a44223fad3b7c.zip
f2fs: move bio_private allocation out of f2fs_bio_alloc()
bio->bi_private is not always needed. As in the reading data path, end_read_io does not need bio_private for further using, so moving bio_private allocation out of f2fs_bio_alloc(). Alloc it in the submit_write_page(), and ignore it in the f2fs_readpage(). Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index c73c394c3d8c..19cd7c6e964c 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -365,7 +365,6 @@ static void read_end_io(struct bio *bio, int err)
}
unlock_page(page);
} while (bvec >= bio->bi_io_vec);
- kfree(bio->bi_private);
bio_put(bio);
}