search for: cluster_end

Displaying 4 results from an estimated 4 matches for "cluster_end".

2007 Jun 08
0
[git patches] ocfs2 fixes
...ocfs2/aops.c index 0023b31..a480b09 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -798,6 +798,11 @@ int ocfs2_map_and_write_splice_data(stru } to = from + bytes; + BUG_ON(from > PAGE_CACHE_SIZE); + BUG_ON(to > PAGE_CACHE_SIZE); + BUG_ON(from < cluster_start); + BUG_ON(to > cluster_end); + if (wc->w_this_page_new) ret = ocfs2_map_page_blocks(wc->w_this_page, p_blkno, inode, cluster_start, cluster_end, 1); @@ -809,11 +814,6 @@ int ocfs2_map_and_write_splice_data(stru goto out; } - BUG_ON(from > PAGE_CACHE_SIZE); - BUG_ON(to > PAGE_CACHE_SIZE); - B...
2009 Jul 13
1
[PATCH 1/1] adds mlogs to aops.c
...et, @@ -692,6 +741,7 @@ static ssize_t ocfs2_direct_IO(int rw, ocfs2_direct_IO_get_blocks, ocfs2_dio_end_io); +bail: mlog_exit(ret); return ret; } @@ -703,6 +753,8 @@ static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb, { unsigned int cluster_start = 0, cluster_end = PAGE_CACHE_SIZE; + mlog(0, "(0x%p, %u, ..)\n", osb, cpos); + if (unlikely(PAGE_CACHE_SHIFT > osb->s_clustersize_bits)) { unsigned int cpp; @@ -738,6 +790,8 @@ static void ocfs2_clear_page_regions(struct page *page, void *kaddr; unsigned int cluster_start, cluster_end;...
2009 Jul 21
1
(no subject)
...et, @@ -692,6 +745,7 @@ static ssize_t ocfs2_direct_IO(int rw, ocfs2_direct_IO_get_blocks, ocfs2_dio_end_io); +bail: mlog_exit(ret); return ret; } @@ -703,6 +757,8 @@ static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb, { unsigned int cluster_start = 0, cluster_end = PAGE_CACHE_SIZE; + mlog(0, "(0x%p, %u, ..)\n", osb, cpos); + if (unlikely(PAGE_CACHE_SHIFT > osb->s_clustersize_bits)) { unsigned int cpp; @@ -738,6 +794,8 @@ static void ocfs2_clear_page_regions(struct page *page, void *kaddr; unsigned int cluster_start, cluster_end;...
2009 Jul 21
1
[PATCH 1/1] ocfs2: adds mlogs to aops.c -V2
...et, @@ -692,6 +745,7 @@ static ssize_t ocfs2_direct_IO(int rw, ocfs2_direct_IO_get_blocks, ocfs2_dio_end_io); +bail: mlog_exit(ret); return ret; } @@ -703,6 +757,8 @@ static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb, { unsigned int cluster_start = 0, cluster_end = PAGE_CACHE_SIZE; + mlog(0, "(0x%p, %u, ..)\n", osb, cpos); + if (unlikely(PAGE_CACHE_SHIFT > osb->s_clustersize_bits)) { unsigned int cpp; @@ -738,6 +794,8 @@ static void ocfs2_clear_page_regions(struct page *page, void *kaddr; unsigned int cluster_start, cluster_end;...