search for: ocfs2_write_cluster

Displaying 9 results from an estimated 9 matches for "ocfs2_write_cluster".

2009 Aug 02
1
Non sparse extend init issue
The patch was created against a 1.4 tree. However, it applies cleanly to mainline too. The patch has been lightly tested. I am running fill_verify_holes on a non sparse volume currently. Please review. Sunil
2009 Aug 03
1
Non sparse init fix v3
One line fix from Joel's version. Also, some comments removed. 18:58 <sunil> wc->w_first_new_cpos = 18:58 <sunil> - ocfs2_align_bytes_to_clusters(inode->i_sb, i_size_read(inode)); 18:58 <sunil> + ocfs2_clusters_for_bytes(inode->i_sb, i_size_read(inode));
2009 Jul 13
1
[PATCH 1/1] fixes a dangerous typo
Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com> --- fs/ocfs2/aops.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index b730010..a10c989 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -1397,7 +1397,7 @@ static int ocfs2_write_cluster(struct address_space *mapping, if (tmpret) { mlog_errno(tmpret); if (ret == 0) - tmpret = ret; + ret = tmpret; } } -- 1.6.2.5
2009 Aug 11
0
[GIT PULL] ocfs2 fixes for 2.6.31-rc5
...access the modified bh in update_edge_lengths. ocfs2: Use ocfs2_rec_clusters in ocfs2_adjust_adjacent_records. ocfs2/quota: Release lock for error in ocfs2_quota_write. Wengang Wang (3): ocfs2: log the actual return value of ocfs2_file_aio_write() ocfs2: Fix error return in ocfs2_write_cluster() ocfs2: Fail ocfs2_get_block() immediately when a block needs allocation fs/ocfs2/alloc.c | 47 +++++++++++++-- fs/ocfs2/aops.c | 69 ++++++++++++++++------- fs/ocfs2/dcache.c | 35 +++++++++--- fs/ocfs2/dcache.h | 3 + fs/ocfs2/dlm/dlmast.c...
2009 Mar 18
2
[RFC] metadata alloc fix in machines which has PAGE_SIZE > CLUSTER_SIZE
...eason is that: 1. with ppc box, we have page_size=64K. So in one ocfs2_write_begin_no_lock we will try to handle 40960 bytes together. 2. in ocfs2_lock_allocators we will get that no metadata is need since the 2nd extent block has so many empty extent recs. 3. then write begin one cluster by one in ocfs2_write_cluster. 1) The 1st cluster(256) nothing special. 2) the 2nd (257), it will be merged with 256. 3) the 3rd (258), be merged with 256. 4) the 4th (259), be merged. Now 256-259 will be merged into 1 extent rec, so the 2nd extent block will be removed. and we will get. 26 256 4...
2009 Jul 13
1
[PATCH 1/1] adds mlogs to aops.c
...ap_page->index); + target_index = user_pos >> PAGE_CACHE_SHIFT; /* @@ -1209,6 +1300,7 @@ static int ocfs2_grab_pages_for_write(struct address_space *mapping, wc->w_target_page = wc->w_pages[i]; } out: + mlog_exit(ret); return ret; } @@ -1227,6 +1319,10 @@ static int ocfs2_write_cluster(struct address_space *mapping, struct inode *inode = mapping->host; struct ocfs2_extent_tree et; + mlog_entry("(0x%p, %u, %u, 0x%p, 0x%p, 0x%p, %u, %lld, %u)\n", + mapping, phys, unwritten, data_ac, meta_ac, wc, + cpos, user_pos, user_len); + new = phys == 0 ? 1 : 0;...
2009 Jul 21
1
(no subject)
...ap_page->index); + target_index = user_pos >> PAGE_CACHE_SHIFT; /* @@ -1209,6 +1307,7 @@ static int ocfs2_grab_pages_for_write(struct address_space *mapping, wc->w_target_page = wc->w_pages[i]; } out: + mlog_exit(ret); return ret; } @@ -1227,6 +1326,10 @@ static int ocfs2_write_cluster(struct address_space *mapping, struct inode *inode = mapping->host; struct ocfs2_extent_tree et; + mlog_entry("(0x%p, %u, %u, 0x%p, 0x%p, 0x%p, %u, %lld, %u)\n", + mapping, phys, unwritten, data_ac, meta_ac, wc, + cpos, user_pos, user_len); + new = phys == 0 ? 1 : 0;...
2009 Jul 21
1
[PATCH 1/1] ocfs2: adds mlogs to aops.c -V2
...ap_page->index); + target_index = user_pos >> PAGE_CACHE_SHIFT; /* @@ -1209,6 +1307,7 @@ static int ocfs2_grab_pages_for_write(struct address_space *mapping, wc->w_target_page = wc->w_pages[i]; } out: + mlog_exit(ret); return ret; } @@ -1227,6 +1326,10 @@ static int ocfs2_write_cluster(struct address_space *mapping, struct inode *inode = mapping->host; struct ocfs2_extent_tree et; + mlog_entry("(0x%p, %u, %u, 0x%p, 0x%p, 0x%p, %u, %lld, %u)\n", + mapping, phys, unwritten, data_ac, meta_ac, wc, + cpos, user_pos, user_len); + new = phys == 0 ? 1 : 0;...
2009 Feb 13
44
[PATCH 0/40] ocfs2: Detach ocfs2 metadata I/O from struct inode
The following series of patches attempts to detach metadata I/O from struct inode. They are currently tied together pretty tightly. Metadata reads happen via the ocfs2_read_blocks() functions, writes via both jbd2 and ocfs2_write_blocks(). - Each inode has a cache of associated metadata blocks stored on its ip_metadata_cache member. The ocfs2_read/write_blocks() functions take a struct